You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugSomething is broken. Auto assigns a BugZero manager.EngineeringMonthlyKSv2Skip PaymentSkips all the payment process steps for an issue. Use it for fixed-price projects.
Version Number: 9.4.53-8 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#97726 Email or phone of affected tester (no customers):applausetester+1221dv@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Android 11 App Component: Workspace Settings
Action Performed:
Precondition:Log in with Expensifail account; Enable Rules., Enable "Attendee tracking";
Open Expensify app
Go to workspace settings > Rules > Field requirements
Click Create field requirement rule. (upgrade the workspace if prompted)
Select a category
Select "Don't require" for Description and Attendee
Select Don't require for Receipt and Itemized receipt
Click Save rule
Open the created rule
Expected Result:
The text at "Rules" column should be "Don't require description, don't require attendee, don't require receipt, don't require itemized receipt"
Actual Result:
The text at "Rules" column show "Don't require receipt, don't require itemized receipt" and no "Don't require description, Don't require attendee" available.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug (the Require Fields Rules feature and any fix live entirely in Expensify/App) Causing PR: #97726 is the melvin auto-assigned suspect, but investigation rules it out as the root cause (Low confidence it caused this symptom). The true cause is a pre-existing design/data-model limitation described below. Related Issues: none identified
Recommendation: DEMOTE
This is a pre-existing, cosmetic gap in the Rules-column summary text (it reproduces on production, so it is not a regression introduced by this staging deploy), and reverting the auto-assigned PR #97726 would not fix it. It should not block the deploy; the underlying gap needs a product/data-model decision, not a revert.
Assigned: no assignee change — the auto-assigned PR #97726 is not the causing PR, so I am not adding contributors on its basis. Labels: No changes. Keeping DeployBlockerCash pending a BugZero/product call on demotion (conservative: frontend feature, label was auto-applied). Do not revert #97726.
📋 Detailed Analysis
Where the "Rules" column text is built
The summary string in the Rules column is produced by, in order:
getRequireFieldsRuleDescriptionsForCategory only appends a clause when a field is actually required (isDescriptionRequiredForCategory, isAttendeesRequiredForCategory) or when a receipt field is waived (a distinct sentinel value DISABLED_MAX_EXPENSE_VALUE). There is no code path — and no translation key — that emits "Don't require description" or "Don't require attendee". Only doNotRequireReceipt / doNotRequireItemizedReceipt exist (en.ts#L7997-L7998).
The reason is the data model: Description and Attendees are stored as booleans (areCommentsRequired, areAttendeesRequired). Selecting "Don't require" simply means the flag is false — which is identical to the default "no rule" state and is not persistable as a distinct, displayable clause. This is even stated in the code comment at RequireFieldsRulesUtils.ts#L844-L851 and in the validation logic at #L530-L534: "Description/attendees 'Don't require' only clears a required flag and cannot create a waive rule."
In the exact repro, saveRequireFieldsRule confirms this: for Description/Attendees the effective value (DO_NOT_REQUIRE) equals the initial default, so the !== guards at #L368 and #L379 are false and nothing is persisted for those two fields. Only the Receipt/Itemized-receipt waives persist (via the sentinel), so only those two clauses appear in the summary — exactly matching the reported ACTUAL result.
PR #97726 ("Persist require fields tooltip dismissal and keep a direction always selected") changed only:
getRequireFieldsDisplayedSetting + new canClearRequireFieldsField — makes the boolean-backed toggles show "Don't require" pre-selected instead of blank.
Product-training tooltip dismissal persistence.
Reordered the Attendees row above Receipt on the rule page.
It did not touch getRequireFieldsRuleDescriptionsForCategory, formatRequireFieldsRuleDescriptions, or saveRequireFieldsRule. The summary builder and the boolean data model both predate the PR, and the doNotRequireDescription/Attendee keys never existed. The one indirect link is that #97726 now pre-selects "Don't require" on those toggles, which makes a user expect the summary to echo the selection — but the missing-clause behavior itself is pre-existing and reverting #97726 would not add the clauses.
gh pr diff 97726 confirms the summary/save functions are unchanged by the PR.
Reproducible on staging and production (per the report) → consistent with pre-existing feature behavior, not a fresh deploy regression.
Suggested resolution if pursued (frontend, follow-up — not a deploy blocker)
A real fix is a product/data-model decision, not a revert: to show "Don't require description/attendee" you would need to (a) add doNotRequireDescription/doNotRequireAttendee strings and emit them in getRequireFieldsRuleDescriptionsForCategory, and (b) resolve the ambiguity that areCommentsRequired: false is indistinguishable from "no rule" (otherwise every rule row would falsely display "Don't require description"). That warrants a scoped follow-up issue rather than blocking this deploy.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
@JS00001 Yes. Description and Attendees are booleans (areCommentsRequired / areAttendeesRequired), so “Don’t require” saves false, which is the same as having no rule, so there's nothing to summarize.
Receipt fields show up because waiving is stored as a separate value. To fix this properly, we'd need Auth to store an explicit “Don't require” state that can be distinguished from unset, then FE can add the two summary strings.
BugSomething is broken. Auto assigns a BugZero manager.EngineeringMonthlyKSv2Skip PaymentSkips all the payment process steps for an issue. Use it for fixed-price projects.
Activity
applause-bot commentedon Aug 14, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/4ababb45775fefaf1960db5304a714758c611022d6f4bdc6730767975a40420d
melvin-bot commentedon Aug 14, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #97726
melvin-bot commentedon Aug 14, 2026
@JS00001 @situchan you have been assigned to this deploy blocker because you reviewed the offending PR: #97726
github-actions commentedon Aug 14, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Aug 14, 2026
@Krishna2323 you have been assigned to this deploy blocker because you authored the offending PR: #97726
melvin-bot commentedon Aug 14, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Aug 14, 2026
🔍 Investigation Summary
Classification: Frontend bug (the Require Fields Rules feature and any fix live entirely in
Expensify/App)Causing PR: #97726 is the melvin auto-assigned suspect, but investigation rules it out as the root cause (Low confidence it caused this symptom). The true cause is a pre-existing design/data-model limitation described below.
Related Issues: none identified
Recommendation: DEMOTE
This is a pre-existing, cosmetic gap in the Rules-column summary text (it reproduces on production, so it is not a regression introduced by this staging deploy), and reverting the auto-assigned PR #97726 would not fix it. It should not block the deploy; the underlying gap needs a product/data-model decision, not a revert.
Assigned: no assignee change — the auto-assigned PR #97726 is not the causing PR, so I am not adding contributors on its basis.
Labels: No changes. Keeping
DeployBlockerCashpending a BugZero/product call on demotion (conservative: frontend feature, label was auto-applied). Do not revert #97726.📋 Detailed Analysis
Where the "Rules" column text is built
The summary string in the Rules column is produced by, in order:
createRequireFieldsTableItem→ buildsruleDescriptionatRequireFieldsRulesUtils.ts#L665-L666getRequireFieldsRuleDescriptionsForCategoryatRequireFieldsRulesUtils.ts#L552-L640formatRequireFieldsRuleDescriptionsatRequireFieldsRulesUtils.ts#L540-L550Root Cause
getRequireFieldsRuleDescriptionsForCategoryonly appends a clause when a field is actually required (isDescriptionRequiredForCategory,isAttendeesRequiredForCategory) or when a receipt field is waived (a distinct sentinel valueDISABLED_MAX_EXPENSE_VALUE). There is no code path — and no translation key — that emits "Don't require description" or "Don't require attendee". OnlydoNotRequireReceipt/doNotRequireItemizedReceiptexist (en.ts#L7997-L7998).The reason is the data model: Description and Attendees are stored as booleans (
areCommentsRequired,areAttendeesRequired). Selecting "Don't require" simply means the flag isfalse— which is identical to the default "no rule" state and is not persistable as a distinct, displayable clause. This is even stated in the code comment atRequireFieldsRulesUtils.ts#L844-L851and in the validation logic at#L530-L534: "Description/attendees 'Don't require' only clears a required flag and cannot create a waive rule."In the exact repro,
saveRequireFieldsRuleconfirms this: for Description/Attendees the effective value (DO_NOT_REQUIRE) equals the initial default, so the!==guards at#L368and#L379are false and nothing is persisted for those two fields. Only the Receipt/Itemized-receipt waives persist (via the sentinel), so only those two clauses appear in the summary — exactly matching the reported ACTUAL result.Why PR #97726 is not the cause
PR #97726 ("Persist require fields tooltip dismissal and keep a direction always selected") changed only:
getRequireFieldsDisplayedSetting+ newcanClearRequireFieldsField— makes the boolean-backed toggles show "Don't require" pre-selected instead of blank.It did not touch
getRequireFieldsRuleDescriptionsForCategory,formatRequireFieldsRuleDescriptions, orsaveRequireFieldsRule. The summary builder and the boolean data model both predate the PR, and thedoNotRequireDescription/Attendeekeys never existed. The one indirect link is that #97726 now pre-selects "Don't require" on those toggles, which makes a user expect the summary to echo the selection — but the missing-clause behavior itself is pre-existing and reverting #97726 would not add the clauses.Verification
src/libs/RequireFieldsRulesUtils.ts(summary builder),src/languages/en.ts(missing translation keys).gh pr diff 97726confirms the summary/save functions are unchanged by the PR.Suggested resolution if pursued (frontend, follow-up — not a deploy blocker)
A real fix is a product/data-model decision, not a revert: to show "Don't require description/attendee" you would need to (a) add
doNotRequireDescription/doNotRequireAttendeestrings and emit them ingetRequireFieldsRuleDescriptionsForCategory, and (b) resolve the ambiguity thatareCommentsRequired: falseis indistinguishable from "no rule" (otherwise every rule row would falsely display "Don't require description"). That warrants a scoped follow-up issue rather than blocking this deploy.Krishna2323 commentedon Aug 14, 2026
@JS00001 @dubielzyk-expensify @JmillsExpensify this is expected for now, but lets keep it open for tracking if we need to make some changes to that?
19 remaining items
JS00001 commentedon Sep 3, 2026
@Krishna2323 this is still reproducible, can you work on a fix please
situchan commentedon Sep 3, 2026
Latest update ^
JmillsExpensify commentedon Sep 4, 2026
We should address it as polish when it have time. Right Jack?
JS00001 commentedon Sep 4, 2026
@Krishna2323 is this one because we dont store some of the values in the 'don't state?
JS00001 commentedon Sep 23, 2026
Bump @Krishna2323
melvin-bot commentedon Sep 24, 2026
This issue has not been updated in over 15 days. @JS00001, @Krishna2323, @situchan eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Krishna2323 commentedon Sep 27, 2026
Sorry for missing this one and for the delay.
@JS00001 Yes. Description and Attendees are booleans (
areCommentsRequired/areAttendeesRequired), so “Don’t require” savesfalse, which is the same as having no rule, so there's nothing to summarize.Receipt fields show up because waiving is stored as a separate value. To fix this properly, we'd need Auth to store an explicit “Don't require” state that can be distinguished from unset, then FE can add the two summary strings.
JS00001 commentedon Sep 28, 2026
Yeahh I dont think this is really worth the BE work right now. @JmillsExpensify is it fine with you if we close this for now
JmillsExpensify commentedon Sep 29, 2026
Yeah that's fine with me.