fix(rd21): retain draft revisions and qualify conflict recovery

This commit is contained in:
cesnimda
2026-10-23 12:34:34 +02:00
parent 12f342c09c
commit 05a738693e
53 changed files with 813 additions and 192 deletions
@@ -69,7 +69,7 @@ async function seed(page: Page, owner: Owner) {
items: ['Recorded custom fact with relevant professional context.', 'Another recorded custom fact, preserved during unrelated contact editing.'] }],
};
const raw = 'Exact original career source — æøå\nRecorded work and qualifications.\n';
await json<CareerReadback>(await page.request.put(`${apiUrl}/career/profile`, { headers: owner.headers, data: { profile, cvText: raw } }));
await json<CareerReadback>(await page.request.put(`${apiUrl}/career/profile`, { headers: owner.headers, data: { expectedVersion: (await (await page.request.get(`${apiUrl}/career/profile`)).json()).revision, profile, cvText: raw } }));
return { canonical: await json<CareerReadback>(await page.request.get(`${apiUrl}/career/profile`)),
history: await json<unknown[]>(await page.request.get(`${apiUrl}/career/profile/versions`)) };
}