Commit graph

17755 commits

Author SHA1 Message Date
Jessica Lawshe
5d244fd183 Merge pull request #3249 from overleaf/jel-removed-unused-email-template
Remove CTAEmailTemplate

GitOrigin-RevId: bbfbe0c0e20d0dbbf5bf355c0a31de2834fedc34
2020-10-07 02:04:39 +00:00
Jessica Lawshe
06316a0f56 Merge pull request #3220 from overleaf/jel-link-ieee
Move link/unlink SSO audit log entry

GitOrigin-RevId: 1b912cc58957af7e80628f3f955f01c2a641812d
2020-10-07 02:04:34 +00:00
Jessica Lawshe
1ca50eeb98 Merge pull request #3179 from overleaf/jel-remove-sudo-mode
Remove SudoMode

GitOrigin-RevId: 9419f9b28e5051a1c5abd29f498f72448d1afd33
2020-10-07 02:04:29 +00:00
Jakob Ackermann
79bdc60743 Merge pull request #3262 from overleaf/jpa-global-query-normalize-helper
[misc] add a helper for normalizing queries and detecting ObjectIds

GitOrigin-RevId: 4f0ac53219ab5853b5499447334724c6c39c6303
2020-10-07 02:04:24 +00:00
Jakob Ackermann
9f68193876 Merge pull request #3259 from overleaf/jpa-hotfix-object-id-detection
[misc] fix detection of native and mongoose ObjectIds

GitOrigin-RevId: 98e2f3f009061e7cce9948341ebd5dc42d613448
2020-10-07 02:04:18 +00:00
Jakob Ackermann
07dbfe6df8 Merge pull request #797 from overleaf/jpa-wait-for-db
[misc] keep up with web changes -- add waitForDb wrapper for tasks
2020-10-06 14:02:26 +02:00
Jakob Ackermann
db422ecafa Merge pull request #3258 from overleaf/jpa-config-mongo-server-selection-timeout
[misc] add a config option for the mongo serverSelectionTimeoutMS

GitOrigin-RevId: 89b79e4fd5043b003da4ef103ddc919909aa7893
2020-10-06 02:04:45 +00:00
Jakob Ackermann
0c6e12a5cb Merge pull request #3189 from overleaf/jpa-mongodb-latest
[misc] upgrade mongodb package and run codemod for find projections

