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
[HOLD for payment 2024-02-07] Private note - Private note opened from deeplink in offline shown empty #34270
Version Number: 1.4.24-0 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
👋 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.
as you can notice we only check the existence of the report.isLoadingPrivateNotes prop we dont check if the value is true or false
and since in the optimistic value we set the report.isLoadingPrivateNotes to true then the isLoadingPrivateNotes value will be defined and the isPrivateNotesFetchTriggered will be true in this case and thus the loader indicator disappears.
the issue here occurs because at the optimistic stage the data is not yet fetched from the database so the report data will not contain the privateNote
this happens
What changes do you think we should make in order to solve the problem?
we should remove the loader indicator only when the isLoadingPrivateNotes is false meaning that the fetching process is finished
changed the title [-] Private note - Private note opened from deeplink in offline shown empty[/-][+][HOLD for payment 2024-02-07] Private note - Private note opened from deeplink in offline shown empty[/+]on Jan 31, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
Activity
github-actions commentedon Jan 10, 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 Jan 10, 2024
Triggered auto assignment to @stitesExpensify (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.lanitochka17 commentedon Jan 10, 2024
Production:
Bug6337960_1704907498405.Production_Recording__583.mp4
abzokhattab commentedon Jan 10, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
when opening the deeplink in offline and connecting to the ne twork .. an empty private note appear
What is the root cause of that problem?
the loader indicator is not shown in case the
isPrivateNotesFetchTriggeredisfalseApp/src/pages/home/report/withReportAndPrivateNotesOrNotFound.js
Line 79 in 48ab68e
here we can find the
isPrivateNotesFetchTriggeredvar initialization:App/src/pages/home/report/withReportAndPrivateNotesOrNotFound.js
Line 63 in 48ab68e
as you can notice we only check the existence of the
report.isLoadingPrivateNotesprop we dont check if the value istrueorfalseand since in the optimistic value we set the
report.isLoadingPrivateNotesto true then theisLoadingPrivateNotesvalue will be defined and theisPrivateNotesFetchTriggeredwill be true in this case and thus the loader indicator disappears.the issue here occurs because at the optimistic stage the data is not yet fetched from the database so the report data will not contain the privateNote
this happens
What changes do you think we should make in order to solve the problem?
we should remove the loader indicator only when the
isLoadingPrivateNotesisfalsemeaning that the fetching process is finishedthus we can introduce this new variable:
and update the loader indicator to:
Result
Screen.Recording.2024-01-10.at.9.21.48.PM.mov
thienlnam commentedon Jan 11, 2024
I don't think this needs to be a blocker - since the PR was merged recently, @hungvu193 and @jjcoffee can address
jjcoffee commentedon Jan 12, 2024
@hungvu193 Are you able to look into this?
13 remaining items
[-] Private note - Private note opened from deeplink in offline shown empty[/-][+][HOLD for payment 2024-02-07] Private note - Private note opened from deeplink in offline shown empty[/+]melvin-bot commentedon Jan 31, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 31, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-02-07. 🎊
melvin-bot commentedon Feb 7, 2024
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
melvin-bot commentedon Feb 9, 2024
@stitesExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
jjcoffee commentedon Feb 9, 2024
@stitesExpensify We're good to close this!
stitesExpensify commentedon Feb 12, 2024
Great, Thanks!