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
[$500] Fab - Hidden not displayed on chat header & LHN when creating an IOU #36885
changed the title [-]Fab - Hidden not displayed on chat header & LHN when creating an IOU[/-][+][$500] Fab - Hidden not displayed on chat header & LHN when creating an IOU[/+]on Feb 20, 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:
Identify the pull request that introduced this issue and revert it.
I've noticed a discrepancy in behavior between production and staging. In production, the avatar of a user whom I've never chatted with before, but who has an ND account, is displayed in the header. However, in staging, the user's avatar is displayed as a skeleton in both the header and LHN.
After all above, because OpenReport isn't called, personal detail of new user isn't returned that makes Header show skeleton and LHN doesn't show Hidden
What changes do you think we should make in order to solve the problem?
We should update isOptimisticReport of all new report when we create a request money to false in successData so when requestMoney is complete, openReport API can be called.
@chiragsalian@flodnv we can't reproduce the original issue anymore, so I think we should remove deployBlocker label in this issue. And we also should consider to fix above bug that is mentioned by @dukenv0307
Sounds good, removing the blocker label and checking it off the checklist. I'd suggest to create another issue to tackle the bug that @dukenv0307 brought up.
Activity
melvin-bot commentedon Feb 20, 2024
Job added to Upwork: https://www.upwork.com/jobs/~015ea497aa7819e170
[-]Fab - Hidden not displayed on chat header & LHN when creating an IOU[/-][+][$500] Fab - Hidden not displayed on chat header & LHN when creating an IOU[/+]melvin-bot commentedon Feb 20, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (
External)github-actions commentedon Feb 20, 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:
melvin-bot commentedon Feb 20, 2024
Triggered auto assignment to @flodnv (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.kbecciv commentedon Feb 20, 2024
We think that this bug might be related to #vip-bills
CC @davidcardoza
5 remaining items
kbecciv commentedon Feb 20, 2024
I've noticed a discrepancy in behavior between production and staging. In production, the avatar of a user whom I've never chatted with before, but who has an ND account, is displayed in the header. However, in staging, the user's avatar is displayed as a skeleton in both the header and LHN.
Production
Recording.6036.mp4
Staging
Recording.6035.mp4
dukenv0307 commentedon Feb 22, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Hidden is not displayed in LHN & report header
What is the root cause of that problem?
When we create a money request with a new user, we have a report action is report preview action so
OpenReportAPI isn't called inReportScreenhereApp/src/pages/home/ReportScreen.js
Line 358 in 5f84683
And after
requestMoneyAPI is complete, we don't updateisOptimisticReportinsuccessDataasfalsesoOpenReportAPI isn't called hereApp/src/pages/home/report/ReportActionsView.js
Line 108 in 5f84683
After all above, because
OpenReportisn't called, personal detail of new user isn't returned that makesHeadershow skeleton and LHN doesn't showHiddenWhat changes do you think we should make in order to solve the problem?
We should update
isOptimisticReportof all new report when we create a request money tofalseinsuccessDataso whenrequestMoneyis complete,openReportAPI can be called.App/src/libs/actions/IOU.ts
Line 530 in 29ad878
And add
props.report. isOptimisticReportas a dependency hereApp/src/pages/home/report/ReportActionsView.js
Line 118 in 29ad878
What alternative solutions did you explore? (Optional)
NA
DylanDylann commentedon Feb 23, 2024
@dukenv0307 Do you suggest applying isOptimisticReport to report or reportAction? It seems your permalink taking us to success data of reportAction
dukenv0307 commentedon Feb 23, 2024
@DylanDylann I suggest to update the report data as the preview code in my proposal. The permalink is only linked to the successData.
DylanDylann commentedon Feb 23, 2024
But your permalink linked to success data or report action
dukenv0307 commentedon Feb 23, 2024
@DylanDylann I updated #36885, sorry for the confusion.
DylanDylann commentedon Feb 23, 2024
@dukenv0307 Could you reproduce this issue on the latest main?

I can't reproduce anymore. This is my log, It is different from RCA in your proposal
dukenv0307 commentedon Feb 23, 2024
@DylanDylann Also can't reproduce on the latest main but I found another in the latest main:
Create money request in offline show skeleton instead of the grey out report.
cc @greg-schroeder
Screen.Recording.2024-02-23.at.16.40.45.mov
DylanDylann commentedon Feb 23, 2024
@chiragsalian @flodnv we can't reproduce the original issue anymore, so I think we should remove deployBlocker label in this issue. And we also should consider to fix above bug that is mentioned by @dukenv0307
chiragsalian commentedon Feb 23, 2024
Sounds good, removing the blocker label and checking it off the checklist. I'd suggest to create another issue to tackle the bug that @dukenv0307 brought up.
DylanDylann commentedon Feb 25, 2024
@chiragsalian Reported bug here. Let's close this one