Commit graph

632 commits

Author SHA1 Message Date
Miguel Serrano
fc6d810972 Merge pull request #85 from overleaf/msm-pinned-s3mock-docker-image
Pinned adobe/s3mock docker image
2020-06-18 16:10:43 +02:00
Miguel Serrano
4fb6c82fc4 Merge pull request #82 from overleaf/ew-jpa-fix-express-deprecations
[misc] fix express deprecations
2020-06-18 16:10:33 +02:00
Miguel Serrano
16922bf177 Pinned adobe/s3mock docker image 2020-06-17 16:36:57 +02:00
Tim Alby
472d65d15c Revert "[misc] make: ignore a lint/format task failure"
This reverts commit 85f3dc661b17f8b99aa073c376aa2aa5af8998af.
2020-06-04 10:39:35 +02:00
Tim Alby
8335f31d6c fix linting 2020-06-04 10:37:43 +02:00
Tim Alby
d3a7ffd1a9 fix formatting 2020-06-04 10:24:21 +02:00
Jakob Ackermann
9baf54ac00 [misc] make: ignore a lint/format task failure 2020-06-03 11:32:07 +01:00
Brian Gough
bb3e562d8d update buildscript.txt to node 10.21.0 2020-06-03 11:12:38 +01:00
Brian Gough
6ee56438aa update to node 10.21.0 2020-06-03 10:27:34 +01:00
Ersun Warncke
98c1ffefff [misc] fix express deprecations
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-04-16 09:39:57 +02:00
Henry Oswald
5cb369cba8 bump redis to 1.0.12 2020-03-31 13:22:38 +01:00
Eric Mc Sween
42049d5e0d Upgrade metrics-sharelatex to 2.6.2
This version fixes the HTTP request timing metrics, which were not
reporting correctly.
2020-03-25 10:13:07 -04:00
mserranom
87737a403d updated sandboxed-module and tests 2020-03-23 11:34:57 +01:00
mserranom
cd0e7b3afd updated async, byline, line-reader and cli 2020-03-23 11:28:26 +01:00
mserranom
f321144d8c fixed unit test using legacy express methods 2020-03-23 11:25:28 +01:00
mserranom
dd3673d5c0 updated mock methods to express v4 signatures 2020-03-23 11:17:32 +01:00
mserranom
79f6b9a877 updated express to v4 2020-03-23 11:10:24 +01:00
mserranom
ddcdbb6448 updated mocha and sinon, fixed test 2020-03-23 10:35:53 +01:00
mserranom
3464088c94 updated prettier and other minor dependencies 2020-03-23 10:21:46 +01:00
mserranom
3f2bb30980 updated aws-sdk and mongojs 2020-03-20 17:39:23 +01:00
mserranom
592cae3698 updated minor/patch dependencies 2020-03-20 17:33:45 +01:00
mserranom
bcc1c9d4f9 npm audit fix 2020-03-20 17:32:23 +01:00
mserranom
3d10196ebd updated build-scripts and sharelatex-xxx modules 2020-03-20 17:31:01 +01:00
Shane Kilkelly
622ab898d9 upgrade requestretry to 4.1 2020-02-26 12:25:13 +00:00
dependabot[bot]
705ee285c1 Bump request from 2.33.0 to 2.88.2
Bumps [request](https://github.com/request/request) from 2.33.0 to 2.88.2.
- [Release notes](https://github.com/request/request/releases)
- [Changelog](https://github.com/request/request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/request/request/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-19 11:38:33 +00:00
mserranom
61fa73b147 Uninstall coffee-script 2020-02-17 18:36:21 +01:00
mserranom
572446956e prettier: convert individual decaffeinated files to Prettier format 2020-02-17 18:36:02 +01:00
mserranom
0a8e936c47 decaffeinate: convert individual files to js 2020-02-17 18:36:01 +01:00
mserranom
0c8873fd2e decaffeinate: rename individual coffee files to js files 2020-02-17 18:35:59 +01:00
mserranom
3183aca524 prettier: convert test/acceptance decaffeinated files to Prettier format 2020-02-17 18:35:59 +01:00
mserranom
011262986d decaffeinate: rename test/acceptance/coffee to test/acceptance/js 2020-02-17 18:35:55 +01:00
decaffeinate
8fdf89b87c decaffeinate: Run post-processing cleanups on AppendingUpdatesTests.coffee and 11 other files 2020-02-17 18:35:50 +01:00
decaffeinate
11c39cde65 decaffeinate: Convert AppendingUpdatesTests.coffee and 11 other files to JS 2020-02-17 18:35:39 +01:00
decaffeinate
c97a2a3c07 decaffeinate: Rename AppendingUpdatesTests.coffee and 11 other files from .coffee to .js 2020-02-17 18:35:33 +01:00
mserranom
7741730574 prettier: convert test/unit decaffeinated files to Prettier format 2020-02-17 18:35:16 +01:00
mserranom
201bfbbf32 decaffeinate: rename test/unit/coffee to test/unit/js 2020-02-17 18:35:11 +01:00
decaffeinate
a35c69c0c8 decaffeinate: Run post-processing cleanups on DiffGeneratorTests.coffee and 13 other files 2020-02-17 18:35:01 +01:00
decaffeinate
86a9593ec0 decaffeinate: Convert DiffGeneratorTests.coffee and 13 other files to JS 2020-02-17 18:34:50 +01:00
decaffeinate
fa5256d3c2 decaffeinate: Rename DiffGeneratorTests.coffee and 13 other files from .coffee to .js 2020-02-17 18:34:39 +01:00
mserranom
3587b42311 prettier: convert app/js decaffeinated files to Prettier format 2020-02-17 18:34:28 +01:00
mserranom
e79e044644 decaffeinate: rename app/coffee dir to app/js 2020-02-17 18:34:25 +01:00
decaffeinate
65ecd31c3a decaffeinate: Run post-processing cleanups on DiffGenerator.coffee and 17 other files 2020-02-17 18:34:21 +01:00
decaffeinate
57345632e0 decaffeinate: Convert DiffGenerator.coffee and 17 other files to JS 2020-02-17 18:34:04 +01:00
decaffeinate
a971c5895b decaffeinate: Rename DiffGenerator.coffee and 17 other files from .coffee to .js 2020-02-17 18:33:53 +01:00
mserranom
0366406dbe decaffeinate: add eslint and prettier packages 2020-02-17 18:33:37 +01:00
mserranom
a77c05c60c decaffeinate: update .gitignore 2020-02-17 18:33:06 +01:00
mserranom
acd09a8a4e decaffeinate: update build scripts to es 2020-02-17 18:33:01 +01:00
mserranom
9cee6c3d22 removed unnecessary default argument 2020-02-17 18:32:47 +01:00
Jakob Ackermann
0cb4f3c24c Merge pull request #74 from overleaf/jpa-dependencies-cleanup
[misc] rename npm-shrinkwrap.json to package-lock.json and run npm i
2020-02-14 10:56:35 +01:00
Jakob Ackermann
660c9145ad [misc] rename npm-shrinkwrap.json to package-lock.json and run npm i 2020-02-12 14:39:52 +01:00
Brian Gough
883c0e83cf remove unused .travis.yml file 2020-02-12 12:37:01 +00:00
Jakob Ackermann
04e0960f05 [misc] update the build scripts to 1.3.5 2020-02-11 12:27:54 +01:00
Brian Gough
bb033c479f use public node:10.19.0 image 2020-02-07 14:15:41 +00:00
Brian Gough
efb5f1a057 update to gcr.io/overleaf-ops/node:10.19.0 2020-02-06 03:36:52 +00:00
Brian Gough
86a5c27833 upgrade to local node:10.18.1 image 2020-02-04 16:09:56 +00:00
Jakob Ackermann
732860a49e [misc] upgrade node to version 10.18.1 2020-01-31 15:40:19 +01:00
Jakob Ackermann
ca668ad657 [misc] test/acceptance: wait for the s3 container to start 2020-01-27 12:21:31 +01:00
Jakob Ackermann
b0b96ee014 [misc] add support for offline s3 tests
update the build scripts to 1.3.4
2020-01-27 12:21:30 +01:00
Jakob Ackermann
265e30df3d [misc] update build scripts to version 1.3.3 2020-01-27 12:17:52 +01:00
Jakob Ackermann
9e28ceb9db [misc] test/acceptance: do not hard code the logging level
There is an environment variable LOG_LEVEL to set it.
2020-01-24 18:30:03 +01:00
Nate Stemen
4d67c846b9 bump build script to 1.1.24 2019-10-30 10:26:38 -04:00
Nate Stemen
e3b3492f44 add public link to contributing docs 2019-10-30 10:26:18 -04:00
Brian Gough
ebbe728ec1 fix performance of update removal 2019-10-09 11:11:15 +01:00
Brian Gough
4eab16d6f4 add continueOnError in settings 2019-10-01 13:25:02 +01:00
John Lees-Miller
c5d9bf1093 Update config 2019-09-28 11:08:32 +01:00
mserranom
d29ea9f527 Fixed WEB_HOST lookup in settings 2019-07-29 10:28:27 +00:00
mserranom
e84ee6ebeb removed profiler 2019-07-18 09:00:47 +00:00
Shane Kilkelly
61450bb125 update logger and metrics 2019-06-21 16:12:40 +01:00
Timothée Alby
6ff1ca3967 update Git URL in Jenkinsfile 2019-05-07 17:48:59 +01:00
Timothée Alby
63920ce33c Update README.md 2019-05-07 16:21:52 +01:00
Henry Oswald
266c6c368e have track changes make calls to web_api not web 2019-03-08 15:32:58 +00:00
Henry Oswald
e54a376d0e Merge branch 'master' of github.com:sharelatex/track-changes-sharelatex 2019-03-05 17:10:40 +00:00
Henry Oswald
d47dcca0d6 add sentry dsn to config 2019-03-05 17:10:18 +00:00
Brian Gough
79c1dc5c1a use explicit json content-type to avoid security issues with text/html 2019-02-07 15:54:13 +00:00
Henry Oswald
0151826eaf clear error if s3 keys are not set for tests 2019-02-06 12:23:15 +00:00
Henry Oswald
7caf3d4935 remove debugging 2019-02-06 11:29:31 +00:00
Henry Oswald
cef7e1e17b Merge branch 'master' into ho-docker 2019-02-06 11:28:16 +00:00
Henry Oswald
6a3506aed9 update redis key schema for cluster 2019-02-01 19:42:14 +00:00
Henry Oswald
38dbea4b0e bulk upgrade to 1.1.12, moved to npm rather than git 2019-02-01 16:18:23 +00:00
Brian Gough
d4a22a65ac add missing coffeescript to package.json
using the same version as in web
2019-01-14 08:43:11 +00:00
Christopher Hoskin
44762ef498 Add **/*.map to .gitignore 2019-01-11 19:09:39 +00:00
Christopher Hoskin
cc4d9ffcbc Bump buildscript to 1.1.11 2019-01-11 19:07:06 +00:00
Christopher Hoskin
5e1d51d5d7 Add note on acceptance tests to README.md 2019-01-11 19:04:35 +00:00
Christopher Hoskin
86c202af8e Merge branch 'bg-remove-unwanted-modules' into csh-ho-docker-issue-1338-bulk-upgrade 2019-01-11 17:53:48 +00:00
Brian Gough
def7a0eeaa remove unnecessary modules 2019-01-11 15:17:18 +00:00
Christopher Hoskin
fe4c75a2ab Remove grunt 2019-01-08 16:39:46 +00:00
Christopher Hoskin
1c701a2d3d Bump buildscript to v1.1.10 2019-01-08 16:15:04 +00:00
Christopher Hoskin
65e1aba265 Update app.coffee to work with Metrics v2 2019-01-08 16:11:56 +00:00
Christopher Hoskin
85216fbd34 Update metrics to v2.0.12, logger to v1.5.9 and settings to v1.1.0, add npm-shrinkwrap 2019-01-08 16:08:40 +00:00
Henry Oswald
d88a40e383 Merge branch 'master' into ho-docker 2018-12-05 16:50:41 +00:00
Henry Oswald
0529493168 bump metrics 2018-12-05 16:50:20 +00:00
Henry Oswald
c3ec4a534e update config to take DOCUMENT_UPDATER_HOST 2018-12-05 16:49:15 +00:00
Alasdair Smith
a2ff9de0dd Use setting instead of hard-coding port 2018-10-09 11:51:18 +01:00
Henry Oswald
8d8319460e pass tmp path as env var 2018-10-04 11:14:15 +01:00
Henry Oswald
7893ace13f add aws creds 2018-10-04 10:40:34 +01:00
Henry Oswald
0a64983fb4 update config with full mongo conneciton and redis details 2018-10-04 10:34:44 +01:00
Henry Oswald
f26bebca4d update build scripts 2018-10-04 10:32:21 +01:00
Henry Oswald
fca95b5b27 dockerise app
- 1.1.3 build scripts
- add env vars for configuring s3
- add docker file
2018-05-24 12:02:27 +01:00
Alberto Fernández Capel
3de7970e0b Make travis read node version from .nvmrc file 2018-05-01 09:21:20 +01:00
James Allen
dd008e1c7d Provide hosts as environment settings and add npm run start script 2017-12-29 08:18:04 +00:00
Brian Gough
b9adad72be upgrade to ioredis 3 via redis-sharelatex 2017-10-30 11:09:25 +00:00
Brian Gough
dacc7ebabb exit if mock servers fail to start 2017-10-20 15:24:58 +01:00
Joe Green
67be2feb23 Update Jenkinsfile 2017-10-16 14:13:00 +01:00
Joe Green
90f2b85034 only alert on master 2017-10-12 16:57:06 +01:00
Joe Green
dbef5904be use correct node version in jenkinsfile 2017-09-20 15:46:48 +01:00
Joe Green
76cae1acf4 build.txt 2017-09-04 14:57:36 +01:00
Shane Kilkelly
1d0e0e68aa Merge branch 'master' into sk-node-6 2017-08-30 08:33:46 +01:00
Brian Gough
ca991c1efd fix broken unit test
the behaviour of the code changed so that raw ops are always compressed
2017-08-29 15:10:58 +01:00
Shane Kilkelly
1cd80b9dcd Restore a broken test that was commented out temporarily 2017-08-25 14:53:39 +01:00
Shane Kilkelly
ad43ddb6c6 Remove commented-out code 2017-08-25 14:52:14 +01:00
Shane Kilkelly
f6fdc5a827 Remove stray log 2017-08-25 14:50:33 +01:00
Shane Kilkelly
cd2ed24937 Fix WriteStream API 2017-08-25 14:47:07 +01:00
Shane Kilkelly
7c9ca7ccef Revert accidental change 2017-08-25 14:46:47 +01:00
Shane Kilkelly
095ac31347 wip: updating to node 6 2017-08-24 14:32:27 +01:00
Joe Green
004d1c134c Create Jenkinsfile 2017-08-16 10:39:03 +01:00
James Allen
b8d0eb2823 Merge branch 'master' into ja-return-latest-doc-on-no-version 2017-08-04 09:31:19 +02:00
James Allen
c5252f893b Don't return all updates if no version is given 2017-06-28 15:38:31 +01:00
Brian Gough
e8dfe3099f add missing callback for null byte check 2017-06-02 14:13:33 +01:00
Brian Gough
b71a15a6a0 null byte check for JSON.stringify in archiving 2017-06-01 13:36:13 +01:00
Brian Gough
d9763eb105 log corrupt updates 2017-05-23 13:55:10 +01:00
James Allen
c6d9df95f3 Merge pull request #38 from sharelatex/ja-redis-cluster
Migrate lock to be redis-cluster compatible
2017-05-16 14:16:43 +01:00
James Allen
fb6e028182 Migrate lock to be redis-cluster compatible 2017-05-15 10:34:24 +01:00
Brian Gough
756563fe42 Merge pull request #36 from sharelatex/bg-improve-archiving
make archiving less noisy
2017-05-10 14:18:18 +01:00
Brian Gough
ff76d1cf62 update to redis-sharelatex v1.0.2 2017-05-10 13:48:43 +01:00
Brian Gough
2781d9fd80 keep track of processed/total docs in archiving 2017-05-09 14:00:16 +01:00
Brian Gough
c26bccd390 make arguments handling for packworker more robust 2017-05-09 14:00:16 +01:00
Brian Gough
cac7556ad5 only check packs for archiving once each week 2017-05-09 14:00:15 +01:00
Brian Gough
c6e83c6cb8 allow archiving to exit properly on hard timeout 2017-05-09 14:00:15 +01:00
Brian Gough
9936710a1a replace error with warning for archiving timeout 2017-05-09 14:00:15 +01:00
Brian Gough
0e8a924f28 Merge pull request #35 from sharelatex/bg-fix-dangling
flush dangling docs
2017-05-05 15:03:41 +01:00
Brian Gough
7cd2911a0a Merge pull request #34 from sharelatex/bg-update-redis-sharelatex-to-v1.0.1
update redis-sharelatex to v1.0.1
2017-05-05 11:51:33 +01:00
Brian Gough
b82567ef79 support scan operations on redis cluster 2017-05-05 11:30:55 +01:00
Brian Gough
842b91b93a update redis-sharelatex to v1.0.1
manual edit to npm-shrinkwrap.json to preserve existing versions
2017-05-05 09:38:58 +01:00
Brian Gough
e0ed321d7b fix shrinkwrap file to add redis-sharelatex 2017-05-03 16:37:12 +01:00
Brian Gough
35810fa702 Revert "update shrinkwrap file"
This reverts commit d16d3a1db97049cd99bfd6d965e4fab77453ae67.
2017-05-03 16:32:23 +01:00
Brian Gough
534bd8f7ad add flushing code with error check for cluster 2017-05-02 14:19:49 +01:00
Brian Gough
0966f694da fix acceptance tests to work with redis cluster 2017-04-27 10:14:44 +01:00
Brian Gough
3b5a07d530 fix update to work with redis cluster
the items do not have the same tag, so we must delete the entry from the
docsWithHistoryOps set outside the multi.
2017-04-26 16:25:34 +01:00
Brian Gough
7836556d10 update shrinkwrap file 2017-04-24 14:24:02 +01:00
Brian Gough
3045becbb6 use redis-sharelatex with redis cluster config 2017-04-24 14:23:32 +01:00
Brian Gough
df38893538 remove old single redis flushing code 2017-04-24 11:36:31 +01:00
Brian Gough
a7ff15ec7d remove logging, fix query 2017-04-24 09:49:11 +01:00
Brian Gough
33fb1ddf57 script to flush dangling ops 2017-04-20 16:58:26 +01:00
Brian Gough
2a68b81cc1 randomise order of flush 2017-04-20 14:32:23 +01:00
Brian Gough
9eb36f9692 improve log message for flushing 2017-04-20 11:55:32 +01:00
Brian Gough
43f51355b2 add limit parameter to flushAll 2017-04-20 11:01:46 +01:00
Brian Gough
976f19f763 remove spurious call to getAllDocIdsWithHistoryOps 2017-04-20 10:14:44 +01:00
Brian Gough
70ce3a5271 Merge pull request #29 from sharelatex/bg-simple-flush-all
simple flush for all projects
2017-04-19 16:32:09 +01:00
Brian Gough
b5b61b98d0 avoid blocking when fetching redis keys
use scan instead of keys method
2017-04-19 15:39:33 +01:00
Brian Gough
9ce6d77cca add check for dangling updates 2017-04-13 11:31:45 +01:00