0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api
Vijay Kandy f2d09df512 Support for custom notifications (#7077)
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
2016-07-22 14:02:10 +01:00
..
authentication.js improvement: mail structure (#7033) 2016-06-28 20:13:01 +02:00
clients.js Harvest server side strings 2015-12-19 12:12:16 +01:00
configuration.js internal tags feature 2016-06-11 09:12:04 -06:00
db.js add small permission improvements 2016-05-08 14:22:55 +02:00
index.js post-scheduling 2016-06-14 10:52:13 +02:00
mail.js improvement: mail structure (#7033) 2016-06-28 20:13:01 +02:00
notifications.js Support for custom notifications (#7077) 2016-07-22 14:02:10 +01:00
posts.js Return http status 204 on deletes 2016-03-22 11:42:48 -05:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js post-scheduling 2016-06-14 10:52:13 +02:00
settings.js Revert "fix: ensure we initialise activeTheme on bootstrap (#6950)" 2016-07-21 12:26:16 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Harvest server side strings 2015-12-19 12:12:16 +01:00
subscribers.js Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
tags.js internal tags feature 2016-06-11 09:12:04 -06:00
themes.js Harvest server side strings 2015-12-19 12:12:16 +01:00
upload.js Replace busboy upload middleware with multer 2016-04-07 21:30:46 -05:00
users.js improvement: mail structure (#7033) 2016-06-28 20:13:01 +02:00
utils.js post-scheduling 2016-06-14 10:52:13 +02:00