mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
f2d09df512
closes #5071 - Send application/json requests to UpdateCheck service. New UpdateCheck service accepts JSON request - If UpdateCheck service respponse has messages[] array, iterate over the array and create custom notifications intended for current version - Save custom notification if its not already in the store AND its uuid is not in seenNotifications array - When a custom notification is dismissed, store its uuid in seenNotifications array - setup test fixtures to trigger tests properly - api_notification_spec test to ensure custom notification can be added to store and added to seenNotifications when dismissed - update_check_spec test to ensure custom notification can be displayed for a specific Ghost version - added test to ensure messages meant for other versions don't create notifications |
||
---|---|---|
.. | ||
api | ||
apps | ||
config | ||
controllers | ||
data | ||
errors | ||
events | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
routes | ||
scheduling | ||
storage | ||
translations | ||
utils | ||
views | ||
filters.js | ||
ghost-server.js | ||
i18n.js | ||
index.js | ||
overrides.js | ||
update-check.js |