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
Jakob Ackermann
bbcc47a2c4
[misc] fix ci -- pin fake-gcs to a compatible version
2021-01-04 11:57:35 +00:00
Jakob Ackermann
9d633c5fa7
[misc] install @overleaf/object-persistor from tar-ball
2020-12-02 12:39:01 +00: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
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
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
Simon Detheridge
31c757cce2
Don't throw 404 errors when unarchiving, if the doc is already unarchived
2020-09-25 09:17:01 +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
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
Simon Detheridge
465bf473d9
Upgrade node to 10.22.1
2020-09-17 14:30:25 +01: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
Simon Detheridge
ad4531ff01
Upgrade metrics to @overleaf/metrics'
2020-09-10 18:07:14 +01: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
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
Simon Detheridge
f9862081b7
Add script to migrate data from S3
2020-08-26 11:46:40 +01: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
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
Simon Detheridge
d5214d4351
Update object-persistor module
2020-08-10 16:53:18 +01:00
Simon Detheridge
1575cd41eb
Don't pass empty array to asyncPool when archiving
2020-08-10 15:44:41 +01:00
Simon Detheridge
e4d7c253c0
Fallback to AWS_BUCKET env var in settings for backwards compatiblity
2020-08-10 11:55:39 +01:00
Simon Detheridge
a18146612a
Remove unhandled-promise-rejection handler
2020-07-31 16:25:33 +01:00
Simon Detheridge
a4d0813acb
Update build scripts
2020-07-31 16:24:41 +01:00
Simon Detheridge
cb8c2bf4b5
AsyncPool -> asyncPool
2020-07-31 16:21:59 +01:00
Simon Detheridge
9724407e31
Export .promises from MongoManager
2020-07-31 16:20:07 +01:00
Simon Detheridge
268f436461
Don't call AsyncPool with an empty array
2020-07-24 11:51:18 +01:00
Simon Detheridge
fdefb311ab
Fix sha1 package hashes
2020-07-24 11:50:53 +01:00
Simon Detheridge
04ae868fe2
Update unit tests for object-persistor
2020-07-23 19:43:51 +01:00
Simon Detheridge
e302c1d844
Update acceptance tests for object-persistor and gcs
2020-07-23 19:43:33 +01:00
Simon Detheridge
6e04db552a
Implement object-persistor support
2020-07-23 19:42:49 +01:00
Simon Detheridge
812c996c47
Add required settings for object-persistor
2020-07-23 19:42:20 +01:00
Simon Detheridge
287d705671
Update buildscripts to use fake-gcs instead of S3 credentials
2020-07-23 19:30:13 +01:00
Simon Detheridge
99a3266105
Add object-persistor module and upgrade deps to latest minor release
2020-07-23 19:29:25 +01:00
Christopher Hoskin
4cfeccf593
Revert "Revert "Move acceptance test cred config to docker-compose-config.yml""
...
This reverts commit 703447d33883b45d119ddccee1df4b9ad098b0c2.
2020-07-21 10:03:34 +01:00