Commit graph

270 commits

Author SHA1 Message Date
Jakob Ackermann
d482e0e4ee [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:24 +00:00
Eric Mc Sween
e3c1854eb4 Upgrade build-scripts to 3.4.0
This version fixes docker-compose health checks for dependent services. See
https://github.com/overleaf/dev-environment/pull/409 for details.
2020-11-24 08:03:28 -05:00
Simon Detheridge
8d8adba38c Merge pull request #55 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
Bump lodash from 4.17.15 to 4.17.20
2020-09-18 09:35:20 +01:00
Simon Detheridge
3c0ae226c4 Merge pull request #58 from overleaf/dependabot-npm_and_yarn-bl-2.2.1
Bump bl from 2.2.0 to 2.2.1
2020-09-18 09:35:11 +01:00
Simon Detheridge
8dd1082316 Merge pull request #61 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:35:00 +01:00
Jakob Ackermann
f7879711ee [misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1 2020-09-17 13:36:26 +01:00
dependabot[bot]
ef11f1a1d1 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:13:18 +00:00
Jakob Ackermann
918cd0bfbe [misc] mongodb: use the new db connector by default
mongojs was enabling it by default as well.
2020-09-10 10:09:30 +01:00
Jakob Ackermann
f6083a2d51 [misc] mongodb: refactor the process of setting up the db construct
Co-Authored-By: John Lees-Miller <jdleesmiller@gmail.com>
2020-09-10 10:08:30 +01:00
Jakob Ackermann
0cf5cad3b8 [misc] mongodb: drop the getCollection helper 2020-09-10 10:08:30 +01:00
Jakob Ackermann
4080784310 [misc] simplify mongodb collection access using a shared db construct
Resolve the getCollection Promises once and store the result in a shared
 `db` object which can get imported by all the call-sites.

The http server is starting only after a Promise of `waitForDb()`
 resolves. This covers the app code and the acceptance tests:
REF: 586706a9439c3591fc9613dc877f055096ca073a
REF: d026569d2eb4123e30c771a55a001b42d5ade72f
2020-09-10 10:08:30 +01:00
Jakob Ackermann
a52c0fe9fb [misc] mongodb: drop intermediate dbPromise
It would confuse the logic of a follow-up commit.
2020-09-10 10:08:23 +01:00
Jakob Ackermann
1b70189fb1 [misc] wait for the mongo connection before starting acceptance tests 2020-09-10 10:08:23 +01:00
dependabot[bot]
525216380e Bump bl from 2.2.0 to 2.2.1
Bumps [bl](https://github.com/rvagg/bl) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/rvagg/bl/releases)
- [Commits](https://github.com/rvagg/bl/compare/v2.2.0...v2.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-10 08:35:12 +00:00
Brian Gough
e08865646f upgrade from metrics-sharelatex to @overleaf/metrics 2020-09-09 10:37:56 +01:00
Jakob Ackermann
39ea30355e [misc] simplify the naming around waiting for a mongo connection
Co-Authored-By: Eric Mc Sween <eric.mcsween@overleaf.com>
Co-Authored-By: Miguel Serrano <mserranom@gmail.com>
Co-Authored-By: Simon Detheridge <s@sd.ai>
2020-08-24 17:41:03 +01:00
dependabot[bot]
851d4bda46 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-08-20 15:07:10 +00:00
Jakob Ackermann
959b5853a6 [misc] complete the connection setup before starting the http server 2020-08-19 13:06:22 +01:00
Jakob Ackermann
0c8f04a011 [misc] migrate to native mongo driver 2020-08-19 13:04:47 +01:00
Jakob Ackermann
4b3ed5e9b1 [misc] get rid of unsafe Buffer usage 2020-08-19 12:59:33 +01:00
Christopher Hoskin
0b1f61cb02 [misc] bump logger-sharelatex to version 2.2.0 2020-08-12 12:48:05 +01:00
Jakob Ackermann
e992166680 [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
Brian Gough
1dd24d1a4b update buildscript.txt to node 10.21.0 2020-06-03 11:09:57 +01:00
Brian Gough
c3345d6551 update to node 10.21.0 2020-06-03 10:22:19 +01:00
Ersun Warncke
686f0f0102 [misc] fix express deprecations
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-04-15 18:43:23 +02:00
Jakob Ackermann
db30170228 [misc] bump logger-sharelatex to 1.9.1 2020-03-23 16:18:07 +01:00
mserranom
6f90684fa6 Removed morgan logger 2020-03-17 17:23:17 +01:00
mserranom
2afc0894bc updated to express 4 2020-03-06 19:33:17 +01:00
mserranom
d5e3f9b4c8 make format_fix 2020-03-06 19:17:40 +01:00
mserranom
3eb217402b fixed mongodb 3.x change requiring 2020-03-06 19:15:21 +01:00
mserranom
9bbc8c7483 updated mongojs 2020-03-06 17:47:30 +01:00
mserranom
5926aa511a updated mocha 2020-03-06 17:39:43 +01:00
mserranom
3f066ea757 updated ajv 2020-03-06 17:32:59 +01:00
mserranom
aaf68cd898 updated acorn and sinon 2020-03-06 17:31:40 +01:00
mserranom
d27275a3ab fixed linting 2020-03-06 17:03:17 +01:00
mserranom
6f931ee52b npm audit fix and minor+patch version upgrades 2020-03-06 17:00:47 +01:00
mserranom
267607995e updated build scripts to 1.4.0 2020-03-06 16:50:14 +01:00
Jakob Ackermann
2b276cdeba Merge pull request #38 from overleaf/jpa-dependencies-cleanup
[misc] cleanup dependencies
2020-02-14 10:55:36 +01:00
Jakob Ackermann
79a336dd55 [misc] cleanup unused dependency on redis 2020-02-12 14:49:02 +01:00
Jakob Ackermann
f9cefa6f06 [misc] specify dependency versions to counter unrelated lockfile changes
Also delete unused redis dependency.
2020-02-12 14:49:00 +01:00
Jakob Ackermann
16f2dbb58c [misc] delete unused redis dependency 2020-02-12 14:47:30 +01:00
Brian Gough
5d76f55230 remove unused .travis.yml file 2020-02-12 12:37:00 +00:00
Jakob Ackermann
48815b1360 [misc] fix prettier-eslint errors 2020-02-11 12:29:17 +01:00
Jakob Ackermann
69bd187d5e [misc] update the build scripts to 1.3.5 2020-02-11 12:27:58 +01:00
Brian Gough
fceddd8739 update node version in buildscript.txt 2020-02-07 15:31:03 +00:00
Brian Gough
482b9d4b98 update .nvmrc 2020-02-07 15:30:41 +00:00
Brian Gough
f8ba165fe7 update to node 10.19.0 2020-02-07 14:16:31 +00:00
Tim Alby
f60c247a22 delete decaffeinate.sh 2020-01-14 18:25:43 +01:00
Shane Kilkelly
c69429a794 Merge pull request #27 from overleaf/sk-upgrade-node-10
Update to node 10, and move to package-lock.json
2019-10-14 10:09:21 +01:00
John Lees-Miller
98a438112b Update config 2019-09-28 11:54:17 +01:00
Shane Kilkelly
18dae9dc5a Update to node 10, and move to package-lock.json 2019-09-27 15:36:55 +01:00
Alasdair Smith
89a7d6db7c Remove unnecessary eslint dependencies 2019-08-12 10:34:28 +01:00
mserranom
c70a6bb92b Removed V8 profiler 2019-07-18 09:42:38 +00:00
Shane Kilkelly
4c85f6622f actually fix the linter 2019-06-27 10:58:27 +01:00
Shane Kilkelly
37e0703aff add mocha globals to eslint config 2019-06-27 10:53:46 +01:00
Shane Kilkelly
f5f83854eb format fix 2019-06-27 10:47:27 +01:00
Shane Kilkelly
ef0d9c5afc Update logger, metrics, and redis client
Also fix acceptance tests, broken by a change in behaviour of the redis client.
It now returns a promise from most operations. This interferes with how mocha
handles callbacks in `before` blocks.
2019-06-18 15:31:19 +01:00
Tim Alby
2c1f83138c update Git URL in Jenkinsfile 2019-05-07 18:31:14 +02:00
Timothée Alby
93743b6834 Update README.md 2019-05-07 16:34:12 +01:00
Christopher Hoskin
27c51ae5aa Fix npm shrinkwrap 2019-04-08 14:35:44 +01:00
Tim Alby
7586bb5dcb update build scripts to 1.1.16 2019-03-11 10:28:18 -05:00
Henry Oswald
8d74b9e2ec call app chat not chat-sharelatex 2019-02-05 18:50:57 +00:00
Henry Oswald
6f06598eb5 bulk update build scripts
- logger, metrics build scripts updates
2019-01-31 15:01:49 +00:00
Henry Oswald
463aee6140 Merge branch 'master' into ho-docker 2019-01-30 15:27:27 +00:00
Simon Detheridge
d27cef75da Use correct git tag for settings-sharelatex repository 2019-01-17 15:28:49 +00:00
Christopher Hoskin
2fb6643777 Add **/*.map .gitignore 2019-01-11 12:52:31 +00:00
Christopher Hoskin
fed40ff2cc Bump buildscript to v1.1.11 2019-01-11 12:51:22 +00:00
Christopher Hoskin
c59e74f80f Seems to need this too 2019-01-11 12:48:28 +00:00
Christopher Hoskin
f3d0ab6219 Bump settings to v1.1.0 2019-01-04 15:47:56 +00:00
Christopher Hoskin
f7b8678ff5 Add ajv as a dependency to stop prettier-eslint-cli from squawking 2019-01-04 15:31:02 +00:00
Christopher Hoskin
4079baa570 Revert "Pin eslint and friends to versions used by Nate to avoid peer invalid: ajv@^5.0.0, required by ajv-keywords@2.1.1"
This reverts commit 23bb3439ce4b606f5e3ef8a20ed98042a7f60a0c.
2019-01-04 15:28:48 +00:00
Christopher Hoskin
b7feb3f42a Pin eslint and friends to versions used by Nate to avoid peer invalid: ajv@^5.0.0, required by ajv-keywords@2.1.1 2019-01-04 15:19:23 +00:00
Christopher Hoskin
ae815df999 Add back in missing eslint and friends dependencies 2019-01-04 14:09:20 +00:00
Christopher Hoskin
d651e41bc1 Pin logger to version 1.5.9 2019-01-04 13:24:15 +00:00
Christopher Hoskin
a42be80d0b Remove grunt 2019-01-04 13:21:03 +00:00
Christopher Hoskin
72c03bc9da Remove references to coffeescript left over from decaf 2019-01-04 11:53:34 +00:00
Christopher Hoskin
03f7982bae Switch to v2 metrics 2019-01-04 11:37:48 +00:00
Christopher Hoskin
1d8e52cdd5 Merge branch 'master' into csh-ho-docker-issue-1338-bulk-upgrade 2019-01-04 11:30:18 +00:00
Christopher Hoskin
7280b18fe5 Get ready for decaffinate 2019-01-04 11:05:35 +00:00
Christopher Hoskin
f6dc55c16b Bump buildscripts to 1.1.10 2019-01-04 11:03:03 +00:00
Nate Stemen
adc4c3bdb8 use public rc files 2018-12-21 13:55:29 -05:00
Nate Stemen
9f65be5771 Prettier: convert individual decaffeinated files to Prettier format 2018-12-20 14:14:14 -05:00
Nate Stemen
ee4d9766fd Decaffeinate: convert individual files to js 2018-12-20 14:14:12 -05:00
Nate Stemen
c47ec473e6 Rename individual coffee files to js files 2018-12-20 14:14:11 -05:00
Nate Stemen
c82e899c2a Prettier: convert test/acceptance decaffeinated files to Prettier format 2018-12-20 14:14:11 -05:00
Nate Stemen
08c43ea4bf Rename test/acceptance/coffee to test/acceptance/js 2018-12-20 14:14:09 -05:00
decaffeinate
ca55bac90f decaffeinate: Run post-processing cleanups on DeletingAMessageTests.coffee and 7 other files 2018-12-20 14:14:08 -05:00
decaffeinate
41eed6df4e decaffeinate: Convert DeletingAMessageTests.coffee and 7 other files to JS 2018-12-20 14:14:05 -05:00
decaffeinate
c34b906598 decaffeinate: Rename DeletingAMessageTests.coffee and 7 other files from .coffee to .js 2018-12-20 14:14:02 -05:00
Nate Stemen
03093dc283 Prettier: convert app/js decaffeinated files to Prettier format 2018-12-20 14:13:59 -05:00
Nate Stemen
976d1675e6 Rename app/coffee dir to app/js 2018-12-20 14:13:56 -05:00
decaffeinate
45f865ebbb decaffeinate: Run post-processing cleanups on MessageFormatter.coffee and 6 other files 2018-12-20 14:13:56 -05:00
decaffeinate
0a12cee071 decaffeinate: Convert MessageFormatter.coffee and 6 other files to JS 2018-12-20 14:13:53 -05:00
decaffeinate
36a9f79d11 decaffeinate: Rename MessageFormatter.coffee and 6 other files from .coffee to .js 2018-12-20 14:13:50 -05:00
Nate Stemen
d54fc7efc6 Decaffeinate: add eslint and prettier rc files 2018-12-20 14:13:48 -05:00
Nate Stemen
273b81b806 forgot prettier-eslint-cli package. thanks @40thieves 2018-12-20 14:13:07 -05:00
Nate Stemen
b751f70436 bump settings-sharelatex version to latest release 2018-12-20 13:56:51 -05:00
Nate Stemen
f6ef1cd6a3 d'oh add individual decaffed files before committing 2018-12-13 16:59:55 -05:00
Nate Stemen
9c44a2c9fc download rc files in script and quote filenames 2018-12-13 16:55:47 -05:00
Nate Stemen
93a9030686 forgot to add files before committing 2018-12-10 22:59:31 -05:00
Nate Stemen
912781f23f update packages 2018-12-10 22:59:03 -05:00
Nate Stemen
c86e81e1f4 add eslint packages 2018-12-10 22:48:12 -05:00
Nate Stemen
7a579ed62a make script executable 2018-12-10 22:19:45 -05:00
Nate Stemen
159442ce41 update build scripts with v1.1.10 2018-12-10 22:17:48 -05:00
Alasdair Smith
0cc3dbf4f5 fix spelling mistake in coffee extension
Co-Authored-By: natestemen <nathanielstemen@gmail.com>
2018-12-04 07:44:59 -05:00
Nate Stemen
b19c1826d2 add eslintrc file so decaffeinate can use it 2018-12-03 14:15:21 -05:00
Nate Stemen
b438af7378 simplified version of decaffeinate shell script 2018-12-03 14:13:08 -05:00
Nate Stemen
6049355277 no longer need to ignore js files 2018-12-03 13:28:23 -05:00
Nate Stemen
f5ff8611b4 decaffeinate and lint individual files 2018-12-03 13:24:54 -05:00
Nate Stemen
1c8430d207 modify script to convert bulk of coffee and lint 2018-12-03 12:31:48 -05:00
Nate Stemen
296bdcf5bb add script from web-sharelatex-internal
79d7cae00d/decaffeinate.sh
2018-12-03 12:21:00 -05:00
John Lees-Miller
4f56c952df Add dev dependencies to shrinkwrap 2018-11-27 15:12:25 +00:00
Alasdair Smith
bdc6cd397d Use setting instead of hard-coding port 2018-10-09 11:55:07 +01:00
Henry Oswald
2555fb7df5 update build scripts 2018-10-03 11:34:48 +01:00
Henry Oswald
1b3f9306ba add MONGO_CONNECTION_STRING and REDIS_PASSWORD 2018-10-03 11:31:16 +01:00
Henry Oswald
872f28117c update build scripts 2018-06-12 10:02:06 +01:00
Henry Oswald
88edf63ab5 dockerised with 1.1.3 2018-05-22 17:25:17 +01:00
Shane Kilkelly
f5dd9783fa revert npm shrinkwrap 2018-04-26 09:55:54 +01:00
Shane Kilkelly
0f4a48b410 Change to node 6 2018-04-26 09:53:14 +01:00
Shane Kilkelly
1b3abe3b9a Upgrade docker images for Jenkins 2018-04-16 15:13:27 +01:00
Shane Kilkelly
0bff9d8c01 Upgrade to Node 8 2018-04-16 13:52:28 +01:00
James Allen
02918189ca Make :run npm commands 'private' 2018-01-29 14:21:22 +00:00
James Allen
bd581d069b Update with build scripts version 1.0.0 2018-01-29 12:07:35 +00:00
James Allen
a59dc9e149 Move acceptance tests to single process pattern 2018-01-29 12:07:15 +00:00
James Allen
0567664c77 Provide host as settings and add npm run start script 2017-12-29 08:05:03 +00:00
Joe Green
d9793a9431 Update Jenkinsfile 2017-10-16 14:14:19 +01:00
Joe Green
b486c03c3d only alert on master failure 2017-10-12 16:52:11 +01:00
Shane Kilkelly
2e403b1fc2 update npm-shrinkwrap.json 2017-09-08 13:10:58 +01:00
Shane Kilkelly
367c822f41 upgrade mongojs, make compatible with node-6 2017-09-08 13:03:42 +01:00
Joe Green
93cedd623f added build.txt 2017-09-04 14:46:17 +01:00
Joe Green
d80b645494 Create Jenkinsfile
* Create Jenkinsfile

* run acceptance tests

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile
2017-08-16 10:18:05 +01:00
Shane Kilkelly
bab4af105a Add a .nvmrc file 2017-03-27 14:48:40 +01:00
Shane Kilkelly
4ad9f1a967 Update to latest metrics library 2017-03-24 09:48:45 +00:00
Shane Kilkelly
407694cd33 Update metrics version to 1.7.0 2017-03-21 13:47:17 +00:00
Shane Kilkelly
619e49ab04 update to new api 2017-03-17 15:16:38 +00:00
Shane Kilkelly
f58f256864 upgrade metrics 2017-03-16 16:08:57 +00:00
James Allen
2f30732011 Don't read from comment thread if no global message thread exists 2017-02-24 16:20:06 +01:00
Shane Kilkelly
cb47ec464e Debug: sleep before starting acceptance tests 2017-02-20 09:53:46 +00:00
Shane Kilkelly
4b9c65c98e Don't do npm rebuild inside container 2017-02-20 09:31:10 +00:00
James Allen
dfe16d28a5 Add in guard for long messages 2017-02-14 11:43:50 +01:00
James Allen
7cf5db4c63 No need to return message after editing 2017-01-25 14:47:45 +01:00
James Allen
fa63eb6947 Allow editing/deleting of comments and threads 2017-01-24 15:44:32 +01:00
James Allen
a997bf9c01 Lock down to older version of mongojs 2017-01-18 15:08:24 +01:00
James Allen
3cf58083d4 Add profiling end point 2017-01-18 14:34:28 +01:00
James Allen
0e928a9aeb Don't fill user details 2017-01-06 14:14:47 +01:00
James Allen
1ff920e1b5 Add endpoints for resolving and reopening threads 2017-01-04 14:58:08 +01:00
James Allen
cb88e1e41b Add in support for threads for comments 2016-12-16 16:52:50 +00:00
James Allen
2a1e82ce46 Delete unused public dir 2016-12-15 15:30:00 +00:00
James Allen
3007759902 Add missing test script 2016-12-15 14:07:26 +00:00
James Allen
f94de71093 Add acceptance runner 2016-12-14 17:44:02 +00:00