Repository navigation
[2.0] fix(ui): store the user name, not the display name, in Updated by workflow rules - #36056
Conversation
…kflow rules (#35998) The Check Entity Attributes rule builder searched users on displayName.keyword without mapping the option value, so the saved jsonLogic compared updatedBy against the display label. Entities store updatedBy as the user name, so the rule never matched. Show displayName, store name, as Owners/Reviewers do. (cherry picked from commit 3b193c1)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Changing Updated by rule values to usernames could alter which entities satisfy workflow conditions when names differ from display labels. Stores the user name rather than the display name for the Updated by workflow rule by mapping the dropdown option value to VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Backport of #35998 to
2.0(customer: LHV, reported on 2.0.5).Problem
In a Check Entity Attributes node, the Updated by rule's user dropdown searched on
displayName.keywordwithout mapping the option value, so the saved jsonLogic comparedupdatedByagainst the display label ({"==":[{"var":"updatedBy"},"aaron johnson"]}). Entities storeupdatedByas the user name, so the rule never matched.Fix
JSONLogicSearchClassBase—updatedByfield now usessourceFieldOptionType: { label: 'displayName', value: 'name' }, the same pattern Owners/Reviewers already use. Dropdown still shows the display name; the stored value is the user name.Backport notes
Clean cherry-pick of 3b193c1 except the test imports: dropped
getEntityLifecycleStages(not on 2.0) and added theEntityReferenceFieldsimport (already present on main).Tests
JSONLogicSearchClassBase.test.ts: 23/23 pass on 2.0; the newupdatedBytest fails with the fix reverted.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
The
Updated bydropdown now stores the user name while showing the display name.No actionable issues were found. Tests were not run during this review.
Reviews (2) · Last reviewed commit: "Merge branch '2.0' into anuj-kumary/back..." · Reviewed by Greptile