Commit graph

427 commits

Author SHA1 Message Date
Antoine Clausse
36f0a3e01a [web] Promisify ProjectController (#18477)
* Create `promiseAuto` util to replace `async.auto`

* Promisify `BrandVariationsHandler.getBrandVariationById`

* Promisify `updateProjectSettings`

* Promisify `updateProjectAdminSettings`

* Promisify `newProject`

* Promisify `deleteProject`

* Promisify `loadEditor`

* Fix brandVariation loading in promise auto

* Promisify `_refreshFeatures`

* Promisify `_injectProjectUsers`

* Fix `no-inner-declarations`

* Promisify `cloneProject`

* Promisify `userProjectsJson`

* Promisify `projectEntitiesJson`

* Promisify `restoreProject`

* Promisify `renameProject`

* Additional warning fix

* Update unit tests

* Fixup `updateProjectSettings`: call jobs inside the Promise.all

* Use `expressify(...)` instead of manually call `next(err)`

https://github.com/overleaf/internal/pull/18477#discussion_r1613611987
https://github.com/overleaf/internal/pull/18477#discussion_r1613621146
https://github.com/overleaf/internal/pull/18477#discussion_r1613634000
...

* Replace Promise.all by sequencial awaits

https://github.com/overleaf/internal/pull/18477#discussion_r1613852746
https://github.com/overleaf/internal/pull/18477#discussion_r1613611987

* Remove manual throws of 500. Let the generic error handler catch them.

https://github.com/overleaf/internal/pull/18477#discussion_r1613623446
https://github.com/overleaf/internal/pull/18477#discussion_r1613628955

* Promisify `untrashProject`

https://github.com/overleaf/internal/pull/18477#discussion_r1613627783

* Promisify `expireDeletedProjectsAfterDuration`

* Promisify `archiveProject`

* Promisify `unarchiveProject`

* Promisify `trashProject`

* Promisify `expireDeletedProject`

* Use async `setTimeout` from `timers/promise`

https://github.com/overleaf/internal/pull/18477#discussion_r1613843085

* Remove unused `_injectProjectUsers`

https://github.com/overleaf/internal/pull/18477#discussion_r1613855766

* Add missing exec in queries (?)

Not sure if that makes a real difference but it's more consistent with the rest of the code

* Catch floating promises

https://github.com/overleaf/internal/pull/18477#discussion_r1613868876

* Replace custom `promiseAuto` by `p-props` from NPM

https://github.com/overleaf/internal/pull/18477#discussion_r1613393294

* Downgrade `p-props` to v4. Later versions require ESM

* Simplify code around `splitTestAssignments`

GitOrigin-RevId: 84d37f7aa9227b5b9acf9eeb5db1b78afc01b6ee
2024-05-30 08:04:36 +00:00
Tim Down
c67e677157 Merge pull request #18389 from overleaf/td-bs5-move-sass-npm-packages
Move Sass and related packages into web

GitOrigin-RevId: 89a58d0caa3261e3fe87292e999d1f6f799b683d
2024-05-30 08:04:11 +00:00
Brian Gough
344b4d0fa0 Merge pull request #18088 from overleaf/ab-session-secret-rotation
[web/realtime/history-v1] Support session secret rotation

GitOrigin-RevId: 3c2fa27b1b3e0a8e0c9d1af2e616ce873d54aedf
2024-05-27 10:23:33 +00:00
Andrew Rumble
71187a51ba Merge pull request #18289 from overleaf/ac-ar-eslint-return-await
Add ESLint rule @typescript-eslint/return-await to backend services

GitOrigin-RevId: 75e3e32597827fcc852e69d479515fc72e8f45e4
2024-05-27 10:22:49 +00:00
Eric Mc Sween
876ee4d967 Merge pull request #18225 from overleaf/em-typescript-eslint
Add typescript-eslint rule: no-floating-promises

GitOrigin-RevId: 8c3decdff537c885f5bfeb5250b7805480bc6602
2024-05-27 10:22:20 +00:00
Alf Eaton
2d75652f61 Add uppy subdependencies (#18378)
GitOrigin-RevId: 8046821f4ea46e5d414e9d944ad58cc0a0a0857c
2024-05-21 08:04:35 +00:00
Tim Down
9c1cb419de Merge pull request #18124 from overleaf/td-bs5-upgrade-packages
Upgrade Bootstrap 5 and related packages

GitOrigin-RevId: 9bf0bb957b045b52349abfdfe27fb1c41bebd91e
2024-05-16 08:04:51 +00:00
Brian Gough
6680bedf6c Merge pull request #16728 from overleaf/bg-clsi-timeout-fetchutils-connect-timeout
add connect timeout to fetch-utils using custom agents

GitOrigin-RevId: 877dbc1311197461cf1e9bfee74196bd5d3e42dc
2024-05-16 08:04:41 +00:00
Jakob Ackermann
9c5eb9630b Merge pull request #18222 from overleaf/jpa-socket-io-mock
[web] replace socket.io-mock with simple EventEmitter based interface

GitOrigin-RevId: 012e4263367a83e16efea3947f310a2de9a65279
2024-05-09 08:05:14 +00:00
Alf Eaton
0d00d34e1e Merge pull request #18200 from overleaf/ae-autocomplete
Fix commit for `@codemirror.autocomplete` dependency

GitOrigin-RevId: 90d5df123500214edf4d798c67c28902882a9fa9
2024-05-09 08:04:29 +00:00
Eric Mc Sween
e87df4a791 Merge pull request #18167 from overleaf/em-simpler-typescript-backend
Simpler Typescript setup in the backend

GitOrigin-RevId: 3a90f26a5ac8029d14203faa98008375ce933e7d
2024-05-07 08:04:00 +00:00
Andrew Rumble
92f62f91c1 Merge pull request #18148 from overleaf/ar-add-output-zip-endpoint-to-clsi
[clsi] Add endpoints to get zip of output files

GitOrigin-RevId: a1a935e8170ab5a8d40baa6d96f8e42fe22c2e8c
2024-05-02 08:03:44 +00:00
Andrew Rumble
13bb42885e Merge pull request #18025 from overleaf/ar-add-dropbox-unlinks-to-audit-log
Add dropbox unlinks to audit log

GitOrigin-RevId: 9038293b42446843763ea83caa3f9414123961a1
2024-05-01 08:04:18 +00:00
Rebeka Dekany
285a0cae03 Merge pull request #17309 from overleaf/rd-bootstrap-5-stylelint
[web] Introducing Stylelint as the CSS linter

GitOrigin-RevId: 89ee8860cdb3a94949749577b63cde2c3dc213fb
2024-05-01 08:04:13 +00:00
Jessica Lawshe
e9586079d4 Merge pull request #18047 from overleaf/jel-latexqc-webpack-dev-middleware
[latexqc] Upgrade `webpack-dev-middleware`

GitOrigin-RevId: b7036f623c4fb27174c2b4f22b49ff1b257af829
2024-04-30 08:04:52 +00:00
Brian Gough
29105911c5 Merge pull request #17732 from overleaf/bg-session-mitigation-initial-protoype
anonymous cookie-based sessions module

GitOrigin-RevId: 75fe2d48fa384ba8d07c0b478a9a5a907a2b3b67
2024-04-26 08:04:54 +00:00
roo hutton
359f5068ad Merge pull request #18055 from overleaf/rh-follow-redirects-1156
[web] Upgrade follow-redirects to 1.15.6

GitOrigin-RevId: 72e6efe5fbf48536590ac0cab04c1e18a8023dbe
2024-04-26 08:04:13 +00:00
roo hutton
cbb7a6412c Merge pull request #18053 from overleaf/rh-upgrade-tar-621
[web] Upgrade tar to 6.2.1

GitOrigin-RevId: ca5373b0765aba0fd22dea200e695e9263d08c01
2024-04-26 08:04:09 +00:00
Eric Mc Sween
b8195f537d Merge pull request #18065 from overleaf/em-doc-versions-recovery-fix
Doc versions recovery for Server Pro 5.0.3

GitOrigin-RevId: 226b09383f9499c7eb1c20bf9e8e8e549bdbccb0
2024-04-25 08:04:50 +00:00
Alf Eaton
e0ffa9cc79 Upgrade @codemirror/commands (#18024)
GitOrigin-RevId: 1abe4855be39b1be01e3e0b04c891037139b09a6
2024-04-23 08:05:21 +00:00
Alf Eaton
c3c7dc13e2 Upgrade webpack-dev-server (#18043)
GitOrigin-RevId: 18986550e561b9f5deb028a2dd1ff8141f753498
2024-04-23 08:05:11 +00:00
Alf Eaton
b61af64f1a Small improvements to the compile assistant (#17998)
GitOrigin-RevId: 0a245f42c23f946142972a96fe620d54f4a7a031
2024-04-23 08:05:06 +00:00
roo hutton
d75024a7a1 Merge pull request #17974 from overleaf/rh-express-4192
Upgrade express to 4.19.2

GitOrigin-RevId: 383877c39670093033d802af0fae54ec578ba327
2024-04-23 08:05:01 +00:00
roo hutton
06cac44d84 Merge pull request #18021 from overleaf/rh-mailchimp-api
[web] Replace node-mailchimp with own MailChimpClient

GitOrigin-RevId: 10207620c48f30ad29f4f0e7ea5193c11d256902
2024-04-22 08:04:33 +00:00
Alf Eaton
471617a7a2 Upgrade @storybook/addon-styling-webpack (#17979)
GitOrigin-RevId: 05793a4e4a718bb923cd5dd547bfda1cd47c1a98
2024-04-22 08:03:46 +00:00
Alf Eaton
e74b84fdab Upgrade i18next (#17452)
GitOrigin-RevId: 1a5aa872ee473a4ea679560a3fab317072a92357
2024-04-22 08:03:41 +00:00
Thomas
52e6ceef67 Merge pull request #17898 from overleaf/tm-remove-twitter-login
Remove twitter login code and uninstall passport-twitter

GitOrigin-RevId: 928c877ef2a42d5881652cad7f9d563c7766fd36
2024-04-18 08:04:16 +00:00
Alf Eaton
63c789f2ae Upgrade pdf.js to 4.0.379 (#17641)
GitOrigin-RevId: ce65e7d08d7f96c97f1a122898a02294f58ddb92
2024-04-17 08:04:53 +00:00
Alf Eaton
76b34fb0f7 Upgrade CodeMirror view dependency (#17929)
GitOrigin-RevId: cba9d3c73f4ed402fe9b6c5413555c622ca1f7ce
2024-04-17 08:04:45 +00:00
Eric Mc Sween
ab17eb150d Merge pull request #17745 from overleaf/em-promisify-snapshot-manager
Promisify SnapshotManager

GitOrigin-RevId: 1fa7124da3aa3e0be5db372e68e286d63f496a97
2024-04-15 08:04:46 +00:00
Eric Mc Sween
d12a0b5f07 Merge pull request #17735 from overleaf/em-promisify-web-api-manager
Promisify WebApiManager

GitOrigin-RevId: 95addc9442845252aa51c353676486b2dbce0662
2024-04-12 08:05:39 +00:00
Eric Mc Sween
f03e3fd51e Merge pull request #17729 from overleaf/em-promisify-sync-manager
Promisify SyncManager

GitOrigin-RevId: 134770d812a493e39410debb370ed4a58ffff4bf
2024-04-12 08:05:29 +00:00
roo hutton
ce87ee3edb Merge pull request #17613 from overleaf/rh-contentful-upgrade
[web] Upgrade Contentful SDK to v10.x

GitOrigin-RevId: 56ec88307d98f7f3cf114e5d1293bc4e35ab9701
2024-03-29 09:04:08 +00:00
Alf Eaton
362a947c5a Add prototype compile assistant (#17402)
GitOrigin-RevId: 07547f2a83aec8cfda75c589ed24cdc85fe15b59
2024-03-26 09:04:28 +00:00
Alf Eaton
b44d94b953 Upgrade Cypress to 13.6.6 (#17521)
GitOrigin-RevId: ac495dd9d7a482a9619e3cbcdd914cf665115713
2024-03-26 09:04:15 +00:00
Alf Eaton
ad8648871c Upgrade Storybook to v8 (#17522)
GitOrigin-RevId: 9cc61614ef0a5661549a8842b61bc2ead9537939
2024-03-26 09:04:10 +00:00
Alf Eaton
6cc2db3cdd Merge pull request #17525 from overleaf/ae-upgrade-prettier
Upgrade Prettier to v3

GitOrigin-RevId: 6f1338f196408f3edb4892d5220ad3665ff1a5bc
2024-03-26 09:04:05 +00:00
Jimmy Domagala-Tang
8b18b511ff Merge pull request #17519 from overleaf/ii-jose-update
[web] Update jose

GitOrigin-RevId: 73a145bceb77c3f99ecd9f099f70cbe6985b9fd2
2024-03-13 09:03:33 +00:00
Jimmy Domagala-Tang
c1c6751656 Merge pull request #17496 from overleaf/ii-sanitize-html-update
[web] Update sanitize-html

GitOrigin-RevId: d923aeee866f939281b32bd86215fef735a08a5f
2024-03-13 09:03:30 +00:00
Alf Eaton
0d3c80f1ae Upgrade es5-ext (#17350)
GitOrigin-RevId: d338d2e224716e3aa9d41251ab1009676f6b242c
2024-03-07 16:30:12 +00:00
Alf Eaton
0b4c3f3eee Merge pull request #17330 from overleaf/ae-upgrade-codemirror-4
Upgrade CodeMirror dependencies

GitOrigin-RevId: 1af32206508ac1db686d55d3fbe92ab868dc1da7
2024-03-07 16:30:09 +00:00
Alf Eaton
2e935eb360 Merge pull request #17285 from overleaf/ae-nock
Upgrade Polly.JS and nock

GitOrigin-RevId: 508061bce503b8a84e7904caec16ed6b60e089d5
2024-02-29 09:03:58 +00:00
Mathias Jakobsen
b80d0e8634 Merge pull request #17047 from overleaf/mj-ranges-in-blobstore
[overleaf-editor-core] Store tracked changes and comments in blob-store

GitOrigin-RevId: 05cc69044bf26808b64b2687d81f2c40ef4cc972
2024-02-27 09:03:10 +00:00
Alf Eaton
40df262815 Upgrade @slack/webhook (#17220)
GitOrigin-RevId: 612a54001dbd3f6321521fe778d22c557c39332b
2024-02-22 09:04:34 +00:00
ilkin-overleaf
72e4df6d39 Merge pull request #17204 from overleaf/ii-nodemailer-upgrade
[web] Upgrade nodemailer

GitOrigin-RevId: 7b67b5e87cdc8ef209fb4f73cde76c0094b973de
2024-02-21 09:03:30 +00:00
Jakob Ackermann
9125438c66 Merge pull request #17173 from overleaf/jpa-prepare-node-upgrade
[misc] prepare Node.js 18.19.1 upgrade

GitOrigin-RevId: c130e40b0eb15936cec27dd0d5a85ba6b210d8da
2024-02-19 09:04:36 +00:00
ilkin-overleaf
d4639dbf55 Merge pull request #17136 from overleaf/ii-simple-oauth-2
[third-party-references] Use `simple-oauth2` built-in token refresh and expiry check methods

GitOrigin-RevId: 7fc3082c6d7444c63629710daaef8f9cb25848d3
2024-02-19 09:04:21 +00:00
Jakob Ackermann
4804cd68a5 Merge pull request #17105 from overleaf/jpa-tpds-cleanup
[misc] cleanup for tpds queues

GitOrigin-RevId: 8a501a692fa20d8956ad9dc4fccc0447c9f6fbe5
2024-02-19 09:03:41 +00:00
Alf Eaton
aa17e1e7e1 Upgrade patch-package to v8.0.0 (#17024)
GitOrigin-RevId: b921343d997c3250efda5bba70bfe2256ea7f100
2024-02-16 09:04:54 +00:00
Tim Down
07e16838b8 Merge pull request #16971 from overleaf/td-bootstrap-5-base
Bootstrap 5 base

GitOrigin-RevId: 2ac614298d31a9cf65430a46d726648a742044f9
2024-02-15 09:04:05 +00:00