Commit graph

37 commits

Author SHA1 Message Date
Eric Mc Sween
025863d8ae Merge pull request #12208 from overleaf/em-camel-case-notifications
Camel case variables in notifications

GitOrigin-RevId: da1fb77f42e4ba58b6b3833aa05ddf76e1d613f6
2023-03-17 09:05:29 +00:00
Jakob Ackermann
7f9fd00bda Merge pull request #5367 from overleaf/jpa-node-handle-callback-err
[misc] fix eslint violations for node/handle-callback-err

GitOrigin-RevId: 83a4900e8861010df1917bff49382bd9c93375bd
2021-10-28 08:03:26 +00:00
Jakob Ackermann
9a2bb1044f [misc] run format_fix and lint:fix 2021-07-13 12:04:44 +01:00
Jakob Ackermann
f72362a668 [misc] switch from settings-sharelatex to @overleaf/settings 2021-07-12 17:47:16 +01:00
Eric Mc Sween
821972b791 Add global test setup
Configure chai and SandboxedModule in a central place and add
SandboxedModule globals that are required in Node 12.
2021-03-17 16:34:06 -04:00
Jakob Ackermann
f16fbdcdbf [misc] bump metrics module to 3.4.1
- renamed package from `metrics-sharelatex` to `@overleaf/metrics`
- drop support for statsd backend
- decaffeinate
- compress `/metrics` response using gzip
- bump debugging agents to latest versions
- expose prometheus interfaces for custom metrics (custom tags)
- cleanup of open sockets metrics
- fix deprecation warnings for header access
2020-11-25 11:57:20 +00:00
Jakob Ackermann
d77834ab55 [misc] migrate the app to the native mongo driver
health-check to follow in a separate commit
2020-09-07 11:27:59 +01:00
Tim Alby
61dc3435c4 fix formatting 2020-06-04 09:50:05 +02:00
Ersun Warncke
7302c0ce0b [misc] fix express deprecations
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-04-15 19:04:56 +02:00
mserranom
3a73c390fc Fixed unit test 2020-04-01 17:03:52 +02:00
Jakob Ackermann
00e15a383f [misc] fix prettier-eslint errors 2020-02-11 12:29:20 +01:00
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