fix: update job creation path defaults and remove Restore option - #241
fix: update job creation path defaults and remove Restore option#241im-shiv wants to merge 1 commit into
Conversation
sourceRoot/targetRoot filter: hierarchyNotFile → folder (restrict pickers to folders only). targetRoot rootPath: /content/forms/af → /content/dam/formsanddocuments (AF2 fragments land under DAM; align default with actual output location). Remove Restore radio option: unreliable for forms containing fragments since the pre-conversion version does not include converted fragment copies.
Please log a jira ticket to resolve this. |
|
PR #241 — Code Review (though previous comment is still open - why the restore point support is being removed from Forms - instead of a fix): fix: update job creation path defaults and remove Restore option Overview A targeted UI-only change to the Form job creation wizard (form/job/create/.content.xml) with three modifications:
All three changes are motivated by PR #240's fragment conversion feature. Issues 1. RESTORE is still reachable via the Full job creator full/job/create/.content.xml still presents the "Restore" radio option for all content types — including form pages. A user creating a full conversion job that includes forms can still select RESTORE and trigger the broken code path that 2. Dead code left in FormConversionJobExecutor The backend RESTORE handling is never cleaned up: 3. sourceRoot and targetRoot now use different path namespaces — no UI hint After this change, sourceRoot browses under /content/forms/af (AF page tree) while targetRoot browses under /content/dam/formsanddocuments (DAM asset tree). These are two different views of the same logical structure, but there's nothing in 4. filter="folder" may be too restrictive for sourceRoot hierarchyNotFile allows selecting any non-file hierarchy node (cq:Page, sling:Folder, nt:unstructured). folder typically matches only sling:Folder and nt:folder nodes. Under /content/forms/af, organizational nodes are often sling:Folder, but 5. "Add Forms" picker at line 186 still uses hierarchyNotFile The scope step's picker (used to actually select individual forms to add to the job) was not changed — still filter=hierarchyNotFile. That's correct behavior, but it creates an internal inconsistency in the file: the root path pickers use 6. No CHANGELOG entry Removing the Restore option is a user-visible behavioral change. The CHANGELOG.md has an [Unreleased] section but this PR adds nothing to it. Users upgrading and relying on Restore for forms won't have a migration path documented. |
bstopp
left a comment
There was a problem hiding this comment.
See PR review from Claude, provided by @iamsudhanshu
sourceRoot/targetRoot filter: hierarchyNotFile → folder (restrict pickers to folders only). targetRoot rootPath: /content/forms/af → /content/dam/formsanddocuments (AF2 fragments land under DAM; align default with actual output location). Remove Restore radio option: unreliable for forms containing fragments since the pre-conversion version does not include converted fragment copies.