Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 79dd628

Browse files
DOP-5395: Persistence Module not updating updated_documents collection (#1082)
* DOP-5395 hardcode parser user to docsworker-xlarge for persistence module * DOP-5395 add comments * DOP-5395 use replace
1 parent 3344c8f commit 79dd628

File tree

1 file changed

+4
-1
lines changed
  • modules/persistence/src/services/pages

1 file changed

+4
-1
lines changed

modules/persistence/src/services/pages/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,12 @@ const updatePages = async (pages: Page[], collection: string, githubUser: string
267267
console.time(timerLabel);
268268

269269
try {
270+
// TEMPORARY FIX FOR NETLIFY BUILDS
271+
// TODO: DOP-5405 remove parser user from page id
272+
const pageIdPrefix = pages[0].page_id.split('/').slice(0, 3).join('/').replace('buildbot', 'docsworker-xlarge');
273+
270274
// Find all pages that share the same project name + branch. Expects page IDs
271275
// to include these two properties after parse
272-
const pageIdPrefix = pages[0].page_id.split('/').slice(0, 3).join('/');
273276
const previousPagesCursor = await findPrevPageDocs(pageIdPrefix, collection, githubUser);
274277
const { mapping: prevPageDocsMapping, pageIds: prevPageIds } = await createPageAstMapping(previousPagesCursor);
275278

0 commit comments

Comments
 (0)