[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
This commit is contained in:
Jakob Ackermann
2026-02-18 13:06:27 +01:00
committed by Copybot
parent 13e03fafa2
commit cb0266035d
12 changed files with 29 additions and 133 deletions
@@ -131,7 +131,7 @@ describe('EditorHttpController', function () {
}
ctx.ProjectGetter = {
promises: {
getProjectWithoutDocLines: sinon.stub().resolves(ctx.project),
getProject: sinon.stub().resolves(ctx.project),
},
}
ctx.ProjectEditorHandler = {
@@ -461,7 +461,7 @@ describe('EditorHttpController', function () {
describe('when project is not found', function () {
beforeEach(async function (ctx) {
ctx.ProjectGetter.promises.getProjectWithoutDocLines.resolves(null)
ctx.ProjectGetter.promises.getProject.resolves(null)
await new Promise(resolve => {
ctx.next.callsFake(() => resolve())
ctx.EditorHttpController.joinProject(ctx.req, ctx.res, ctx.next)