fix(ui): strip trailing _id suffix from history field labels (PMS-370) #193
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!193
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pms-370-strip-id-suffix-in-history-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The change-history feed renders audit-log entries by humanising the raw column name in the
fieldvalue: snake_case to spaces, first letter capitalised. Foreign-key column names likestatus_id,priority_id,assigned_to_id,company_id,asset_type_idtherefore came out as "Status id", "Priority id", "Assigned to id", which the PMS-359 inline-edit verifier flagged as a regression in label quality. The audit-log payload is correct (the raw column is the right thing to store in the audit row), only the display step needs to strip the_idsuffix before formatting. Updatedtitle_fieldin tickets/assets/projects pages so every FK column inherits the cleanup without a per-column allow-list.#PMS-370