Repository navigation
fix(ui): store the user name in Updated by workflow rules - #35998
Conversation
…kflow rules 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.
❌ 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 1 closed / 1 findings🟡 Medium risk · Changing Updated by rules to store usernames fixes new matches, but previously saved display-name rules may still fail until users reselect users. Switches the Updated by rule field to store the user ✅ 1 closedClosed: Edge Case: Users sharing a display name collapse to one selectable username
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 |
|
🚦 Removed from the merge queue —
|
…kflow rules (#35998) (#36056) 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)



Describe your changes:
Reported via customer support ticket 21780. There is no GitHub issue.
In the governance workflow editor, the Updated by rule in a Check Condition node (
checkEntityAttributesTask) never matched. The user dropdown searched ondisplayName.keywordand didn't map the option value, so the saved rule held the display label:{"==":[{"var":"updatedBy"},"aaron johnson"]}Entities store
updatedByas the user name (aaron_johnson0,amaka.osakwe), so the comparison was always false. When the customer PATCHed the workflow definition with usernames, the rule worked.This fix makes
updatedByusesourceFieldOptionType, the same way the Owners and Reviewers fields next to it already do. The dropdown still showsdisplayName, but the stored value is nowname.nameis used rather thanfullyQualifiedNamebecause a username with a dot gets quoted in its FQN ("amaka.osakwe"), and that would never equal the rawupdatedByvalue.Existing workflows: rules saved before this fix still hold the display name. Users need to re-pick the user in the rule and save. There's no migration because display names aren't unique and can't be reliably mapped back to usernames.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
src/utils/JSONLogicSearchClassBase.test.ts. The new test runs the realautocompleteagainst a mocked search response and asserts the option{ title: 'aaron johnson', value: 'aaron_johnson0' }. It fails without the fix, and all 29 tests in the file pass with it.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
Not run locally. The bad payload was reproduced on release-2-0 by validating a workflow with an Updated by rule; see the support ticket.
UI screen recording:
Not applicable — standalone bug fix to a rule-builder field config; no UI change is visible (the dropdown labels are unchanged).
Checklist:
Fixes <issue-number>: <short explanation>(no GitHub issue — support ticket)Fixes #<issue-number>above.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Changes the Updated by dropdown to show
displayNamewhile storing the user’s rawname.Reviews (1) · Last reviewed commit: "Merge branch 'main' into anuj-kumary/upd..." · Reviewed by Greptile