[test][page-templates] Cover duplicatePage pageEmbed remap + template reference sync #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From review of #17 (merged to develop).
Untested high-risk logic:
apps/server/src/core/page/services/page.service.tsduplicatePage: remap ofpageEmbed.sourcePageId(remap to the copy when the source is in the copied set, otherwise keep the original). A bug here silently breaks template duplication.apps/server/src/core/page/transclusion/transclusion.service.tssyncPageTemplateReferences: thetoDeletebranch (removing stale references when the host page is edited) is not covered.insertTemplateReferencesForPagesmulti-workspace grouping/filtering branch is not covered.Add jest coverage mirroring the existing transclusion specs.
Severity: medium.