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
{{ message }}
Repository navigation
[Due for payment 2025-04-08] [$250] [Offline] List - On disabling all list values, expense page shows dropdown selected when turn online. #56949
Version Number: V9.0.99-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both Issue reported by: Applause Internal Team Device used: Redmi note 10s android 13 App Component: Workspace Settings
Action Performed:
Launch app
Go to workspace settings - more features - enable report fields
Add field and create a list type with 2 list values but on confirmation page go offline and save it
Open list created and disable all list values
Go to workspace chat
Create a expense
Open the expense and go online
Note the list field on told and open it
Expected Result:
On disabling all list values, expense page shows must not shown dropdown selected when turn online.
Actual Result:
On disabling all list values, expense page shows dropdown selected when turn online.
Then when disabling any option in dropdown report field, we clone the previous field list data which contains value: 'dropdown' key - value and send it to BE:
changed the title [-]List - On disabling all list values, expense page shows dropdown selected when turn online.[/-][+][Offline] List - On disabling all list values, expense page shows dropdown selected when turn online.[/+]on Feb 19, 2025
@mallenexpensify Can you please assign me as C+ as I was able to reproduce this #56949 (comment)? Then I can look further reviewing the proposals to solve this issue.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not needed
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Have a workspace.
Test:
Enable report fields.
Add field and create a list type with 2 list values but on confirmation page go offline and save it
Activity
melvin-bot commentedon Feb 17, 2025
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.daledah commentedon Feb 18, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-02-19 04:00:53 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
dropdownoptimistically if the field type isdropdown:App/src/libs/actions/Policy/ReportField.ts
Line 187 in bf68759
value: 'dropdown'key - value and send it to BE:App/src/libs/actions/Policy/ReportField.ts
Line 388 in bf68759
lead to in BE side, we stored the report field which has
value: 'dropdown'.App/src/libs/ReportUtils.ts
Line 3377 in bf68759
so finally, the dropdown field has
dropdownas the value. That value is displayed as mentioned in the bug.What changes do you think we should make in order to solve the problem?
App/src/libs/actions/Policy/ReportField.ts
Line 187 in bf68759
or we can remove the
valuekey when cloning the report field:App/src/libs/actions/Policy/ReportField.ts
Line 388 in bf68759
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
Besides the main solution, there is a few additional improvements:
App/src/components/ReportActionItem/MoneyReportView.tsx
Line 155 in b504588
interactivetofalseifhasEnableOptionisfalse:App/src/components/ReportActionItem/MoneyReportView.tsx
Line 154 in b504588
fieldValueis empty:[-]List - On disabling all list values, expense page shows dropdown selected when turn online.[/-][+][Offline] List - On disabling all list values, expense page shows dropdown selected when turn online.[/+]mallenexpensify commentedon Feb 19, 2025
@daledah , I'm assuming you're able to reproduce, is that correct?
I'll get to soon (likely next week), not the highest value issue.
MelvinBot commentedon Feb 19, 2025
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
parasharrajat commentedon Feb 19, 2025
I can reproduce this with the steps mentioned in the OP.
19.02.2025_13.19.12_REC.mp4
melvin-bot commentedon Feb 24, 2025
@mallenexpensify Huh... This is 4 days overdue. Who can take care of this?
parasharrajat commentedon Feb 24, 2025
@mallenexpensify Can you please assign me as C+ as I was able to reproduce this #56949 (comment)? Then I can look further reviewing the proposals to solve this issue.
58 remaining items
strepanier03 commentedon Apr 4, 2025
@isabelastisser - I am going OoO April 5 and returning April 14. This will be due for payment while I'm away.
The payment summary is above and on hold until the payment date and checklist is complete.
Thanks so much for finishing it up!
parasharrajat commentedon Apr 4, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/44275/files#r2029456945
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not needed
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
isabelastisser commentedon Apr 7, 2025
Not overdue, payments are due tomorrow.
isabelastisser commentedon Apr 8, 2025
Payment summary
$250 - @parasharrajat via NewDot Manual Requests
PENDING$250 - @daledah via Upwork automatic offer (Contributor) - Paid in Upworl.
isabelastisser commentedon Apr 8, 2025
all set!
parasharrajat commentedon May 23, 2025
Payment requested as per #56949 (comment)
JmillsExpensify commentedon May 29, 2025
$250 approved for @parasharrajat