Repository navigation
feat(publish): delete a site delivery server (#4860) - #4875
Merged
Merged
Conversation
PublishingShell delete now confirms, drops the server on success, and keeps the list when delete is rejected. Delete conflicts (in use, default) return HTTP 409 with the service message. Fixes #4860 > Co-Authored by Grok Build 1.0.41 using grok-4.6 with agent night-issue-prs.
> Co-Authored by Grok Build 1.0.41 using grok-4.6 with agent night-issue-prs-erlang.
Collaborator
Author
|
LGTM. Erlang 0.1.1 / mkd-code-review 0.1.18 against origin/main: 0 blocking bugs (in-diff suggestion only: Required checks on the product head 20167a5 were green before the docs-only review commit. Squash-merging.
|
natechadwick-intsof
deleted the
fix/issue-4860-delete-delivery-server
branch
September 25, 2026 11:18
4 tasks done
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
Parent: #4531. Slice #4860.
PublishingShell Edit Server → Delete Server confirms before
DELETE /publishmanagement/servers/{siteId}/{serverId}. Confirm removes the server from the site list. Cancel does not call delete. In-use / default-server failures are HTTP 409 with the service message and stay on the editor; the list is not treated as deleted. HTTP 403 (not Admin or Designer) is the same chrome as save.Operator: Grok: night-issue-prs (model grok-4.6)
Test plan
siteWorkspaceDeleteServer.test.tsx,deliveryServerSaveErrors.test.ts)PSPubServerRestServiceTestmaps in-use to 409 and forbids non-admin deletetests/publishing/sitesDeliveryServerDelete.spec.js— 3 passed on H2 QAhttp://127.0.0.1:38452(containerperc-matrix-cms-h2-k4563)Product documentation
product-docs/8.2/admin/publishing.md(Delete a site delivery server)C3 evidence
WebUI,projects/sitemanagecd WebUI && rtk mvn clean install— BUILD SUCCESScd projects/sitemanage && rtk mvn clean install— BUILD SUCCESS, Tests run: 3095, Failures: 0, Errors: 0, Skipped: 125siteWorkspaceDeleteServer3,deliveryServerSaveErrors4)PSPubServerServiceException(String)now keeps the constructor text viam_overridingMessagebecausePSException.getMessage()otherwise drops it.C5 UI proof
perc-matrix-cms-h2-k4563published onTEST_CMS_URL=http://127.0.0.1:38452(not the default nameperc-matrix-cms-h2).sitemanage,rest, andperc-systemSNAPSHOT jars intoWEB-INF/libandcm/modern/assets, thenStopJetty.sh/StartJetty.shinside the cell (nodocker restart).NoClassDefFoundError: WorkflowGraph) because sitemanage was newer than the cellrestjar. After copying matchingrest+perc-system, log showsStarted WebAppContextandGET /Rhythmyx/rest/mimetypesHTTP 200.perc-devctl.py qa-health --url http://127.0.0.1:38452/Rhythmyx/rest/mimetypesreturnedRESULT:FAIL(HTTP 503 during first restart, then laterhealth=unknownbecause it inspectsperc-matrix-cms-h2, which is not this cell). Docker health onk4563staysunhealthybecause the healthcheck still matches the earlierFailed startup of contextline. Current context is up.npm run test:surface -- --path tests/publishing/sitesDeliveryServerDelete.spec.js— 3 passed. console-clean=yes (spec asserts no pageerror/console error on the success path). server.log-clean=yes for the window after the successful second start (no new ERROR/FATAL after11:00:24related to delete). Stale fail line from the first restart remains inserver.log.Pre-push local code review
Erlang review — PR #4875
Scope
CLI stdout (
mkd-code-review analyze --format markdown)Summary
Machine analysis found 1 finding(s), 0 bug(s).
Scope
Recommendation
approve
Gate
Issues
Issue 1 -- Severity: suggestion
complexity.cognitivearborist-metricsinstallServerRoutescognitive=21 (max 15), cyclomatic=18 (max 15)Fixes #4860