Repository navigation
feat(developer): set a display format label - #5445
Merged
Merged
Conversation
A label-only save on PUT /services/displayformats/{idOrName} keeps the
name, description, and columns. A blank label stores the catalog name
so the name is not wiped. Cancel does not write. HTTP 400, 403, and 409
do not claim success.
Fixes #5432
> Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs.
This was referenced Oct 9, 2026
Record the pre-merge mkd-code-review of the display-format label save. In-diff findings are complexity suggestions. No blocking bugs. > Co-Authored by Grok Build 1.0.46 using grok-4.7 with agent night-issue-prs-erlang.
Collaborator
Author
|
LGTM. Independent Erlang review (persona erlang 0.1.1, mkd-code-review 0.1.18, pack percussion, gate advisory, base origin/main). Same-login APPROVE is rejected by GitHub, so this comment is the review. In-diff findings are complexity suggestions. Preexisting rows do not block. Ollama dev-coder failed open (CUDA out of memory). No blocking bugs. May merge: yes. Report: docs/ai-generated/code-reviews/pr-5445-erlang.md
|
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
Developer can set the label of an existing display format on the current update. The save sends
labelonly, so the name, description, columns, and communities stay. A blank label does not clear the name: an empty display name cannot be stored, so the catalog shows the name. Cancel and an unchanged label do not call the server. HTTP 400, 403, and 409 leave the previous label and do not show a saved notice.Parent: #1690. Slice: #5432.
Fixes #5432
Operator: Grok: night-issue-prs (model grok-4.7)
Test plan
Checklist
product-docs/8.2/admin/developer-display-formats.md(idadmin-developer-display-formats)clean installgreenmodules/perc-qa-automation/frontend/tests/developer-display-format-label.spec.js(1 passed on H2)system,projects/sitemanage,WebUI, andmodules/perc-qa-automationstandalone clean install. No public signature,final, orsealedchange, so no reverse-dep install./as URL or SQL text.Build evidence
modules_built: system, projects/sitemanage, WebUI, modules/perc-qa-automation
downstream_checked: none
JDK 21 (
JAVA_HOME=/usr/lib/jvm/java-21-openjdk),rtk mvn clean installfrom each module directory. No skipTests.cd system && rtk mvn clean install— Tests run: 3139, Failures: 0, Errors: 0, Skipped: 265. BUILD SUCCESS. Finished 2026-10-08T22:45:12-04:00. Total time 01:34 min.cd projects/sitemanage && rtk mvn clean install— Tests run: 3845, Failures: 0, Errors: 0, Skipped: 125. BUILD SUCCESS. Finished 2026-10-08T22:47:18-04:00. Total time 38.245 s.cd WebUI && rtk mvn clean install— Java Tests run: 69, Failures: 0, Errors: 0, Skipped: 0. Vitest Test Files 751 passed, Tests 7280 passed. BUILD SUCCESS. Finished 2026-10-08T22:49:41-04:00. Total time 01:55 min.cd modules/perc-qa-automation && rtk mvn clean install— npm ci; No tests to run (surface proof is Playwright, not Surefire). BUILD SUCCESS. Finished 2026-10-08T22:50:13-04:00. Total time 1.749 s.UI proof (H2 QA)
python3 docker/scripts/perc-devctl.py qa-up --skip-image-build— RESULT:OK. TEST_CMS_URL=http://127.0.0.1:9993. QA_CMS_HOST_PORT=9993. Container perc-matrix-cms-h2.python3 docker/scripts/perc-devctl.py qa-health— RESULT:OK HTTP:200 HEALTH:healthy.python3 docker/scripts/perc-devctl.py qa-deploy-war-jars --restart-jetty— copiedperc-system-8.2.0-SNAPSHOT.jarandsitemanage-8.2.0-SNAPSHOT.jarinto/opt/Percussion/jetty/base/webapps/Rhythmyx/WEB-INF/lib, then in-cell StopJetty/StartJetty. No docker restart of the cell.qa-healthagain — RESULT:OK HTTP:200 HEALTH:healthy.python3 docker/scripts/perc-devctl.py qa-deploy-webui— copied the built modern SPA.qa-healthagain — RESULT:OK HTTP:200 HEALTH:healthy.cd modules/perc-qa-automation/frontend && rtk npm run test:surface -- --path tests/developer-display-format-label.spec.jswith TEST_CMS_URL, ADMIN_USERNAME=Admin, ADMIN_PASSWORD from qa-up, TEST_DB_TYPE=h2, TEST_PRODUCT=cms.assertClean: no pageerror; console errors limited to the allowed 400/403/409, 404, bootstrap/googleFonts, and favicon noise, and none of those fired)./opt/Percussion/jetty/base/logs/server.logduring the test window; log length 841 before, 843 after).python3 docker/scripts/perc-devctl.py qa-downafter the run.Pre-push local code review
Erlang review — PR #5445
Scope
Independent reading
displayFormatLabelWritesends{ label }only. The same trimmed label is"unchanged"and does not PUT. Cancel does not write.savedDisplayFormatLabelrejects a response whose name, description, columns, or communities differ, and it rejects a sent body that includes those fields. A blank label is sent as"".applyDisplayFormatLabelstores the internal name when the label is blank, becausePSDisplayFormat.setDisplayNamerejects empty. The client accepts""or that name and does not treat any other label as success.updateDisplayFormatLabelrefuses a blankDISPLAYNAME. An overlong label is HTTP 400 fromsetDisplayNameand does not save. HTTP 400, 403, and 409 restore the previous label and do not show Display format label saved. Vitest, the adaptor write test, the JDBC persist test, Playwright, andproduct-docs/8.2/admin/developer-display-formats.mdare present. No new filesystem path joins. No rule files.In-diff cognitive-complexity rows (
handleSave,handleLabelSave,savedDisplayFormatLabel) are suggestions. Preexistingpaths.hardcoded_seprows inPSUiDesignWsare outside the label diff. The LLM stage failed open (Ollama CUDA out of memory). Neither blocks.A case-only label change is a no-op in
setDisplayName(equalsIgnoreCasereturns before assign). The client then rejects the echo and keeps the previous label. That is not a data-loss bug.Recommendation: approve. May merge: yes.
CLI stdout (
mkd-code-review analyze --format markdown)Summary
Machine analysis found 11 finding(s), 0 bug(s).
Scope
Recommendation
approve
Gate
Issues
Issue 1 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 2 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 3 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 4 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 5 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 6 -- Severity: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 7 -- Severity: suggestion
complexity.cognitivearborist-metricshandleSavecognitive=11 (max 15), cyclomatic=17 (max 15)Issue 8 -- Severity: suggestion
complexity.cognitivearborist-metricshandleDescriptionSavecognitive=9 (max 15), cyclomatic=22 (max 15)Issue 9 -- Severity: suggestion
complexity.cognitivearborist-metricshandleLabelSavecognitive=7 (max 15), cyclomatic=18 (max 15)Issue 10 -- Severity: suggestion
complexity.cognitivearborist-metricssavedDisplayFormatLabelcognitive=17 (max 15), cyclomatic=16 (max 15)Issue 11 -- 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