GitOrigin-RevId: 01291b3095779abe045e39b82f071ac84285a508
2020-10-06 02:04:39 +00:00
Jakob Ackermann
da9f966ff0 [misc] prepare acceptance tests for mismatching ObjectId types (#3188)
- helpers/User: UserUpdater cannot handle foreign ObjectIds. Instead use
  `mongoUpdate`, which in turn uses the user id which
  `setExtraAttributes` sets -- hence the reordering of calls.
- CollabratecTests: use chaId for id comparison.
- ProjectStructureMongoLockTest: use chaId for id comparison.
- UserHelper: less generic updateUser -- wrap the passed ObjectId

GitOrigin-RevId: b16e2b66dcb3dd5f0a842ca5e55fa661abe9035f
2020-10-06 02:04:34 +00:00
Jakob Ackermann
ad52f7dc01 Merge pull request #3255 from overleaf/jpa-fix-scripts
[misc] add waitForDb wrapper to scripts with indirect mongo access

GitOrigin-RevId: 009331f91a45f075a35b0b6e90c4352e55908c21
2020-10-06 02:04:28 +00:00
Jakob Ackermann
b3197b5f12 [misc] back-fill stubbing of mongodb package in sandboxed-module imports (#3209)
* [misc] back-fill stubbing of mongodb package in sandboxed-module imports

Unit tests are about 10 percent faster: 9m16s vs 10m8s.

* [misc] stubs: app code should have access to the ObjectId only

GitOrigin-RevId: 9a52186e190863c9463b3aeb98c3db68011926e4
2020-10-06 02:04:22 +00:00
Miguel Serrano
9e2cf944a4 Merge pull request #792 from overleaf/msm-hotfix-2-4-2
Hotfix 2.4.2 - fix anon read/write sharing
2020-10-05 17:50:47 +02:00
Jakob Ackermann
fe3edd7197 [misc] keep up with web changes -- add waitForDb wrapper for tasks 2020-10-05 09:45:43 +01:00
Miguel Serrano
6f6a9e714d Revert "Update pdf.js to 2.5.207 (#3222)" (#3251)
This reverts commit 37be3901abf1044d93d83cb684e4e32721550d5a.

GitOrigin-RevId: 07d422401f298a667aa635e0232985a81ce6ef4a
2020-10-02 02:04:28 +00:00
Miguel Serrano
7b997f3946 Update pdf.js to 2.5.207 (#3222)
* updated pdf.js to 2.5.207, and added worker-loader as a devDependency
* updated pdf.js loaded to load ES5 build instead of the default one
* replaced imports with named imports due to changes on pdf.js worker loading

There are some hash downgrades in the lockfile. Running the commands through the appropriate methods yields the same result consistency

GitOrigin-RevId: 37be3901abf1044d93d83cb684e4e32721550d5a
2020-10-02 02:04:23 +00:00
Jakob Ackermann
e3c6637339 Merge pull request #3187 from overleaf/jpa-mongodb-native
[misc] migrate the app to the native mongo driver

GitOrigin-RevId: 9030b18c4cf62e3a01d3d8f450bf0e02f9f89c22
2020-10-02 02:04:18 +00:00
Alasdair Smith
022424601d Merge pull request #3233 from overleaf/as-wfh-oct-update
Update WFH banners to reflect end of discount offer

GitOrigin-RevId: a43370fd5c6bffd3ef108daf3e66e64765ef5792
2020-10-02 02:04:13 +00: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
Miguel Serrano
e50861841f added patch to fix left footer with html links 2020-10-01 12:46:11 +02:00
Miguel Serrano
ac48f31e00 using original single patch 2020-10-01 11:53:11 +02: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
Jakob Ackermann
16da44e56a Merge pull request #144 from overleaf/jpa-mongodb-native
[misc] migrate to the native mongo driver
2020-09-30 10:09:49 +02:00
CloudBuild
a40f858eaa auto update translation
GitOrigin-RevId: c2fd41008b8534600eba4658666531d604ec94cf
2020-09-30 02:04:56 +00:00
Jessica Lawshe
e8b4629320 Merge pull request #3244 from overleaf/jpa-locales-trailing-new-line
[misc] add a trailing new line to the downloaded locales files

GitOrigin-RevId: 5111ca1147b2ae355cc9db87c010536e3861a23c
2020-09-30 02:04:51 +00:00
Jessica Lawshe
2a3cb615ee Merge pull request #3241 from overleaf/jpa-speedup-acceptance-tests
[misc] speedup the ConvertArchivedState test suite

GitOrigin-RevId: e7d6471955aabbc6af76e27fdf23d97e2fd87901
2020-09-30 02:04:46 +00:00
Jessica Lawshe
562fb35416 Merge pull request #3211 from overleaf/jel-new-cta-email-projectInvite
Convert projectInvite to new email handling

GitOrigin-RevId: 88b6383832ab12b524890532a120c6f2f0f28c8c
2020-09-30 02:04:40 +00:00
Jessica Lawshe
a6be3179fd Merge pull request #3215 from overleaf/jel-new-cta-email-registered
Convert registered email to new email handling

GitOrigin-RevId: a2f99c65bdaee1287a0353e66cfc5a7768fdbcc8
2020-09-30 02:04:35 +00:00
Jessica Lawshe
35897cf492 Merge pull request #3221 from overleaf/jel-institution-sso-email
Note which institution email was linked/unlinked in email alert

GitOrigin-RevId: 7e5ef743c8ec8b12c14f833fdd2b01676c95c1b6
2020-09-30 02:04:28 +00:00
Jessica Lawshe
9d3f2eb7dc Merge pull request #3227 from overleaf/jel-security-email-alerts
Move security alert handling to private function

GitOrigin-RevId: a59b6b0802986b2caa9e9715d80225eb11b163a9
2020-09-30 02:04:23 +00:00
CloudBuild
12c18f9381 auto update translation
GitOrigin-RevId: 8adb55c0eeaa08c2e03657c177a4215002775507
2020-09-30 02:04:15 +00:00
Jakob Ackermann
3da2e0370a Merge pull request #98 from overleaf/jpa-hotfix-pack-worker
[PackWorker] fixes for the native mongo driver
2020-09-29 15:17:39 +02: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
Jakob Ackermann
712a4c11e2 Merge pull request #94 from overleaf/jpa-mongodb-native
[misc] migrate to the native mongo driver
2020-09-29 11:55:11 +02:00