Commit graph

26 commits

Author SHA1 Message Date
Tim Alby
fc0d1f8485 prettier: convert test/unit decaffeinated files to Prettier format 2020-01-13 20:04:03 +01:00
Tim Alby
100209c2db decaffeinate: rename test/unit/coffee to test/unit/js 2020-01-13 20:04:03 +01:00
decaffeinate
c7ee5c6f58 decaffeinate: Run post-processing cleanups on NotificationsControllerTest.coffee and 1 other file 2020-01-13 20:04:03 +01:00
decaffeinate
34a61b9c6b decaffeinate: Convert NotificationsControllerTest.coffee and 1 other file to JS 2020-01-13 20:04:03 +01:00
decaffeinate
d4fa6e2672 decaffeinate: Rename NotificationsControllerTest.coffee and 1 other file from .coffee to .js 2020-01-13 20:04:03 +01:00
Simon Detheridge
70f5c71864 Handle duplicate-notification race condition when using forceCreate 2019-11-28 16:40:14 +00:00
Shane Kilkelly
e67c546254 Upgrade metrics 2017-03-17 09:47:45 +00:00
Shane Kilkelly
c9a9ab93ec Delete the notification being replaced when forceCreate.
Prevent growth of the collection with stale documents when users
resend project invites
2016-08-17 14:10:36 +01:00
Henry Oswald
264ff806fc change override to forceCreate 2016-08-17 11:05:29 +01:00
Henry Oswald
7280262f92 add the option to override exisiting notification 2016-08-17 10:52:35 +01:00
Shane Kilkelly
cfbd917eef Fix tests 2016-08-15 09:50:59 +01:00
Shane Kilkelly
bea4197732 return an error if expires is not a valid date. 2016-08-15 08:54:45 +01:00
Shane Kilkelly
88f5f29982 Change how notification expiry works
Set the `expires` field to be a date in the future, after which the
document should be removed.
2016-08-12 11:38:17 +01:00
Shane Kilkelly
0a5430468c Alter how the notification doc is built 2016-08-12 09:54:08 +01:00
Shane Kilkelly
7bb6e6e18c Merge branch 'master' into pr-remove-by-key
# Conflicts:
#	test/unit/coffee/NotificationsTests.coffee
2016-08-12 09:43:38 +01:00
Shane Kilkelly
05e390ef89 Add an optional expiry to notifications. 2016-08-11 11:05:11 +01:00
Shane Kilkelly
fc78bfe86c Add an endpoint to remove a notification by its key alone 2016-08-11 10:01:21 +01:00
Henry Oswald
5360bcae77 fix unit tests 2016-08-05 15:10:13 +01:00
Henrique Dias
957e9cd486 Merge branch 'master' of https://bitbucket.org/sharelatex/notifications-sharelatex 2016-02-05 07:41:34 -02:00
Henrique Dias
c3514fd453 add mark key endpoint 2016-02-05 07:38:32 -02:00
Henry Oswald
5dd890bfc3 Merge branch 'master' of bitbucket.org:sharelatex/notifications-sharelatex 2016-02-04 11:48:25 +00:00
Henrique Dias
6291a8d2cf fix user_id type 2016-01-21 14:34:12 -02:00
Henry Oswald
84aad3e184 unset messageOpts as well 2016-01-21 13:40:24 +00:00
Henrique Dias
50d66e9f31 add metrics 2016-01-20 11:57:29 -02:00
Henrique Santos
797353de15 add basic unit tests 2016-01-16 18:28:19 -02:00
Henrique Santos
1e60327f2e create scaffolding base on tags repo 2016-01-14 10:35:16 -02:00