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
Report field-List value added & saved in offline is not greyed out #47383
👋 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.
What changes do you think we should make in order to solve the problem?
We can add a pendingActions array for the report field list value that is the same pattern with disabledOptions array. When we add or update or delete the report field list value we will update the pendingActions accordingly.
Get the pendingActions of the list value here. If we're creating the report field the pendingActions will be an empty array
Finally, add pendingAction for the value item here
pendingAction: pendingActions?.[index];
What alternative solutions did you explore? (Optional)
@IuliiaHerets, to just confirm something - was this issue was the result of testing from a particular PR? or was found during our standard regression test?
Activity
melvin-bot commentedon Aug 14, 2024
Triggered auto assignment to @NikkiWines (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 14, 2024
Triggered auto assignment to @VictoriaExpensify (
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.github-actions commentedon Aug 14, 2024
👋 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:
IuliiaHerets commentedon Aug 14, 2024
We think that this bug might be related to #vip-vsb
dominictb commentedon Aug 14, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
List value added & saved in offline is not greyed out.
What is the root cause of that problem?
When we add the report field list value, we only update the list value and the disable option list.
App/src/libs/actions/Policy/ReportField.ts
Lines 435 to 436 in b7f7f1b
What changes do you think we should make in order to solve the problem?
We can add a
pendingActionsarray for the report field list value that is the same pattern withdisabledOptionsarray. When we add or update or delete the report field list value we will update thependingActionsaccordingly.Get the
pendingActionsof the list value here. If we're creating the report field thependingActionswill be an empty arrayFinally, add
pendingActionfor the value item hereWhat alternative solutions did you explore? (Optional)
Nodebrute commentedon Aug 14, 2024
@NikkiWines @VictoriaExpensify Issue is not reproducible on the latest main.
Screen.Recording.2024-08-14.at.11.50.36.AM.mov
NikkiWines commentedon Aug 14, 2024
@IuliiaHerets, to just confirm something - was this issue was the result of testing from a particular PR? or was found during our standard regression test?
NikkiWines commentedon Aug 14, 2024
Also based on this PR it seems the behavior is expected and that the values should not be greyed out.
cc: @rezkiy37 @shubham1206agra @mountiny to confirm this is the behavior we want🙏
shubham1206agra commentedon Aug 14, 2024
Yes, this is the new behaviour now. Please update the tests and close this issue.
mountiny commentedon Aug 14, 2024
@NikkiWines Correct this is now expected. @IuliiaHerets @kavimuru @lanitochka17 Can you please make sure the regression tests are updated to cover this change?
NikkiWines commentedon Aug 15, 2024
Closing as this is a non-issue