Commit graph

217 commits

Author SHA1 Message Date
dependabot[bot]
11260e8f9b Bump lodash from 4.17.15 to 4.17.20
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-18 08:40:39 +00:00
dependabot[bot]
4a8aad7a4e Bump yargs-parser from 13.1.1 to 13.1.2
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/yargs/yargs-parser/releases)
- [Changelog](https://github.com/yargs/yargs-parser/blob/master/docs/CHANGELOG-full.md)
- [Commits](https://github.com/yargs/yargs-parser/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-18 08:40:33 +00:00
Simon Detheridge
d6d5537962 Merge pull request #31 from overleaf/jpa-bump-dev-env-3-3-4-node-10-22-1
[misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1
2020-09-18 09:40:09 +01:00
Simon Detheridge
acbf152de8 Merge pull request #29 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-18 09:39:38 +01:00
Jakob Ackermann
521f25b51e [misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1 2020-09-17 15:25:11 +01:00
dependabot[bot]
f0f8f51494 Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 09:16:13 +00:00
Jakob Ackermann
3626243692 [misc] mongodb: use the new db connector by default
mongojs was enabling it by default as well.
2020-09-10 10:53:08 +01:00
Jakob Ackermann
9d28208870 [misc] mongodb: refactor the process of setting up the db construct
Co-Authored-By: John Lees-Miller <jdleesmiller@gmail.com>
2020-09-07 11:28:09 +01:00
Jakob Ackermann
74a3a95dc6 [misc] migrate the health-check to the native mongo driver, drop mongojs 2020-09-07 11:28:08 +01: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
Christopher Hoskin
f517d31e15 [misc] bump logger-sharelatex to version 2.2.0 2020-08-13 09:07:30 +01:00
Jakob Ackermann
e92b1fa063 [misc] bump the dev-env to 3.3.2 2020-08-10 17:10:30 +01:00
Tim Alby
361f8ff123 Revert "[misc] make: ignore a lint/format task failure"
This reverts commit 26e27b0ff22d694ce58b0e721416c2b775f7ae6a.
2020-06-04 10:21:50 +02:00
Tim Alby
311d7cefa1 fix linting 2020-06-04 10:17:40 +02:00
Tim Alby
61dc3435c4 fix formatting 2020-06-04 09:50:05 +02:00
Jakob Ackermann
ebf86bc997 [misc] make: ignore a lint/format task failure 2020-06-03 11:32:08 +01:00
Brian Gough
70dcf9400a update buildscript.txt to node 10.21.0 2020-06-03 11:12:13 +01:00
Brian Gough
59bbd35e18 update to node 10.21.0 2020-06-03 10:23:45 +01: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
mserranom
a7311ff5d3 Added spread operator to value in db update 2020-04-01 15:28:29 +02:00
mserranom
7183b88a37 added to update operation, required by mongojs 3.x 2020-03-28 13:58:33 +01:00
mserranom
682fd526c0 updated express.send to express.sendStatus 2020-03-26 15:36:49 +01:00
mserranom
2f3d664db0 updated express to v4 and mongojs 2020-03-26 15:17:07 +01:00
mserranom
6f398625a3 updated prettier, mocha, sinon, node-statsd 2020-03-26 13:25:39 +01:00
mserranom
7135e03cad updated async to latest v2.x 2020-03-26 13:21:44 +01:00
mserranom
0b2c4cb1b7 updated minor/patch dependencies 2020-03-26 13:21:02 +01:00
mserranom
d1673ea92c npm audit fix 2020-03-26 13:17:02 +01:00
mserranom
2b4e44f047 updated build scripts 2020-03-26 13:16:08 +01:00
Jakob Ackermann
2555dbdd36 [misc] cleanup unused dependency on redis 2020-02-12 14:43:17 +01:00
Jakob Ackermann
00e15a383f [misc] fix prettier-eslint errors 2020-02-11 12:29:20 +01:00
Jakob Ackermann
f901064a59 [misc] update the build scripts to 1.3.5 2020-02-11 12:27:54 +01:00
Brian Gough
5a52c38197 update to node 10.19.0 2020-02-07 14:16:31 +00:00
Tim Alby
4323b6a155 remove compile:* commands 2020-01-14 17:02:13 +01:00
Tim Alby
36a899fd2f prettier: convert individual decaffeinated files to Prettier format 2020-01-13 20:04:04 +01:00
Tim Alby
30860286c3 decaffeinate: convert individual files to js 2020-01-13 20:04:04 +01:00
Tim Alby
2eda6119c9 decaffeinate: rename individual coffee files to js files 2020-01-13 20:04:04 +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
Tim Alby
dc218cd503 prettier: convert app/js decaffeinated files to Prettier format 2020-01-13 20:04:03 +01:00
Tim Alby
9835481cbf decaffeinate: rename app/coffee dir to app/js 2020-01-13 20:04:03 +01:00
decaffeinate
b667b9ad1c decaffeinate: Run post-processing cleanups on HealthCheckController.coffee and 2 other files 2020-01-13 20:04:03 +01:00
decaffeinate
ddccb85dda decaffeinate: Convert HealthCheckController.coffee and 2 other files to JS 2020-01-13 20:04:03 +01:00
decaffeinate
27afdd47cd decaffeinate: Rename HealthCheckController.coffee and 2 other files from .coffee to .js 2020-01-13 20:04:03 +01:00
Tim Alby
8ba667fd20 decaffeinate: add eslint and prettier packages 2020-01-13 20:04:02 +01:00
Tim Alby
f82f4cac46 decaffeinate: update .gitignore 2020-01-13 20:04:02 +01:00
Tim Alby
d2ed80a1fb decaffeinate: update build scripts to es 2020-01-13 20:04:02 +01:00
Tim Alby
ce80f99487 update build scripts to 1.3.1
This also completes the Node version update.
2020-01-13 19:20:38 +01:00
Simon Detheridge
70f5c71864 Handle duplicate-notification race condition when using forceCreate 2019-11-28 16:40:14 +00:00
Shane Kilkelly
ab9689bd54 Upgrade to node 10, and migrate to package-lock.json 2019-09-30 10:48:36 +01:00
Shane Kilkelly
429c593cdf update logger and metrics 2019-06-21 10:06:02 +01:00
Jakob Ackermann
5a2e9f5088 [misc] Add a copy the the GNU Affero General Public License v3.0
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
2019-05-09 13:36:04 +02:00
John Lees-Miller
e9e7f23686 Add missing license statement 2019-05-09 12:03:27 +01:00
Timothée Alby
eff364d451 update Git URL in Jenkinsfile 2019-05-07 18:43:08 +02:00
Timothée Alby
a332c6a8b9 Update README.md 2019-05-07 17:23:20 +02:00
Henry Oswald
10f71a6a9d bump build scripts and move to npm modules 2019-01-31 16:13:21 +00:00
Christopher Hoskin
3f21d32808 Add **/*.map to .gitignore 2019-01-09 15:27:14 +00:00
Christopher Hoskin
4c92bead42 Remove grunt 2019-01-09 15:22:57 +00:00
Christopher Hoskin
b9fe57757e Bump build script to v1.1.10 2019-01-09 15:22:17 +00:00
Christopher Hoskin
8a046ddf20 Adapt for metrics v2 2019-01-09 15:20:36 +00:00
Christopher Hoskin
f2230d6f27 Bump metrics to v2.0.12, logger to v1.5.9 and settings to v1.1.0, fixup shrinkwrap 2019-01-09 15:18:15 +00:00
Henry Oswald
d3b37145b9 update mocha 2018-10-03 13:53:36 +01:00
Henry Oswald
3796fce483 update settings to allow mongo host and remove unused health check
userid
2018-10-03 13:47:20 +01:00
Henry Oswald
2a85b54dad update build scripts 2018-10-03 13:46:00 +01:00
Henry Oswald
9058cc668a update build scripts to 1.1.3 with docker file 2018-05-23 14:08:34 +01:00
Shane Kilkelly
d79d255c7c change to node6 2018-04-26 11:16:46 +01:00
Shane Kilkelly
7bab021389 Upgrade to Node 8 2018-04-23 13:55:36 +01:00
James Allen
8e51bf95f1 Add coffee-script to shrink wrap 2018-01-10 12:10:44 +00:00
James Allen
b543031454 Provide hosts as environment settings and add npm run start script 2017-12-29 08:15:08 +00:00
Joe Green
4eee69b2d0 Update Jenkinsfile 2017-10-16 14:11:08 +01:00
Joe Green
4fedea455b only alert on master 2017-10-12 16:58:58 +01:00
Joe Green
7bcbe33ddc added build.txt 2017-09-04 14:51:30 +01:00
Joe Green
c164e6361e Create Jenkinsfile 2017-08-11 14:11:30 +01:00
Shane Kilkelly
b616498ea3 upgrade to metrics 1.7.1, with uv-threadpool fix 2017-03-23 15:34:33 +00:00
Shane Kilkelly
c885815094 Update shrinkwrap 2017-03-23 10:36:44 +00:00
Shane Kilkelly
7d06f52890 Update metrics version to 1.7.0 2017-03-21 13:50:36 +00:00
Shane Kilkelly
5f0bf16c75 update to new metrics api 2017-03-17 15:54:15 +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
0d9e0000ae add npm shrinkwrap 2016-08-15 11:41:00 +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
5cb7e3dc03 Remove redundant /notification path component 2016-08-12 09:56:16 +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
5fe04903ef Merge branch 'master' of github.com:sharelatex/notifications-sharelatex 2016-08-12 09:31:16 +01:00
Shane Kilkelly
a17040f00f Add commentary on ttl index 2016-08-11 12:03:50 +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
Shane Kilkelly
197ee9f4d9 add a .nvmrc file 2016-08-10 15:27:40 +01:00
Henry Oswald
5360bcae77 fix unit tests 2016-08-05 15:10:13 +01:00
Henry Oswald
afd85f9d90 bump mongojs to 2.4 2016-06-01 17:40:56 +01:00
Henry Oswald
4825a1f557 extract clearup func so it always runs 2016-06-01 14:57:06 +01:00
Henry Oswald
f8e9df9130 each health check is run with different user_id
means can do a full clean after tests
2016-06-01 14:52:35 +01:00
Henry Oswald
2b8ca59420 bump mongojs version 2016-06-01 14:38:06 +01:00
Henry Oswald
f81d40d573 add missing err check 2016-06-01 14:34:23 +01:00
Henry Oswald
3cae036c3c improve logging 2016-06-01 14:21:49 +01:00
Henry Oswald
9f566f7730 added logging and more error checking in health check 2016-06-01 14:10:44 +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
8050f5ea08 change settings to 3042 2016-02-04 14:22:13 +00:00
Henry Oswald
7f74263cdc default port to 3042 2016-02-04 13:46:59 +00:00
Henry Oswald
35e0eafc95 cleaned up health check a little 2016-02-04 13:44:17 +00:00
Henry Oswald
b53dd50340 default port 3041 2016-02-04 13:38:33 +00: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
2c81b978cf make it works 2016-01-14 18:42:48 -02:00
Henrique Santos
1e60327f2e create scaffolding base on tags repo 2016-01-14 10:35:16 -02:00