Jakob Ackermann
d95f7062c5
Merge pull request #60 from overleaf/jpa-mongo-unified-topology
...
[misc] mongodb: use the new db connector by default
2020-09-10 11:18:00 +02:00
Jakob Ackermann
06917a27c4
Merge pull request #57 from overleaf/jpa-module-local-db-object
...
[misc] simplify the mongodb collection access using a shared db construct
2020-09-10 11:17:25 +02: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
84406fd947
Merge pull request #59 from overleaf/bg-use-overleaf-metrics
...
upgrade from metrics-sharelatex to @overleaf/metrics
2020-09-10 09:32:51 +01:00
Brian Gough
e08865646f
upgrade from metrics-sharelatex to @overleaf/metrics
2020-09-09 10:37:56 +01:00
Jakob Ackermann
7c093ba115
Merge pull request #3167 from overleaf/jpa-properly-install-mkdirp
...
[misc] properly install the mkdirp package
GitOrigin-RevId: c9f8621355adee66d8f75391210f97520c55c974
2020-09-08 02:04:17 +00: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
Simon Detheridge
6f46034b62
Merge pull request #3162 from overleaf/spd-upgrade-users-async-limit
...
Make ASYNC_LIMIT configurable when upgrading institution users
GitOrigin-RevId: 566dd7d1e742c196847196c98449becea264719e
2020-09-05 02:05:32 +00:00
Simon Detheridge
69d4a83bd4
Merge pull request #3161 from overleaf/jpa-dependabot-config
...
[misc] add the dependabot config of the buildscripts
GitOrigin-RevId: 0404b908b9fc7dffb401c2cba989b7d6f594d97c
2020-09-05 02:05:27 +00:00
CloudBuild
c3e1fbbbb0
auto update translation
...
GitOrigin-RevId: 9a9932b5e49c18288c16549584cd02cafd1e8f0b
2020-09-05 02:05:22 +00:00
Jessica Lawshe
bfb4da572b
Merge pull request #3158 from overleaf/as-fix-react-replacement-tag-sanitisation
...
Fix stripping of "replacement" tags in translation strings for react-i18next
GitOrigin-RevId: a83ed2810689b00c85c34a47afc92462907fd5de
2020-09-05 02:05:17 +00:00
Jessica Lawshe
a3243a881c
Merge pull request #3149 from overleaf/jpa-sync-angular-mocks
...
[misc] bring the angular-mocks version in sync with angular@1.8.0
GitOrigin-RevId: b7ca321c16d388689f0ea38aaac941c9db614c6e
2020-09-05 02:05:12 +00:00
Alasdair Smith
617fe024bc
Merge pull request #3134 from overleaf/as-react-i18n
...
Load translations in the frontend using react-i18next
GitOrigin-RevId: 4e6ab1befcd783db2b3255bb4d04dc18e710a3dc
2020-09-05 02:05:04 +00:00
Jakob Ackermann
473e9d32f2
Merge pull request #3154 from overleaf/jpa-bib-log-parser-use-es5
...
[misc] use es5 syntax in bib-log-parser -- babel does not process it
GitOrigin-RevId: 82585111941b03b799de2fd209759078e0c6e7f6
2020-09-05 02:04:59 +00:00
CloudBuild
692b5546c5
auto update translation
...
GitOrigin-RevId: b425018b1578905d6ce80dd73dbaba9e0e961376
2020-09-05 02:04:54 +00:00
Eric Mc Sween
14e1e02a68
Test anonymous volumes are removed with containers
2020-09-04 11:34:08 -04:00
Brian Gough
c530422f1e
update package version to 3.1.0
2020-09-04 15:52:05 +01:00
Brian Gough
8a030e8422
Merge pull request #32 from overleaf/jpa-compression
...
[misc] enable compression for the /metrics route
2020-09-04 15:35:28 +01:00
Jakob Ackermann
71ba4150fe
[misc] enable compression for the /metrics route
2020-09-04 15:32:48 +01:00
Simon Detheridge
f7e4c95cb8
Merge pull request #70 from overleaf/spd-rearchive-end-parameter
...
Add 'endId' parameter to rearchive script
2020-09-04 14:54:43 +01:00
Brian Gough
b6b65b9638
Merge pull request #39 from overleaf/jpa-res-headers-public-api
...
[http] use public node api for getting the response content-length
2020-09-04 14:52:20 +01:00
Brian Gough
a79bc553cc
Merge pull request #38 from overleaf/jpa-fix-importing
...
[misc] fix module importing
2020-09-04 14:51:58 +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
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
Jakob Ackermann
1110d0f867
Merge pull request #776 from overleaf/jpa-dependabot-config
...
[misc] add the dependabot config of the buildscripts
2020-09-04 10:47:31 +02:00
Jakob Ackermann
41ee63c1f1
[misc] add the dependabot config of the buildscripts
...
See inline docs for rationals of each (non-trivial) option.
2020-09-04 09:23:20 +01:00
dependabot[bot]
7ee0b2b7e2
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 20:00:20 +00: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
dependabot[bot]
9d2a30c919
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:54:31 +00: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