Jakob Ackermann
cb0266035d
[web] remove unnecessary filtering of rootFolder ( #31585 )
...
11 years ago, the db.projects collection was storing doc lines in the
file-tree/rootFolder. Any operations on the project that did not need
those lines were benefitting from excluding all those entries from the
file-tree. These days, the verbose exclusions are not useful anymore and
merely add load on mongo.
REF: 9805c6a9ff
GitOrigin-RevId: 89f544688934c1ed1ca98877ffbe8baefe66c126
2026-02-19 09:06:13 +00:00
Antoine Clausse
16b83b128b
[web] Promisify ProjectRootDocManager ( #30327 )
...
* Remove ESLint disable
* Unnest ProjectRootDocManager methods
* Promisify `setRootDocAutomatically`
* Promisify `findRootDocFileFromDirectory`
* Promisify `setRootDocFromName`
* Promisify `ensureRootDocumentIsSet`
* Promisify `ensureRootDocumentIsValid`
* Promisify `_sortFileList`
* Fixup export
* Call `ProjectRootDocManager.promises.setRootDocAutomatically` so mocks work
* Update ProjectRootDocManager.test.mjs
* Remove expects on callbacks
* Add `return` on the first matching entry in `setRootDocAutomatically`
See https://github.com/overleaf/internal/pull/30327#discussion_r2624011209
Co-authored-by: Brian Gough <brian.gough@overleaf.com >
---------
Co-authored-by: Brian Gough <brian.gough@overleaf.com >
GitOrigin-RevId: f83e8239f65776d23b49cb7a569181abc7c9a276
2026-01-08 09:05:12 +00:00
Andrew Rumble
b7c883ac38
Convert tests to ESM
...
GitOrigin-RevId: 20585e01dee90e691476a0d47fd5c63b0412e4a6
2025-10-23 08:06:15 +00:00
Andrew Rumble
0d73904c4b
Rename files
...
GitOrigin-RevId: 7e8fde9258e71ab3649d1d83addeb5164d8b4251
2025-10-23 08:06:05 +00:00