dependabot[bot]
28b2d0ad87
Bump y18n from 4.0.0 to 4.0.1
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 03:00:58 +00:00
Jakob Ackermann
6cb4246eb1
[misc] consume and validate a custom imageName for synctex requests
2021-03-30 13:57:40 +01:00
Thomas Mees
e63b9ec5ea
Lower log level of 'no project_id found on client' messages
2021-03-30 12:40:26 +02:00
dependabot[bot]
b6cd7bca9c
Bump y18n from 4.0.0 to 4.0.1
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 08:56:10 +00:00
dependabot[bot]
42d07f936c
Bump y18n from 4.0.0 to 4.0.1
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 08:55:47 +00:00
Jakob Ackermann
485ce2b8cd
[misc] drop unused node-statsd package
2021-03-30 09:45:08 +01:00
Jakob Ackermann
01059af954
[misc] drop unused node-statsd package
2021-03-30 09:45:07 +01:00
Brian Gough
a55aa61d71
use .includes instead of .indexOf
2021-03-29 11:13:59 +01:00
Eric Mc Sween
065095f53d
Merge pull request #104 from overleaf/jpa-metrics-module-3-5-1
...
[misc] bump the version of the metrics module to 3.5.1
2021-03-25 08:27:45 -04:00
Eric Mc Sween
61f43bf5d8
Upgrade metrics module to 3.5.1
2021-03-25 08:10:43 -04:00
Eric Mc Sween
9b009efd46
Upgrade to Node 12
2021-03-23 15:19:57 -04:00
Eric Mc Sween
a793ecd41b
Add global test setup
...
Configure chai and SandboxedModule in a central place. Configure
SandboxedModule globals that are required in Node 12.
2021-03-23 15:19:57 -04:00
Eric Mc Sween
92d3a07818
Merge pull request #80 from overleaf/jpa-metrics-module-3-5-1
...
[misc] bump the version of the metrics module to 3.5.1
2021-03-23 08:45:50 -04:00
Alf Eaton
a271d5ce10
Merge pull request #212 from overleaf/ae-chown-app-folders
...
Ensure that app folders exist before running chown in entrypoint.sh
2021-03-23 09:43:31 +00:00
Alf Eaton
db0cd53ed4
Merge pull request #213 from overleaf/ae-readme
...
Update README
2021-03-23 09:41:44 +00:00
Jakob Ackermann
b563deef14
[misc] bump the version of the metrics module to 3.5.1
2021-03-22 12:59:43 +00:00
Eric Mc Sween
af72b4224c
Merge pull request #36 from overleaf/jpa-metrics-module-3-5-1
...
[misc] bump the version of the metrics module to 3.5.1
2021-03-22 08:52:09 -04:00
Eric Mc Sween
7a6b86185b
Merge pull request #215 from overleaf/ho-clsi-cookie-post
...
support post and get for getting status of clsi project
2021-03-22 07:56:09 -04:00
Brian Gough
32184330d9
delay closing by 1 minute for deployment flip
2021-03-22 11:26:02 +00:00
Brian Gough
17e3068499
close real-time via a status file
2021-03-22 10:46:25 +00:00
Eric Mc Sween
0bc76bfdfd
Upgrade to Node 12
2021-03-19 16:05:19 -04:00
Eric Mc Sween
11261a0cb9
Add global test setup
...
Configure SanboxedModule and chai in a central place. Configure
SandboxedModule globals that are needed in Node 12.
2021-03-19 16:04:30 -04:00
Christopher Hoskin
6ca016bb05
Explain the situation with permissions on Linux
2021-03-19 14:32:54 +00:00
Alf Eaton
268a144e43
Merge remote-tracking branch 'origin/master' into ae-readme
2021-03-19 12:06:03 +00:00
Alf Eaton
7e3edcee2c
Add instructions for Linux
2021-03-19 12:05:22 +00:00
Alf Eaton
d4b4cb399a
Revert "Make TEXLIVE_IMAGE_USER instruction macOS only"
...
This reverts commit ab6fe228cadd3329885fdc60aea867d601579759.
2021-03-19 12:00:47 +00:00
Shane Kilkelly
072d0a9dab
Add flag to qpdf, to preserve PDF/A compliance
2021-03-19 11:35:59 +00:00
Christopher Hoskin
34b572de9e
Merge branch 'ae-readme' of github.com:overleaf/clsi into ae-readme
2021-03-19 10:35:25 +00:00
Christopher Hoskin
638e72295b
Add link to \openout primitive docs
2021-03-19 10:34:52 +00:00
Eric Mc Sween
b27cb4ec12
Upgrade to Node 12
2021-03-18 16:41:31 -04:00
Eric Mc Sween
b9e7cbf73b
Add global test setup
...
Configure chai and SandboxedModule in a central place. Configure
SandboxedModule globals that are needed in Node 12.
2021-03-18 16:41:31 -04:00
Eric Mc Sween
262385da84
Merge pull request #68 from overleaf/jpa-metrics-module-3-5-1
...
[misc] bump the version of the metrics module to 3.5.1
2021-03-18 11:32:45 -04:00
Eric Mc Sween
2c1f81c4a4
Merge pull request #58 from overleaf/jpa-metrics-module-3-5-1
...
[misc] bump the version of the metrics module to 3.5.1
2021-03-18 11:08:55 -04:00
Alf Eaton
984766a9fb
Make TEXLIVE_IMAGE_USER instruction macOS only
2021-03-18 09:55:31 +00:00
Eric Mc Sween
9dc54cc9d0
Upgrade to Node 12
2021-03-17 16:34:52 -04: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
Eric Mc Sween
1a2235a219
Upgrade to Node 12
2021-03-16 16:48:45 -04:00
Eric Mc Sween
dc5bfea181
Global test setup
...
Configure chai and SandboxedModule globally with options used in many
tests.
That required upgrading mocha and SandboxedModule.
2021-03-16 16:48:45 -04:00
Christopher Hoskin
b8d0389a53
README typos
2021-03-16 15:29:53 +00:00
Eric Mc Sween
71470d3410
Upgrade to Node 12
2021-03-16 08:41:46 -04:00
Eric Mc Sween
5efae3bee6
Add a global test setup file
...
Configure chai and SandboxedModule globally instead of in every test
file. Also add globals that are required for SandboxedModule to work in
Node 12.
2021-03-16 08:41:46 -04:00
Christopher Hoskin
0a89b6537c
Fill in missing text for environment variables
2021-03-16 12:30:06 +00:00
Christopher Hoskin
17a83bc169
Expand list of environment variables
2021-03-16 12:00:48 +00:00
Henry Oswald
7cd36e139a
support post and get for getting status of clsi project
2021-03-16 10:24:59 +00:00
Eric Mc Sween
2f9b9951e6
Upgrade to Node 12
2021-03-12 16:40:30 -05:00
Eric Mc Sween
c68e1a2dfe
Add a global test setup
...
Configure SandboxedModule with common options, including some globals
that are required in Node 12.
2021-03-12 16:39:45 -05:00
Eric Mc Sween
3eca505319
Upgrade to Node 12
2021-03-12 16:27:33 -05:00
Eric Mc Sween
9f2d219102
Add a global test setup file
...
Set up generally useful stuff:
* chai.should()
* logger stubs
* globals in SandboxedModule, including Buffer and process, which are
now required in Node 12
2021-03-12 16:27:33 -05:00
Eric Mc Sween
8b6f1f5750
Upgrade to Node 12
2021-03-12 14:44:55 -05:00
Alf Eaton
f38cef6e56
Change settings file .coffee to .js
2021-03-11 11:50:47 +00:00
Alf Eaton
9c596fb17d
Update README.md
2021-03-10 22:38:34 +00:00
Alf Eaton
e7be75a4b7
Update README.md
2021-03-10 22:36:33 +00:00
Jakob Ackermann
17c3d7729e
Merge remote-tracking branch 'origin/master' into jpa-let-mocha-catch-errors
2021-03-02 08:54:25 +00:00
Jakob Ackermann
a26a497743
[misc] let mocha catch errors when running acceptance tests
2021-03-01 15:51:55 +00:00
Jakob Ackermann
b7b13a90d1
[misc] ApplyUpdateTests: process all the pending-updates-lists
2021-03-01 15:26:18 +00:00
Brian Gough
22762f698c
Merge pull request #201 from overleaf/bg-add-health-check-comment
...
add comment about health checks on '/'
2021-02-25 11:41:54 +00:00
Jakob Ackermann
ed70b99d8a
[misc] exportProject: collect and send user ids of updates in trailer
2021-02-25 09:52:54 +00:00
Thomas
23738540ed
Fix API request errors which could contain API hostname or address ( #160 )
...
Wrap errors produced by failing requests to web API, and remove the url/hostname from thrown error messages. (But keep the URL path for info.)
2021-02-24 15:09:19 +01:00
Jakob Ackermann
f411049b82
[misc] add a new endpoint for exporting all the project history
2021-02-23 18:02:58 +00:00
Henry Oswald
20a373d95c
stop listening on the pending updates channels 10 times
2021-02-23 08:27:29 +00:00
Alf Eaton
18dbb12434
Add /app/output
2021-02-18 15:33:16 +00:00
Alf Eaton
498ca80cd3
Ensure that app folders exist before running chown
2021-02-18 15:09:48 +00:00
Jakob Ackermann
8915e1d026
[misc] add a new endpoint for getting deleted docs
2021-02-18 10:10:14 +00:00
Jakob Ackermann
c97afede90
Merge pull request #94 from overleaf/jpa-metrics-module-3-5-1
...
[misc] bump the version of the metrics module to 3.5.1
2021-02-18 09:36:41 +00:00
Jakob Ackermann
99287c2537
Merge pull request #93 from overleaf/jpa-delete-via-patch
...
[misc] add a new endpoint for changing a docs meta data -- incl. deleted
2021-02-18 09:36:29 +00:00
Jakob Ackermann
0c169cb242
[HttpController] double down on request validation
2021-02-17 11:31:27 +00:00
Jakob Ackermann
26bc074098
[DocstoreManager] patchDoc: allow updates after deletion
2021-02-17 11:31:01 +00:00
Jakob Ackermann
5f084f8603
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:15:52 +00:00
Jakob Ackermann
f6ab3a33af
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:15:52 +00:00
Jakob Ackermann
6bd5120dcf
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:10:15 +00:00
Jakob Ackermann
5329520a61
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:10:13 +00:00
Jakob Ackermann
f652a62975
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:10:12 +00:00
Jakob Ackermann
b35381f275
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:10:10 +00:00
Jakob Ackermann
1705d3d133
[misc] bump the version of the metrics module to 3.5.1
2021-02-16 15:10:09 +00:00
Henry Oswald
27e7b77bdb
bump default key shards to 10
2021-02-16 10:53:35 +00:00
Henry Oswald
c7e57cd28f
add Dispatchers running on old queue while we migrate
...
revert once migrated
2021-02-15 14:16:45 +00:00
Henry Oswald
854e24bb57
remove unneeded anonymous func
2021-02-15 14:12:28 +00:00
Jakob Ackermann
dd4f4057f4
[misc] add a new endpoint for changing a docs meta data -- incl. deleted
...
- Validate the request payload with joi -- includes acceptance tests.
- Reject updates to docs that have been deleted.
2021-02-15 13:13:48 +00:00
Christopher Hoskin
21d0b05dff
Update README as Credentials are no longer required for acceptance tests
2021-02-09 12:45:57 +00:00
Henry Oswald
49bed6595d
added queueKey to error info when trying to push to redis
2021-02-09 12:42:58 +00:00
Jakob Ackermann
12bef53645
[DocArchiveManager] optionally do not un-archive soft deleted docs
2021-02-09 11:20:26 +00:00
Jakob Ackermann
708bdfd197
[DocManager] optionally flush docs out of mongo when deleting them
2021-02-09 11:17:46 +00:00
Jakob Ackermann
915fa4ca67
Merge pull request #82 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
Bump ini from 1.3.5 to 1.3.8
2021-02-09 11:14:39 +00:00
Jakob Ackermann
2cf9ff7b41
Merge pull request #89 from overleaf/jpa-is-doc-deleted
...
[misc] add a new endpoint for querying the deleted status of a doc
2021-02-09 11:14:28 +00:00
Jakob Ackermann
3ef1f91f47
Merge pull request #86 from overleaf/jpa-drop-expensive-default
...
[misc] MongoManager: drop unused, potentially expensive default options
2021-02-09 11:14:02 +00:00
Jakob Ackermann
ae453d463d
Merge pull request #84 from overleaf/jpa-offload-deleted-items
...
[app] add a new route for archiving a single doc
2021-02-09 11:10:12 +00:00
Henry Oswald
0cdeffae6c
fix off by 1 error in Doc updater client helper file
2021-02-09 10:50:37 +00:00
Henry Oswald
46b389e8b3
fix off by 1 error in key sharding
2021-02-09 10:48:40 +00:00
Henry Oswald
bcfc7e66fc
add missing comma in settings file
2021-02-09 10:32:16 +00:00
Henry Oswald
31e1808dd8
shard the pending-updates-list queue
2021-02-08 16:02:41 +00:00
Henry Oswald
c308e60b6b
speed up DocumentUpdaterControllerTests by directly injecting redis into
...
tests
2021-02-08 11:13:22 +00:00
Shane Kilkelly
465a39c564
Wait one second between checks in swap test
2021-02-04 09:52:13 +00:00
Shane Kilkelly
b010622442
Change default compressionMethod to gzip
2021-02-04 09:52:13 +00:00
Shane Kilkelly
b92c737814
Use configured compression method in swap job
2021-02-04 09:52:13 +00:00
Shane Kilkelly
c67014b859
Update SqliteDBStoreTest with swap/compression
2021-02-04 09:52:13 +00:00
Shane Kilkelly
961cec5bc8
Implement swap/restore in SqliteDBStore
2021-02-04 09:52:13 +00:00
Shane Kilkelly
a3d4976ce2
Implement swap/restore on NoopDbStore
2021-02-04 09:52:13 +00:00
Shane Kilkelly
83d9d122bf
Add swap/restore methods to DBStore interface
2021-02-04 09:52:13 +00:00
Shane Kilkelly
21c524d8b6
Log actions when (un)compressing project
2021-02-04 09:52:13 +00:00
Shane Kilkelly
eba7cbe696
Implement gzip in FSGitRepoStore
2021-02-04 09:52:13 +00:00
Shane Kilkelly
1c81fcf501
Add gzip to RepoStore interface
2021-02-04 09:52:13 +00:00
Shane Kilkelly
8496871ab2
Add gzip support to Tar helper
2021-02-04 09:52:13 +00:00
Shane Kilkelly
169de1fead
Configure swap compression method: bzip2 or gzip
2021-02-04 09:52:13 +00:00
Henry Oswald
40de999766
Update config/settings.defaults.js
...
parseint on dispatcher count
Co-authored-by: John Lees-Miller <jdleesmiller@gmail.com>
2021-02-04 09:30:35 +00:00
Henry Oswald
11c8cfc939
shard the pending-updates-list queue
2021-02-02 16:38:25 +00:00
Brian Gough
bad5fd20a8
Merge pull request #208 from overleaf/bg-fix-use-output-dir
...
fix for exception in "decaff cleanup ResourceStateManager"
2021-02-01 11:24:19 +00:00
Brian Gough
d0d36bf9d8
Merge pull request #206 from overleaf/bg-add-missing-unit-test
...
add unit test for non-existent state file
2021-02-01 11:23:56 +00:00
Shane Kilkelly
c520ecd70d
Allow configuration of AWS region
2021-01-27 10:41:32 +00:00
Brian Gough
f0b4f1238b
provide a /oops-internal endpoint for testing uncaughtExceptions
2021-01-26 16:35:39 +00:00
Brian Gough
fc11574698
add uncaughtException handler
2021-01-26 14:08:29 +00:00
Brian Gough
865e68051e
include fallback for missing state file
2021-01-26 13:59:28 +00:00
Brian Gough
8946f87ca6
Merge branch 'bg-add-missing-unit-test' into bg-fix-use-output-dir
2021-01-26 11:09:00 +00:00
Brian Gough
a8e47da9e9
Revert "Merge pull request #205 from overleaf/revert-200-bg-decaff-cleanup"
...
This reverts commit 76d8d3181b9464d1e1bbc713a2729ca269d9c047, reversing
changes made to 31a8dc3a98d73c2707d633712f0ef7207013e78b.
2021-01-26 11:04:33 +00:00
Brian Gough
a86e521ac0
add unit test for non-existent state file
2021-01-26 11:03:18 +00:00
Brian Gough
9dc55729ac
Revert "decaff cleanup ResourceStateManager"
2021-01-25 15:26:53 +00:00
Brian Gough
f41f3aba8c
Merge pull request #204 from overleaf/bg-use-output-dir
...
use separate output dir for generated files
2021-01-25 14:10:09 +00:00
Brian Gough
90c0d931ad
Merge pull request #201 from overleaf/bg-more-cleanup
...
decaff cleanup of OutputFileManager
2021-01-25 14:09:46 +00:00
Brian Gough
c67c8a6c80
Merge pull request #200 from overleaf/bg-decaff-cleanup
...
decaff cleanup ResourceStateManager
2021-01-25 14:09:24 +00:00
Brian Gough
e52871e07b
Merge pull request #199 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
Bump ini from 1.3.5 to 1.3.8
2021-01-25 14:09:02 +00:00
Brian Gough
6fa081522d
add a warning for requests without build id
2021-01-22 11:05:52 +00:00
Brian Gough
b5346658b0
clear output directory when clearing project
2021-01-22 11:05:52 +00:00
Brian Gough
565cd53eb5
add git ignore for output directory
2021-01-22 11:05:52 +00:00
Brian Gough
692dbc8d6b
add output directory
2021-01-22 11:05:52 +00:00
Brian Gough
bdbfe70086
rename staticServer to staticCompileServer
2021-01-22 11:05:52 +00:00
Jakob Ackermann
28b1ad3243
[misc] add a new endpoint for querying the deleted status of a doc
...
`/project/:project_id/doc/:doc_id/deleted` responds with:
- 404: the doc does not exist
- 200 and body `{"deleted":true}`: doc exists and is deleted
- 200 and body `{"deleted":false}`: doc exists and is not deleted
2021-01-15 14:49:27 +00:00
Eric Mc Sween
98f8d7f51c
Set the diff-match-patch timeout to 100ms
...
This might result in worse diffs, but we don't want to spend a second
blocking the event loop while we figure out nicer diffs when comparing
documents.
2021-01-14 15:11:15 -05:00
Jakob Ackermann
96b8d001f7
Merge pull request #202 from overleaf/jpa-fix-output-pdf-check
...
[misc] CompileController: exact match for output.pdf
2021-01-13 09:35:31 +00:00
Christopher Hoskin
ad45f295ef
Merge branch 'master' into csh-issue-3895-node-10-23-1
2021-01-07 08:20:37 +00:00
Christopher Hoskin
2ca170d31c
Merge pull request #102 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
build(deps): bump ini from 1.3.5 to 1.3.8
2021-01-06 16:17:56 +00:00
Christopher Hoskin
c3a4cf692b
Merge pull request #34 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
Bump ini from 1.3.5 to 1.3.8
2021-01-06 10:53:48 +00:00
Brian Gough
f534ace5b3
Merge pull request #77 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
Bump ini from 1.3.5 to 1.3.8
2021-01-06 10:49:31 +00:00
Christopher Hoskin
9af14ef513
Merge pull request #153 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
Bump ini from 1.3.5 to 1.3.8
2021-01-06 10:25:17 +00:00
Christopher Hoskin
96399470c3
Merge pull request #56 from overleaf/dependabot-npm_and_yarn-ini-1.3.8
...
build(deps): bump ini from 1.3.5 to 1.3.8
2021-01-06 10:15:33 +00:00
Christopher Hoskin
fa101a44f7
Update Node to 10.23.1
2021-01-06 09:57:08 +00:00
Christopher Hoskin
a506b11245
Update Node to 10.23.1
2021-01-06 09:57:08 +00:00
Christopher Hoskin
b172ce28af
Update Node to 10.23.1
2021-01-06 09:57:08 +00:00
Christopher Hoskin
9cbd8751a8
Update Node to 10.23.1
2021-01-06 09:57:08 +00:00
Christopher Hoskin
e966ed07dc
Update Node to 10.23.1
2021-01-06 09:57:08 +00:00
Brian Gough
88bd86557a
Update Node to 10.23.1
2021-01-06 09:00:35 +00:00
Jakob Ackermann
c9cb5198e1
[misc] bump the node version to 12.20.1
2021-01-05 18:41:32 +00:00
Jakob Ackermann
9eb32e5900
[misc] bump the node version to 10.23.1
2021-01-05 18:38:55 +00:00
Jakob Ackermann
cac18ac4b9
[misc] bump the node version to 10.23.1
2021-01-05 18:32:01 +00:00
Jakob Ackermann
c2f8f26da4
[misc] bump the node version to 10.23.1
2021-01-05 18:26:52 +00:00
Jakob Ackermann
1edc628454
[misc] MongoManager: drop unused, potentially expensive default options
...
All call-sites specify an options object.
2021-01-04 16:07:14 +00:00
Jakob Ackermann
9298f486ad
[app] add a new route for archiving a single doc
...
There is a minor opportunity for optimizing the mongo call(s) for
archiving: we should include `{ inS3: false }` in the queries instead
of filtering locally. It's been like that for years now, so it can
stay a little longer.
2021-01-04 13:47:55 +00:00
Simon Detheridge
8989735c69
pin fake-gcs to 1.21.2 to prevent acceptance-test errors
2021-01-04 13:32:16 +00:00
Jakob Ackermann
bbcc47a2c4
[misc] fix ci -- pin fake-gcs to a compatible version
2021-01-04 11:57:35 +00:00
Jakob Ackermann
fcdc244a11
[misc] add --no-transfer-progress to all the mvn commands
...
Apparently `mvn clean` downloads all the packages when running
`make package`.
2021-01-04 10:31:40 +00:00
Jakob Ackermann
275bb1b330
[misc] hide the download progress of dependencies
2021-01-04 10:31:39 +00:00
Jakob Ackermann
49b764a308
[misc] CompileController: exact match for output.pdf
...
The previous regex could mistake user provided pdf files, like
`fake_output.pdf`, as the final output file.
The frontend expects to find a `output.pdf` file on success.
2020-12-28 13:16:31 +00:00
Brian Gough
e183fffa4b
format fix
2020-12-18 16:15:06 +00:00
Brian Gough
dafe69b5e6
remove unused module var
2020-12-18 16:15:06 +00:00
Brian Gough
36b646bb84
remove comments
2020-12-18 16:15:06 +00:00
Brian Gough
f20a0d1a69
remove unused var
2020-12-18 16:15:03 +00:00
Brian Gough
df1caa14b8
remove unused require
2020-12-18 16:14:36 +00:00
Brian Gough
ca98ee5cff
use a Set instead of an Object
2020-12-18 16:14:09 +00:00
Brian Gough
43b0429c28
clean up relative path checking
2020-12-18 16:14:05 +00:00
Brian Gough
73e09ff99f
remove unnecessary requires
2020-12-18 15:28:06 +00:00
Brian Gough
cee93a0cd9
clean up unnecessary var
2020-12-18 15:28:06 +00:00
Brian Gough
4169f7fc73
use once for callback
2020-12-18 15:28:06 +00:00
Brian Gough
e84d6305f3
remove unnecessary return
2020-12-18 15:16:07 +00:00
Brian Gough
ae064e8997
lint fix
2020-12-18 15:11:29 +00:00
Brian Gough
323890cedb
remove Array.from
2020-12-18 15:10:53 +00:00
Brian Gough
c044db4897
remove guard helper
2020-12-18 15:09:48 +00:00
Brian Gough
0bae53c7f3
remove unnecessary returns
2020-12-18 15:02:40 +00:00
Brian Gough
eaec57cd01
simplify null check
2020-12-18 15:01:25 +00:00
Brian Gough
411d69e36b
remove unnecessary callback code
2020-12-18 14:59:48 +00:00
Brian Gough
11ef3c27ed
use Set instead of object
2020-12-18 14:56:53 +00:00
Brian Gough
64ea22d259
remove unnecessary null checks
2020-12-17 12:05:17 +00:00
Brian Gough
299d7cc5fe
remove unnecessary returns
2020-12-17 12:01:14 +00:00
Brian Gough
5a539b7f90
remove guard function
2020-12-17 11:59:15 +00:00
Brian Gough
4d8e4d54e5
remove Array.from
2020-12-17 11:49:02 +00:00
dependabot[bot]
a25246106e
build(deps): bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:36:01 +00:00
dependabot[bot]
2d69ba69c3
Bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:35:09 +00:00
dependabot[bot]
ab6705481d
Bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:35:06 +00:00
dependabot[bot]
458eab6336
Bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:34:38 +00:00
dependabot[bot]
0d7dc837d6
Bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:33:47 +00:00
dependabot[bot]
dbbb1b0b4c
build(deps): bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:33:42 +00:00
dependabot[bot]
f5594e023f
Bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-12 11:02:53 +00:00
dependabot[bot]
3ea6677de8
Bump ini from 1.3.5 to 1.3.8
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 22:52:34 +00:00
Jakob Ackermann
4644faf212
[misc] integrate git-bridge with overleaf dev-env and prod setup
...
- Add `base` target for dev-env
- Add `node` user for dev-env and prod
- Use `make` all the way
2020-12-10 17:37:09 +00:00
Jakob Ackermann
3e7cf07c8e
Merge branch 'master' into jpa-docker-image
...
# Conflicts:
# README.md
2020-12-10 14:28:03 +00:00
Eric Mc Sween
8a5027255a
Merge pull request #86 from overleaf/em-handle-history-error
...
Handle errors from the history service
2020-12-09 09:05:24 -05:00
Eric Mc Sween
de247302b1
Use a centralized diff-match-patch package
...
We use our own fork of the diff-match-patch npm package, which adds an
optimization for the semantic alignment loop.
2020-12-07 16:15:19 -05:00
Eric Mc Sween
dce5b8759a
Decaf cleanup: capitalize class names
2020-12-07 15:30:02 -05:00
Eric Mc Sween
db4b0a6f38
Decaf cleanup: do not throw strings
2020-12-07 15:28:25 -05:00
Eric Mc Sween
8c70e72bfa
Decaf cleanup: unused variable
2020-12-07 15:27:41 -05:00
Eric Mc Sween
9f17f3ea0a
Decaf cleanup: remove default callback
2020-12-07 15:27:01 -05:00
Eric Mc Sween
b74e7f6feb
Decaf cleanup: unnecessary returns
2020-12-07 15:25:52 -05:00
Eric Mc Sween
a91770e979
Decaf cleanup: remove Array.from()
2020-12-07 15:25:20 -05:00
Eric Mc Sween
8bbeee0f8d
Strip token from blob URLs when using cache
...
Blob URLs coming from web may now contain a token for authentication
with history v1. This token will change every request, which makes the
URL not suitable as a cache key. Removing the token fixes that.
2020-12-04 15:15:10 -05:00
Eric Mc Sween
2430d5fe1d
Handle errors from the history service
...
If the history service returns a non-success status code when we request
a blob, chances are the payload is not the expected blob contents. We
throw an exception in that case, which will abort the git operation.
2020-12-04 11:27:00 -05:00
John Lees-Miller
8fec6723d8
Add correct license
2020-12-03 10:27:38 +00:00
Jakob Ackermann
9d633c5fa7
[misc] install @overleaf/object-persistor from tar-ball
2020-12-02 12:39:01 +00:00
Jakob Ackermann
c55c0d9d25
[misc] install @overleaf/object-persistor from tar-ball
2020-12-02 12:39:01 +00:00
Jakob Ackermann
5d5241156c
[misc] install settings-sharelatex from npm
2020-12-02 12:26:42 +00:00
Brian Gough
1ddcdf38ca
add comment about health checks on '/'
2020-11-27 14:42:42 +00:00
Jakob Ackermann
c3ff0af7e4
Merge pull request #101 from overleaf/jpa-bump-metrics-module
...
[misc] bump metrics module to 3.4.1
2020-11-27 09:02:49 +00:00
Eric Mc Sween
71bb9a5832
Merge pull request #137 from overleaf/em-docker-compose-healthchecks
...
Upgrade build-scripts to 3.4.0
2020-11-26 11:19:25 -05:00
Eric Mc Sween
408db87d77
Merge pull request #150 from overleaf/em-docker-compose-healthchecks
...
Upgrade build-scripts to 3.4.0
2020-11-26 11:05:49 -05:00
Eric Mc Sween
fe39cf053d
Merge pull request #79 from overleaf/em-docker-compose-healthchecks
...
Upgrade build-scripts to 3.4.0
2020-11-26 10:54:40 -05:00
Jakob Ackermann
8a5858f430
Merge pull request #200 from overleaf/jpa-bump-metrics-module
...
[misc] bump metrics module to 3.4.1
2020-11-26 13:13:50 +00:00
Jakob Ackermann
2afd1fd375
Merge pull request #76 from overleaf/jpa-bump-metrics-module
...
[misc] bump metrics module to 3.4.1
2020-11-26 09:55:55 +00:00
dependabot[bot]
14466f7d85
Bump dot-prop from 4.2.0 to 4.2.1
...
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases )
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 18:49:09 +00:00
Jakob Ackermann
ec6e8c6ff4
Merge pull request #33 from overleaf/jpa-bump-metrics-module
...
[misc] bump metrics module to 3.4.1
2020-11-25 17:30:07 +00:00
Jakob Ackermann
8a93c6fea0
Merge pull request #64 from overleaf/jpa-bump-metrics-module
...
[misc] bump metrics module to 3.4.1
2020-11-25 17:20:21 +00:00
Jakob Ackermann
8a55cc545a
Merge pull request #55 from overleaf/jpa-bump-metrics-module
...
[misc] bump metrics module to 3.4.1
2020-11-25 16:39:53 +00:00
Jakob Ackermann
1b73c6dad2
[misc] work around missing stubs
2020-11-25 13:33:54 +00:00
Jakob Ackermann
7b7cd8cc8c
[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:25 +00:00
Jakob Ackermann
9afdb32689
[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
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
Jakob Ackermann
010fa596e9
[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
Jakob Ackermann
95f3bcef21
[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:23 +00:00
Jakob Ackermann
1e4bc43e08
[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:23 +00:00
Jakob Ackermann
746c5aeb80
[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:22 +00:00
Jakob Ackermann
8ef3aa1767
[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
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
5e00684dbb
[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:19 +00:00
Eric Mc Sween
d83e1e88c6
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:29 -05:00
Eric Mc Sween
ed1e192d2e
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:29 -05:00
Eric Mc Sween
f472594819
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:29 -05:00
Eric Mc Sween
96126ecf34
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:29 -05:00
Eric Mc Sween
448de40f89
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:29 -05:00
Eric Mc Sween
093fe78c3a
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:29 -05:00
Eric Mc Sween
76d0865c21
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:29 -05: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
Eric Mc Sween
16f562d826
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
Eric Mc Sween
c7fa34a6a8
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
Jakob Ackermann
15af5c7977
[misc] bump @overleaf/redis-wrapper to version 2.0.0
2020-11-11 16:24:22 +00:00
Jakob Ackermann
dea6968fa9
[misc] explicitly install underscore
...
Use the same (outdated) version that is already in place.
2020-11-11 16:23:12 +00:00
Jakob Ackermann
68a1b4d459
[misc] bump @overleaf/redis-wrapper to version 2.0.0
2020-11-11 16:21:11 +00:00
Jakob Ackermann
08ed5f6c9b
[misc] bump @overleaf/redis-wrapper to version 2.0.0
2020-11-11 16:20:32 +00:00
Shane Kilkelly
fcc52cb1a0
No more blank line
2020-10-27 16:17:22 +00:00
Shane Kilkelly
aaa0681c39
In example request, show example using curl
...
This clarifies the exact way to construct this request. It seems that
some users have taken the existing documentation to mean that the
request should be sent from the browser, to the web server. This example
clarifies how to send this compile request directly to the clsi server.
2020-10-27 15:53:10 +00:00
Shane Kilkelly
f89fab5abb
Upgrade to JGit 5.9.0
2020-10-20 10:23:06 +01:00
Jakob Ackermann
222caeb9a8
Merge pull request #196 from overleaf/jpa-drop-duplicate-join
...
[RoomManager] drop duplicate joining of entities
2020-10-19 17:01:40 +02:00
Jakob Ackermann
d6ac8c14e7
[RoomManager] drop duplicate joining of entities
...
REF: 0437e1d03f89a058f97a8884e3532a9a58b68b9d
REF: 62be5e29e5232150e7063bc189c5ad8a1189f972
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
2020-10-19 15:54:37 +01:00
Jakob Ackermann
b20cdc0122
[misc] bump the dev-env to 3.3.5 -- drop custom unit test timeout
2020-10-19 15:20:57 +01:00
Brian Gough
0c7d8ae5ae
downgrade to logger 1.9.1
...
investigating possible regression in 2.2.0
2020-10-16 14:27:36 +01:00
Simon Detheridge
7925f217b4
Upgrade object-persistor to latest version
2020-10-13 10:08:05 +01:00
Jakob Ackermann
82c0f8f0b4
[config] add Overleaf and overleaf to the list of ignored misspellings
2020-10-08 14:12:55 +01:00
Jakob Ackermann
e8911babe0
Merge pull request #182 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
...
Bump lodash from 4.17.15 to 4.17.20
2020-10-08 10:42:21 +02:00
Jakob Ackermann
e9c23b6409
Merge pull request #191 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-10-08 10:42:08 +02:00
Jakob Ackermann
5b53832bf2
Merge pull request #192 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-10-08 10:41:56 +02:00
Jakob Ackermann
033af5091f
[SpellingAPIManager] get the list of ignored misspellings from settings
...
The settings will allow overrides via the environment variable
`IGNORED_MISSPELLINGS`.
2020-10-08 09:36:47 +01:00
Jakob Ackermann
e846192db0
[MatrixTests] add a large testing matrix
...
Layers/Dimensions:
- users: anonymous, registered, registeredWithOwnedProject
- session setup: noop, joinReadWriteProject, joinReadWriteProjectAndDoc,
joinOwnProject, joinOwnProjectAndDoc
- invalid requests: noop, joinProjectWithDocId, joinDocWithDocId,
joinProjectWithProjectId, joinDocWithProjectId,
joinProjectWithProjectIdThenJoinDocWithDocId
2020-10-07 16:20:21 +01:00
Jakob Ackermann
4ec73acb88
Merge branches 'jpa-prepare-for-matrix-tests' and 'jpa-setup-session-helper' into jpa-matrix-tests
2020-10-01 12:57:40 +01:00
Jakob Ackermann
2900c60c4a
[FixturesManager] add a helper for setting up project and doc together
2020-10-01 12:33:15 +01:00
Jakob Ackermann
78fbd04ef8
[MockWebServer] grant users at least the privileges of anonymous users
2020-10-01 12:28:39 +01:00
Jakob Ackermann
4f860995d8
[MockDocUpdaterServer] return a 404 when a requested doc does not exist
2020-10-01 12:25:41 +01:00
Jakob Ackermann
c749d2043e
Merge pull request #145 from overleaf/dependabot-npm_and_yarn-bl-2.2.1
...
Bump bl from 2.2.0 to 2.2.1
2020-09-30 10:16:27 +02:00
Jakob Ackermann
3b7b14ccea
Merge pull request #143 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
...
Bump lodash from 4.17.15 to 4.17.20
2020-09-30 10:14:59 +02:00
Jakob Ackermann
89801b592f
Merge pull request #146 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-30 10:12:31 +02:00
Jakob Ackermann
dee4f6f0d1
Merge pull request #147 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-30 10:12:17 +02:00
dependabot[bot]
033cc28e7f
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-30 08:11:14 +00:00
dependabot[bot]
ffc55a0502
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-30 08:10:39 +00:00
Shane Kilkelly
de23035e80
Add test for pulling ignored file
2020-09-29 13:00:36 +01:00
Shane Kilkelly
c6cfd51fb4
Use the NoGitignoreIterator recursively
2020-09-29 12:44:33 +01:00
Jakob Ackermann
2c8916f2e0
[PackWorker] fix the db cleanup process -- we do not expose db.close
2020-09-29 12:23:18 +01:00
Jakob Ackermann
41a65ee41e
[PackWorker] wait for the db setup before starting to process updates
2020-09-29 12:22:22 +01:00
Jakob Ackermann
31ad29e8c4
Merge pull request #95 from overleaf/dependabot-npm_and_yarn-yargs-parser-13.1.2
...
Bump yargs-parser from 13.1.1 to 13.1.2
2020-09-29 12:01:09 +02:00
Jakob Ackermann
c6119c5bcb
Merge pull request #92 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
...
Bump lodash from 4.17.15 to 4.17.20
2020-09-29 12:00:43 +02:00
Jakob Ackermann
d06d2cdc36
Merge pull request #96 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-29 11:56:55 +02:00
dependabot[bot]
724e616df9
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-29 09:56:48 +00:00
dependabot[bot]
7603e328cd
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-29 09:56:07 +00:00
Jakob Ackermann
5ffbac59e8
Merge pull request #97 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-29 11:55:44 +02:00
Simon Detheridge
31c757cce2
Don't throw 404 errors when unarchiving, if the doc is already unarchived
2020-09-25 09:17:01 +01:00
Shane Kilkelly
03af20113f
Force add the test file, sigh.
2020-09-24 13:29:39 +01:00
Shane Kilkelly
935770e2ab
Add test for reset before pull
2020-09-24 11:24:47 +01:00
Shane Kilkelly
d07ecd2a1b
During pull: reset repo before writing data
2020-09-23 11:38:22 +01:00
Jakob Ackermann
cc681a94f4
[app] ignore error from writing to disconnected long-polling client
2020-09-22 14:10:23 +01:00
dependabot[bot]
0b0c9093df
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:53:40 +00:00
Simon Detheridge
56c7588130
Merge pull request #73 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:53:22 +01:00
Simon Detheridge
c5ad2a666e
Merge pull request #72 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
...
Bump lodash from 4.17.15 to 4.17.20
2020-09-18 09:52:53 +01:00
Simon Detheridge
7565e45ec5
Merge pull request #71 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:52:43 +01:00
Simon Detheridge
728736e080
Merge pull request #28 from overleaf/dependabot-npm_and_yarn-yargs-parser-13.1.2
...
Bump yargs-parser from 13.1.1 to 13.1.2
2020-09-18 09:40:57 +01:00
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
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
f79aba7bb1
Merge pull request #52 from overleaf/dependabot-npm_and_yarn-yargs-parser-13.1.2
...
Bump yargs-parser from 13.1.1 to 13.1.2
2020-09-17 17:35:27 +02:00
Jakob Ackermann
3577849957
Merge pull request #50 from overleaf/dependabot-npm_and_yarn-bl-2.2.1
...
Bump bl from 2.2.0 to 2.2.1
2020-09-17 17:34:18 +02:00
dependabot[bot]
ec2d724d52
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-17 15:30:01 +00:00
dependabot[bot]
ef86aa5344
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-17 15:29:50 +00:00
Jakob Ackermann
5d2c658baf
Merge pull request #51 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-17 17:29:30 +02:00
Jakob Ackermann
e8a0041b63
Merge pull request #41 from overleaf/dependabot-npm_and_yarn-lodash-4.17.19
...
[Security] Bump lodash from 4.17.15 to 4.17.19
2020-09-17 17:29:00 +02:00
Jakob Ackermann
9e87bc010d
Merge pull request #53 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-17 17:28:31 +02:00
Jakob Ackermann
f052625396
[misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1
2020-09-17 15:43:32 +01:00
Simon Detheridge
0386b871ee
Merge pull request #67 from overleaf/jpa-mongodb-shared-db
...
[misc] simplify mongodb collection access using a shared db construct
2020-09-17 15:42:02 +01:00
Simon Detheridge
867a145843
Merge pull request #74 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-17 15:41:45 +01:00
Jakob Ackermann
3644db6848
[misc] mongodb: use the new db connector by default
...
mongojs was enabling it by default as well.
2020-09-17 15:40:23 +01:00
Jakob Ackermann
b37e27f023
[misc] run the codemod for moving mongo projections into options
2020-09-17 15:40:20 +01:00
Jakob Ackermann
225f1538bf
[misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1
2020-09-17 15:40:14 +01:00
Jakob Ackermann
54a82b8c62
[misc] mongodb: export a helper for adding new collections to db
...
Co-Authored-By: Eric Mc Sween <eric.mcsween@overleaf.com>
Co-Authored-By: Simon Detheridge <s@sd.ai>
2020-09-17 15:39:46 +01:00
Jakob Ackermann
1e7fa2246d
[misc] mongodb: refactor the process of setting up the db construct
...
Co-Authored-By: John Lees-Miller <jdleesmiller@gmail.com>
2020-09-17 15:39:46 +01:00
Jakob Ackermann
8a8a830ad3
[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.
2020-09-17 15:39:44 +01:00
Simon Detheridge
f90d12ed21
Merge pull request #77 from overleaf/spd-node-upgrade
...
Upgrade node to 10.22.1
2020-09-17 15:37:59 +01:00
dependabot[bot]
7dd2d95b16
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-17 14:37:55 +00:00
Simon Detheridge
360830d3cd
Merge pull request #76 from overleaf/spd-remove-old-scripts
...
Remove rearchive script
2020-09-17 15:37:48 +01:00
Simon Detheridge
9ec93ca0d6
Merge pull request #75 from overleaf/spd-p-map
...
Replace tiny-async-pool with p-map
2020-09-17 15:37:37 +01:00
Simon Detheridge
1b73733625
Merge pull request #73 from overleaf/spd-metrics-upgrade
...
Upgrade metrics to @overleaf/metrics'
2020-09-17 15:37:08 +01:00
Simon Detheridge
2ce0ea7e72
Merge pull request #68 from overleaf/dependabot-npm_and_yarn-bl-2.2.1
...
Bump bl from 2.2.0 to 2.2.1
2020-09-17 15:36:15 +01:00
Jakob Ackermann
f3c7619fb5
[misc] revert back to high timeout for unit tests
2020-09-17 15:34:03 +01:00
Jakob Ackermann
ba3b4f7dcd
[misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1
2020-09-17 15:26:45 +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
Simon Detheridge
465bf473d9
Upgrade node to 10.22.1
2020-09-17 14:30:25 +01:00
Jakob Ackermann
ccdf555ecb
[misc] bump the dev-env to 3.3.4 and bump the node version to 10.22.1
2020-09-17 13:36:27 +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
Jakob Ackermann
4207cc1110
[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
Simon Detheridge
ba0958496b
Merge pull request #132 from overleaf/dependabot-npm_and_yarn-bl-2.2.1
...
Bump bl from 2.2.0 to 2.2.1
2020-09-17 12:00:06 +01:00
Simon Detheridge
05efc5dbf9
Merge pull request #133 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-17 11:59:56 +01:00
Simon Detheridge
f6e0c3ea88
Merge pull request #134 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
...
Bump lodash from 4.17.15 to 4.17.20
2020-09-17 11:59:45 +01:00
Simon Detheridge
473a044209
Upgrade node to 12.18.4
2020-09-17 11:41:42 +01:00
Eric Mc Sween
20a0f3bcd1
Merge pull request #193 from overleaf/dependabot-npm_and_yarn-node-fetch-2.6.1
...
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-16 12:48:21 -04:00
Eric Mc Sween
40f38b09f0
Merge pull request #191 from overleaf/dependabot-npm_and_yarn-bl-4.0.3
...
Bump bl from 4.0.1 to 4.0.3
2020-09-16 12:48:15 -04:00
Eric Mc Sween
6c73eb5e34
Merge pull request #190 from overleaf/dependabot-npm_and_yarn-lodash-4.17.20
...
Bump lodash from 4.17.15 to 4.17.20
2020-09-16 12:48:07 -04:00
Eric Mc Sween
5b11dc5a77
Bump Node version to 10.22.1
2020-09-16 12:24:42 -04:00
dependabot[bot]
13843655a4
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-16 10:43:16 +00:00
dependabot[bot]
ee06705377
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-16 10:38:21 +00:00
dependabot[bot]
02c4d9304a
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-16 10:23:11 +00:00
Simon Detheridge
5d76859622
Remove rearchive script
2020-09-14 16:41:40 +01:00
Simon Detheridge
90a6642b33
Replace tiny-async-pool with p-map
2020-09-14 16:34:34 +01:00
Simon Detheridge
96b85da43e
Update package hashes
2020-09-14 16:13:18 +01:00
dependabot[bot]
f85e2dec5c
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 17:04:49 +00:00
dependabot[bot]
d6d482cde5
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 15:09:13 +00:00
dependabot[bot]
10c6e01bd8
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 15:08:05 +00:00
dependabot[bot]
a292bd7b1c
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 15:08:04 +00:00
dependabot[bot]
e47c3b747b
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 15:08:02 +00:00
dependabot[bot]
4086d38a09
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 15:07:58 +00:00
dependabot[bot]
20f5e5820d
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:17:53 +00: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
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
Simon Detheridge
ad4531ff01
Upgrade metrics to @overleaf/metrics'
2020-09-10 18:07:14 +01:00
Jakob Ackermann
9dddf59a9d
[misc] migrate acceptance tests to the native mongo driver, drop mongojs
2020-09-10 17:39:16 +01:00
Jakob Ackermann
c630cbb4e3
[misc] migrate the app to the native mongo driver
...
acceptance tests to follow in a separate commit.
2020-09-10 17:39:12 +01:00
Jakob Ackermann
3a4aa45e2e
Merge branches 'jpa-bump-bson', 'jpa-mongo-find-query-cleanup', 'jpa-mongo-js-cleanup' and 'jpa-mongo-update-query-cleanup' into jpa-mongodb-native
2020-09-10 16:41:45 +01:00
Jakob Ackermann
c42561c38a
[misc] update the bson package
2020-09-10 16:40:56 +01:00
Jakob Ackermann
6d3fa2ee5b
[misc] mongodb: use findOne and find().toArray()
2020-09-10 14:54:18 +01:00
Jakob Ackermann
b86acf3ea1
[misc] mongodb: change findAndModify queries to updateOne
...
There is no need to fetch mongo data when the call-site does not look at
it. Also handle mongo errors in `setTTLOnArchivedPack`.
2020-09-10 14:18:14 +01:00
Jakob Ackermann
e74af0bee6
[misc] PackWorker: drop workaround for db.close in mongojs@1
...
REF: 3ed3932ee837920e95661b0308dee012f40a71dd
2020-09-10 11:10:59 +01:00
Jakob Ackermann
baaf376128
[misc] mongodb: use the new db connector by default
...
mongojs was enabling it by default as well.
2020-09-10 10:57:29 +01: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
16ef0d9610
[misc] mongodb: use the new db connector by default
...
mongojs was enabling it by default as well.
2020-09-10 10:40:05 +01:00
Jakob Ackermann
97480c259d
[misc] mongodb: use the new db connector by default
...
mongojs was enabling it by default as well.
2020-09-10 10:31:48 +01: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
cb4a7516ac
[misc] migrate the app to the native mongo driver, drop mongojs
2020-09-07 12:21:48 +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
Jakob Ackermann
c337cf1c4f
[misc] mongodb: refactor the process of setting up the db construct
...
Co-Authored-By: John Lees-Miller <jdleesmiller@gmail.com>
2020-09-07 09:49:06 +01:00
Jakob Ackermann
882db8484c
[misc] migrate to the native mongo driver
2020-09-07 09:32:39 +01:00
Eric Mc Sween
14e1e02a68
Test anonymous volumes are removed with containers
2020-09-04 11:34:08 -04:00
Simon Detheridge
1988d0afb5
Update scripts/rearchive-all-docs.js
...
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-09-04 14:50:50 +01:00
Simon Detheridge
0911011624
Add 'endId' parameter to rearchive script
2020-09-04 14:14:20 +01:00
Eric Mc Sween
1c13f6fe94
Mount /home/tex in an anonymous volume
...
When we mount the container's root filesystem as read-only, mount
an anonymous volume in /home/tex so that it's writable. Our TeX Live
images have cached content in /home/tex. This content will automatically
get copied by Docker into this anonymous volume.
2020-09-04 08:49:56 -04:00
Eric Mc Sween
67f4a6eeeb
Decaf cleanup: normalize functions
...
Use function keyword for declarations and arrow functions for callbacks.
2020-09-03 15:58:16 -04:00
Eric Mc Sween
5cd889038e
Use _.once() instead of ad hoc implementation
2020-09-03 15:52:09 -04:00
Eric Mc Sween
a853950a99
Fix container monitor cleanup function
...
The intent here is clearly to clear both the timeout and the interval.
2020-09-03 15:50:45 -04:00
Eric Mc Sween
30a44edded
Decaf cleanup: simplify variable declarations
2020-09-03 15:50:12 -04:00
Eric Mc Sween
a282bccd48
Do not instantiate errors at module load time
...
This prevents the right stack trace from being captured.
2020-09-03 15:34:19 -04:00
Eric Mc Sween
4905e7db2c
Decaf cleanup: unused vars
2020-09-03 15:30:07 -04:00
dependabot[bot]
96f909deaa
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-03 19:15:41 +00:00
Eric Mc Sween
44bf38d6db
Decaf cleanup: convert async function to sync
...
The examineOldContainer() function doesn't need to use callbacks since
it only does synchronous work.
2020-09-03 15:13:04 -04:00
Eric Mc Sween
2584586ba2
Decaf cleanup: camel-case variables
2020-09-03 15:13:04 -04:00
Eric Mc Sween
c52d7d8f02
Decaf cleanup: simplify null checks
2020-09-03 15:13:04 -04:00
Eric Mc Sween
ee4c08868c
Decaf cleanup: remove default callbacks
2020-09-03 15:13:04 -04:00
Eric Mc Sween
32f0bbe266
Decaf cleanup: remove IIFEs
2020-09-03 15:13:04 -04:00
dependabot[bot]
cc3ccc2713
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-03 19:03:30 +00:00
Eric Mc Sween
f650da8675
Decaf cleanup: remove __guard__
2020-09-02 17:06:35 -04:00
Eric Mc Sween
99648341e2
Decaf cleanup: remove unnecessary returns
2020-09-02 16:58:41 -04:00
Eric Mc Sween
08be54a43e
Decaf cleanup: remove unnecessary Array.from()
2020-09-02 16:45:49 -04:00
dependabot[bot]
6b93bbfe09
Bump bl from 4.0.1 to 4.0.3
...
Bumps [bl](https://github.com/rvagg/bl ) from 4.0.1 to 4.0.3.
- [Release notes](https://github.com/rvagg/bl/releases )
- [Commits](https://github.com/rvagg/bl/compare/v4.0.1...v4.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-02 16:50:44 +00:00
Jakob Ackermann
a2f5bf463e
Merge pull request #190 from overleaf/jpa-socket-io-logger
...
[misc] socket.io: use a custom logger
2020-09-02 10:46:23 +02:00
Jakob Ackermann
c6f2a3b387
Merge pull request #189 from overleaf/jpa-relevel-log
...
[misc] re-level expected error log messages
2020-09-02 10:46:08 +02:00
Shane Kilkelly
bb7831012b
When logging IOException for put, include error
2020-09-01 13:28:35 +01:00
Jakob Ackermann
72282a07df
[misc] socket.io: use a custom logger
...
- forward the previously enabled log messages to our logger-module
- stub the previously disabled logger methods
- drop the log-level config for socket.io
2020-09-01 09:30:11 +01:00
Jakob Ackermann
1d57706d44
[misc] migrate acceptance tests to the native mongo driver, drop mongojs
2020-08-28 17:06:25 +01:00
Jakob Ackermann
f80a92ce46
[misc] migrate the app to the native mongo driver
...
acceptance tests to follow in a separate commit
2020-08-28 15:12:30 +01:00
Jakob Ackermann
4960bdd6fe
[misc] re-level log: 404 from web -> WARN and emit 'project not found'
...
A stale browser tab tried to join a deleted project.
Emitting 'project not found'/'ProjectNotFound' will trigger a page
reload in the frontend, upon web can render a 404.
See frontend: ConnectionManager.joinProject callback
2020-08-27 11:51:57 +01:00
Jakob Ackermann
55d938ba14
[misc] add tests for web replying with a 404 for joinProject
2020-08-27 11:51:56 +01:00
Jakob Ackermann
884b340c75
[misc] re-level log: 403 from web goes to WARN and emit 'not authorized'
...
Users will get redirected to the login page and will see a 'restricted'
page after logging in again.
See frontend: ConnectionManager.reportConnectionError
2020-08-27 11:51:56 +01:00
Jakob Ackermann
d2a2b9d46e
[misc] add tests for web replying with a 403 for joinProject
2020-08-27 11:51:56 +01:00
Jakob Ackermann
1ff9c1e71b
[misc] add the rpc-method into the log context in Router._handleError
2020-08-27 11:51:55 +01:00
Jakob Ackermann
0647abf433
[misc] drop info-log in WebApiManager for joinProject being rate-limited
...
The CodedError is logged at warn-level in Router._handleError.
2020-08-27 11:51:09 +01:00
Jakob Ackermann
2ce7b36c95
[misc] drop duplicate log line for unauthorized applyOtUpdate calls
...
The violation is logged in Router._handleError.
2020-08-27 10:22:31 +01:00
Jakob Ackermann
dee4749e6d
[misc] re-level log: properly silence unauthorized updateClientPosition
2020-08-27 10:11:40 +01:00
Simon Detheridge
f9862081b7
Add script to migrate data from S3
2020-08-26 11:46:40 +01:00
Jakob Ackermann
425052ff91
Merge pull request #187 from overleaf/jpa-o-error-tagging
...
[misc] migrate to OError tagging/wrapping
2020-08-25 11:46:28 +02:00
Jakob Ackermann
64e659bf43
Merge pull request #186 from overleaf/jpa-fix-join-project-error-context
...
[misc] fix join project error context
2020-08-25 11:46:18 +02:00
Jakob Ackermann
849a1cf416
Merge pull request #185 from overleaf/jpa-doc-id-in-error-context
...
[misc] add/bring back doc_id in error context
2020-08-25 11:42:41 +02:00
Jakob Ackermann
2fa09928ee
[misc] migrate acceptance tests to the native mongo driver, drop mongojs
2020-08-25 09:41:23 +01:00
Jakob Ackermann
df0747ec48
[misc] migrate the app to the native mongo driver
...
acceptance tests to follow in a separate commit
2020-08-25 09:40:59 +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
Jakob Ackermann
ee3d3b09ed
[misc] wrap redis errors as tagging does not work with them
...
ioredis may reuse the error instance for multiple callbacks. E.g. when
the connection to redis fails, the queue is flushed with the same
MaxRetriesPerRequestError instance.
2020-08-24 10:12:20 +01:00
Jakob Ackermann
537e97be73
[misc] OError.tag all the errors in async contexts
...
See the docs of OError.tag:
https://github.com/overleaf/o-error#long-stack-traces-with-oerrortag
(currently at 221dd902e7bfa0ee92de1ea5a3cbf3152c3ceeb4)
I am tagging all errors at each async hop. Most of the controller code
will only ever see already tagged errors -- or new errors created in
our app code. They should have enough info that we do not need to tag
them again.
2020-08-24 10:12:06 +01:00
Jakob Ackermann
8e31cc5c23
[Router] _handleError: joinProject error-context may not have project_id
...
The ol_context patch changed the priority of client context and rpc
context.
This lead to the (possibly missing) project_id of the client context
overwriting the project_id of the rpc context.
REF: f1d55c0a5437a518e9f4617473caed9ba928e648
2020-08-21 13:29:28 +01:00
Jakob Ackermann
f935b1881a
[Router] leaveDoc: pass the doc_id into the error-context
2020-08-21 12:47:42 +01:00
Jakob Ackermann
fd88819eec
[Router] _handleError: ol_context.doc_id does not exist, drop overwrite
2020-08-21 12:47:42 +01:00
Jakob Ackermann
880056d397
[Router] use a new UnexpectedArgumentsError
2020-08-21 12:47:08 +01:00
Jakob Ackermann
50140f785a
[WebsocketController] use a new JoinLeaveEpochMismatchError
2020-08-21 12:47:08 +01:00
Jakob Ackermann
0462e3e437
[WebsocketController] use a new NotJoinedError
2020-08-21 12:47:07 +01:00
Jakob Ackermann
4cb8cc4a85
[DocumentUpdaterManager] use a new ClientRequestedMissingOpsError
2020-08-21 12:47:07 +01:00
Jakob Ackermann
8abfdb87ff
[DocumentUpdaterManager] use a new DocumentUpdaterRequestFailedError
2020-08-21 12:47:07 +01:00
Jakob Ackermann
02a2382264
[WebApiManager] use a new CorruptedJoinProjectResponseError
2020-08-21 12:47:07 +01:00
Jakob Ackermann
68bc9d0d23
[WebApiManager] use a new WebApiRequestFailedError
2020-08-21 12:47:06 +01:00
Jakob Ackermann
59c4c884a5
[WebsocketController] use the new NotAuthorizedError
2020-08-21 12:47:06 +01:00
Jakob Ackermann
a8c51de510
[AuthorizationManager] use a new NotAuthorizedError
2020-08-21 12:47:06 +01:00
Jakob Ackermann
de518ea4eb
[SessionSockets] use a new MissingSessionError
2020-08-21 12:47:05 +01:00
Jakob Ackermann
6828becb46
[DocumentUpdaterManager] use a new NullBytesInOpError
2020-08-21 12:47:05 +01:00
Jakob Ackermann
af50f9b02c
[DocumentUpdaterManager] use a new UpdateTooLargeError
2020-08-21 12:47:05 +01:00
Jakob Ackermann
5950b26a42
[SafeJsonParse] migrate to OError and use a new DataTooLargeToParseError
2020-08-21 12:47:05 +01:00
Jakob Ackermann
f82177a46a
[Errors] migrate to OError
2020-08-21 12:47:04 +01:00
Jakob Ackermann
c7b9dadd16
[misc] increase the timeout for unit tests -- CI boxes are too slow
2020-08-21 12:45:30 +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
Jakob Ackermann
7ce76775ea
Merge pull request #181 from overleaf/jpa-forcefully-disconnect-from-shutdown-process
...
[misc] forcefully disconnect from shutdown process
2020-08-17 12:56:18 +02:00
Jakob Ackermann
1ffffbcbc2
Merge pull request #180 from overleaf/jpa-harden-cleanup-take2
...
[misc] bump socket.io and socket.io-client
2020-08-17 12:56:04 +02:00
Jakob Ackermann
67d9543cf3
Merge pull request #179 from overleaf/csh-issue-1123-bump-logger-220
...
[misc] bump logger-sharelatex to version 2.2.0
2020-08-17 12:55:40 +02:00
Jakob Ackermann
3505fae253
Merge pull request #178 from overleaf/jpa-ignore-broken-socket-errors
...
[app] ignore errors from accessing disconnected client sockets
2020-08-17 12:55:29 +02:00
Jakob Ackermann
1550e9f885
Merge pull request #176 from overleaf/jpa-bump-dev-env-3-3-2
...
[misc] bump the dev-env to 3.3.2
2020-08-17 12:55:13 +02:00
Jakob Ackermann
83b8b077fa
[misc] bump socket.io and socket.io-client
2020-08-14 11:16:26 +01:00
dependabot[bot]
7caf7f4201
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-14 05:11:31 +00:00
Jakob Ackermann
1480308b9f
[misc] bump logger-sharelatex to version 2.2.0
2020-08-13 16:52:17 +01:00
Jakob Ackermann
8aeacb6645
[misc] properly install chai and sandboxed-module
2020-08-13 16:49:40 +01:00
Jakob Ackermann
ea75b84eef
[misc] let the orchestrator handle the process restart
...
Note that there is also the `shutdownCleanly` interval which may notice
that the shutdown has completed. There is some network IO required to
signal all clients the server disconnect, so we cannot run process.exit
immediately.
2020-08-13 13:39:25 +01:00
Jakob Ackermann
ee59056c6e
[misc] forcefully disconnect stale clients from shutdown process
2020-08-13 13:39:22 +01:00
dependabot-preview[bot]
2d5506fc0f
[Security] Bump lodash from 4.17.15 to 4.17.19
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19. **This update includes a security fix.**
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-13 11:44:11 +00:00
Christopher Hoskin
f517d31e15
[misc] bump logger-sharelatex to version 2.2.0
2020-08-13 09:07:30 +01:00
Christopher Hoskin
6968d5d17b
[misc] bump logger-sharelatex to version 2.2.0
2020-08-13 09:02:46 +01:00
Christopher Hoskin
a3430cfdae
[misc] bump logger-sharelatex to version 2.2.0
2020-08-13 08:57:47 +01:00
Christopher Hoskin
cbf385b0ef
[misc] bump logger-sharelatex to version 2.2.0
2020-08-13 08:51:37 +01:00
Christopher Hoskin
f39e31c6fd
[misc] bump logger-sharelatex to version 2.2.0
2020-08-12 16:16:42 +01:00
Christopher Hoskin
fe41f1b00c
[misc] bump logger-sharelatex to version 2.2.0
2020-08-12 16:04:21 +01:00
Christopher Hoskin
16c9ab38b2
Fix formating
2020-08-12 15:29:19 +01:00
Christopher Hoskin
2be47a6820
Add missing eslint-plugin-chai-friendly@^0.5.0
2020-08-12 15:24:43 +01:00
Christopher Hoskin
d1da5e43af
[misc] bump logger-sharelatex to version 2.2.0
2020-08-12 15:17:06 +01:00
Christopher Hoskin
b1b2a1c134
[misc] bump logger-sharelatex to version 2.2.0
2020-08-12 15:11:21 +01:00
Christopher Hoskin
0b1f61cb02
[misc] bump logger-sharelatex to version 2.2.0
2020-08-12 12:48:05 +01:00