From 58e2396d916aa345de029b31780d331527343f49 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 20 Aug 2026 08:20:53 +0200 Subject: [PATCH] [web] remove legacy body field for rootDoc_id (#36608) The migration finished in 2014, there are no more clients using it. REF: 175dfae0856759b6c9f3d6c7777a6db0426abd5b GitOrigin-RevId: 6fc21e93c5ef34622e9cf6259e7105f3202d66ae --- .../app/src/Features/Compile/CompileController.mjs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/services/web/app/src/Features/Compile/CompileController.mjs b/services/web/app/src/Features/Compile/CompileController.mjs index 16663c4455..f002a6aaab 100644 --- a/services/web/app/src/Features/Compile/CompileController.mjs +++ b/services/web/app/src/Features/Compile/CompileController.mjs @@ -167,14 +167,6 @@ const compileSchema = z.object({ editorId: z.uuid().optional(), rootResourcePath: zz.filepath().optional(), rootDoc_id: zz.objectId().nullish(), - // legacy nested duplicate of rootDoc_id, only sent by old cached - // frontend bundles during a deploy transition -- can be removed once - // that's no longer a concern. Deliberately non-strict: this object's - // shape before that cleanup isn't fully known here, and the only field - // ever read from it is rootDoc_id. - settingsOverride: z - .object({ rootDoc_id: zz.objectId().nullish() }) - .optional(), compiler: z.string().optional(), draft: z.boolean().optional(), png2pdf: z.boolean().optional(), @@ -437,9 +429,6 @@ const _CompileController = { if (body.rootDoc_id) { options.rootDoc_id = body.rootDoc_id - } else if (body.settingsOverride && body.settingsOverride.rootDoc_id) { - // Can be removed after deploy - options.rootDoc_id = body.settingsOverride.rootDoc_id } if (body.compiler) { options.compiler = body.compiler