Repository navigation
fix: EditorHost numeric field save (#4752) - #4757
Merged
Merged
Conversation
sys_Number / integer / float values persist through the item fields PUT. Non-numeric and out-of-range values are HTTP 400 and are not saved. View mode is read-only. > Co-Authored by Grok Build 1.0.40 using grok-4.6 with agent night-issue-prs.
> Co-Authored by Grok Build 1.0.40 using grok-4.6 with agent night-issue-prs.
Record the pre-push mkd-code-review report for EditorHost numeric fields. > Co-Authored by Grok Build 1.0.40 using grok-4.6 with agent night-issue-prs-erlang.
Collaborator
Author
|
LGTM. Independent Erlang review (mkd-code-review 0.1.18, persona erlang 0.1.1, gate advisory). No in-diff bugs. GitHub rejected same-login APPROVE; this comment is the LGTM. Full CLI report is in the PR body under Pre-push local code review and in
|
This was referenced Sep 23, 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
Parent: #4532. Slice #4752.
EditorHost saves a numeric content field (
sys_Number, ordataTypeinteger/number/float) throughPUT /services/itemmanagement/item/fields/{id}. A valid in-range value is stored. Non-numeric text and out-of-range values are rejected before save and, if they reach the server with a numericdataType, return HTTP 400 without writing. View mode makes the input read-only and hides Save.Operator: Grok: night-issue-prs (model grok-4.6)
Test plan
PSItemEditorNumericTestandPSItemServiceSaveEditorFieldsTest(valid save, HTTP 400, nocontentItemDao.save)numericField.test.ts,controlKinds.test.ts,EditorHost.test.tsx(70 tests in those files; numeric save, range, 400 mapping, view read-only)tests/editor-host-numeric-fields.spec.js— 4 passed on H2 QAminimum/maximum,min/max)Product documentation
product-docs/—product-docs/8.2/admin/content-explorer.md(numeric row)Pre-PR Maven
projects/sitemanage,WebUIcd projects/sitemanage && JAVA_HOME=JDK21 rtk mvn clean install— BUILD SUCCESS. Tests run: 2991, Failures: 0, Errors: 0, Skipped: 125 (first install). Re-run after the message-text commit:rtk mvn clean install -qexit 0.cd WebUI && JAVA_HOME=JDK21 rtk mvn clean install— BUILD SUCCESS. Tests run: 69, Failures: 0.UI proof (C5)
python3 docker/scripts/perc-devctl.py qa-up— TEST_CMS_URL=http://127.0.0.1:9993 (free port printed by qa-up)qa-healthRESULT:OK HEALTH:healthyqa-deploy-webuiandqa-deploy-war-jarsRESULT:OK, thenqa-healthRESULT:OK againnpm run test:surface -- --path tests/editor-host-numeric-fields.spec.js— 4 passedqa-downafter the runPre-push local code review
Erlang review — PR #4757
Scope
numericFieldProblem(suggestion), not a bug. Preexisting path heuristics on the NUL message andPSItemServiceare out of diff (the mapper line is a quote character, not a filesystem join). Server rejects non-numeric and out-of-range values as HTTP 400 beforeprepareForEditwhen the PUT carriesdataType. Client save blocks the same cases. Not a rule-file change.CLI stdout (
mkd-code-review analyze --format markdown)Summary
Machine analysis found 10 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: bug
paths.hardcoded_seppaths.hardcoded_sepIssue 8 -- Severity: bug
complexity.cognitivearborist-metricsclassifyEditorControlcognitive=22 (max 15), cyclomatic=37 (max 15)Issue 9 -- Severity: suggestion
complexity.cognitivearborist-metricsnumericFieldProblemcognitive=23 (max 15), cyclomatic=18 (max 15)Issue 10 -- Severity: suggestion
complexity.cognitivearborist-metricssaveEditorFieldscognitive=17 (max 15), cyclomatic=20 (max 15)