fix(ui): strip trailing _id suffix from history field labels (PMS-370) #193

Merged
YousifShkara merged 1 commit from fix/pms-370-strip-id-suffix-in-history-labels into main 2026-06-16 09:29:34 +02:00
Owner

The change-history feed renders audit-log entries by humanising the raw column name in the field value: snake_case to spaces, first letter capitalised. Foreign-key column names like status_id, priority_id, assigned_to_id, company_id, asset_type_id therefore 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 _id suffix before formatting. Updated title_field in tickets/assets/projects pages so every FK column inherits the cleanup without a per-column allow-list.

#PMS-370

The change-history feed renders audit-log entries by humanising the raw column name in the `field` value: snake_case to spaces, first letter capitalised. Foreign-key column names like `status_id`, `priority_id`, `assigned_to_id`, `company_id`, `asset_type_id` therefore 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 `_id` suffix before formatting. Updated `title_field` in tickets/assets/projects pages so every FK column inherits the cleanup without a per-column allow-list. #PMS-370
fix(ui): strip trailing _id suffix from history field labels (PMS-370)
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 58s
470de0f5de
The change-history feed renders audit-log entries by humanising the raw column name in the `field` value: snake_case to spaces, first letter capitalised. Foreign-key column names like `status_id`, `priority_id`, `assigned_to_id`, `company_id`, `asset_type_id` therefore 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 `_id` suffix before formatting. Updated `title_field` in tickets/assets/projects pages so every FK column inherits the cleanup without a per-column allow-list.

#PMS-370
YousifShkara deleted branch fix/pms-370-strip-id-suffix-in-history-labels 2026-06-16 09:29:34 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!193
No description provided.