Antoine Clausse
7f48c67512
Add prefer-node-protocol
ESLint rule ( #21532 )
...
* Add `unicorn/prefer-node-protocol`
* Fix `unicorn/prefer-node-protocol` ESLint errors
* Run `npm run format:fix`
* Add sandboxed-module sourceTransformers in mocha setups
Fix `no such file or directory, open 'node:fs'` in `sandboxed-module`
* Remove `node:` in the SandboxedModule requires
* Fix new linting errors with `node:`
GitOrigin-RevId: 68f6e31e2191fcff4cb8058dd0a6914c14f59926
2024-11-11 09:04:51 +00:00
Brian Gough
9babc70df7
Merge pull request #17362 from overleaf/bg-chai-object-id-tests
...
fix for chai object id tests
GitOrigin-RevId: 98123dbc930c6ee57be3a118177426120482c5f4
2024-07-16 08:04:46 +00:00
David
84c3dc1fff
Merge pull request #17268 from overleaf/dp-remove-old-mongo-metrics
...
Remove timeAsyncMethod mongo metrics
GitOrigin-RevId: 1ba3a1fd51b9d0766355c31791ae9836d832afe8
2024-02-29 09:04:19 +00:00
Christopher Hoskin
e86ef1139e
Merge pull request #15350 from overleaf/csh-issue-11625-mongo-ug-5-notifications
...
Use mongodb-legacy in notifications for callback support
GitOrigin-RevId: 90f05f747e221c1bd61564e2e28e505d0b125467
2023-10-24 08:03:15 +00:00
Christopher Hoskin
4c298c9290
Merge pull request #15345 from overleaf/revert-15341-csh-issue-11625-mongo-ug-5-notifications
...
Revert "Upgrade mongodb module for notifications from 4.11.0 to 6.1.0"
GitOrigin-RevId: 298272afa24ccb7a8543342ad09f558fc034f282
2023-10-20 08:04:17 +00:00
Christopher Hoskin
02fa5c3a99
Merge pull request #15341 from overleaf/csh-issue-11625-mongo-ug-5-notifications
...
Upgrade mongodb module for notifications from 4.11.0 to 6.1.0
GitOrigin-RevId: 8e185d2d9128e2bc889bbc00a7f21fbee0f27daa
2023-10-20 08:04:14 +00:00
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