Repository navigation
feat(publishing): delete a Design content list - #5147
Merged
Merged
Conversation
PublishingShell Design confirms before DELETE. Cancel does not call the server. HTTP 400/403/409, including a content list still associated with an edition, stay on the editor and leave the row. Fixes #5135 > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs.
Machine review: 0 blocking bugs. Cognitive complexity on the in-use check is a suggestion. Residual LLM failed on CUDA OOM; machine findings kept. > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs.
This was referenced Oct 4, 2026
Record the mkd-code-review advisory pass for Design content-list delete. No in-diff bugs. Complexity of the in-use check is a suggestion. > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs-erlang.
Collaborator
Author
|
Independent Erlang LGTM. mkd-code-review 0.1.18 found no in-diff bugs.
|
This was referenced Oct 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PublishingShell Design can delete one content-list definition. Confirm calls
DELETE …/publishingdesign/contentlists/{id}and the row disappears only after that call succeeds. Cancel does not call the server. HTTP 400, 403, and 409 (including a list still associated with an edition: Content list is in use) stay in the editor and leave the row.This does not remove an edition association (#5108) and does not replace content-list save (#4676). Parent: #4531. Slice: #5135.
Operator: Grok: night-issue-prs (model grok-4.7)
Fixes #5135
Test plan
python docker/scripts/perc-devctl.py qa-up --skip-image-build --then-qa-deploy-webui, thenqa-health.Checklist
product-docs/8.2/admin/publishing.md(Delete a content list)modules/perc-qa-automation/frontend/tests/publishing/designContentListDelete.spec.js(3 passed on H2)projects/sitemanage,WebUI, andmodules/perc-qa-automation(no skipTests)Build evidence
projects/sitemanage,WebUI,modules/perc-qa-automationfinal/sealedand no public signature change)cd projects/sitemanage && rtk mvn clean install— BUILD SUCCESS. Tests run: 3383, Failures: 0, Errors: 0, Skipped: 125. JAVA_HOME=/usr/lib/jvm/java-21-openjdk.cd WebUI && rtk mvn clean install— BUILD SUCCESS. Java tests run: 69, Failures: 0. Vitest: Test Files 636 passed, Tests 5818 passed.cd modules/perc-qa-automation && rtk mvn clean install— BUILD SUCCESS. Surefire: No tests to run (Playwright is the C5 gate, not this module's Surefire suite).UI proof (C5)
python docker/scripts/perc-devctl.py qa-up --skip-image-build --then-qa-deploy-webuiTEST_CMS_URL=http://127.0.0.1:9993QA_CMS_HOST_PORT=9993containerperc-matrix-cms-h2qa-deploy-webuithenqa-deploy-war-jars(sitemanage + perc-system SNAPSHOTs, in-cell Jetty restart). Notdocker restart.python docker/scripts/perc-devctl.py qa-health—RESULT:OK HTTP:200 HEALTH:healthycd modules/perc-qa-automation/frontend && npm run test:surface -- --path tests/publishing/designContentListDelete.spec.jsPre-push local code review
Erlang review — PR #5147
Scope
CLI stdout (
mkd-code-review analyze --format markdown)Summary
Machine analysis found 2 finding(s), 0 bug(s).
Scope
Recommendation
approve
Gate
Issues
Issue 1 -- Severity: suggestion
complexity.cognitivearborist-metricsrejectContentListInUsecognitive=22 (max 15), cyclomatic=16 (max 15)Issue 2 -- Severity: suggestion
File: review
Rule:
llm.errorTool:
llmDescription: model
ollama-dev-coderfailed: http: status 500 Internal Server Error body {"error":{"message":"llama-server process has terminated: exit status 1: cudaMalloc failed: out of memory\nalloc_tensor_range: failed to allocate CUDA0 buffer of size 5064192000\nerror loading model: unable to allocate CUDA0 buffer","type":"api_error","param":null,"code":null}}Status: open
Erlang disposition
Independent review (did not author the PR).
mkd-code-review0.1.18, pack percussion,--gate advisory,--git-base origin/main. Ollamadev-coderfailed with CUDA OOM; machine findings were kept.No in-diff bugs. The only machine row is cognitive complexity of
rejectContentListInUse(cognitive 22 / cyclomatic 16), a suggestion.findAllEditions("")returns every edition (blank filter is not a site filter). Delete runs only afterrequireDesignWrite, a loaded list, and no edition link; HTTP 409 does not calldeleteContentLists. The editor callsonSavedonly after DELETE succeeds, which closes the editor and reloads the list. Cancel does not call the server. Tests cover 400, 403, 404, unassociated delete, and in-use 409. No rule-file diff.Recommendation: approve.