-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-11-21] [$250] Inbox showing GBR when there’s a report with RBR #50927
Comments
Triggered auto assignment to @alexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inbox showing GBR when there’s a report with RBR What is the root cause of that problem?We are only recalculating chat tab rbr value for transactionViolation and activeWorkspaceID changes here App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Lines 72 to 73 in 4a25c36
But inside getChatTabBrickRoad we use the status of allReports to calculate the value of rbr. But, allReports will not be available immediately after a user clears caches/onyx data so the rbr value will be calculated without the list of reports which will result wrong value and there is no recalculation held when the reports are loaded in onyx so it will remain green until we reload the page What changes do you think we should make in order to solve the problem?We should subscribe to reports collection and use it in the calculation of rbr value App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Lines 69 to 73 in 4a25c36
App/src/libs/Navigation/AppNavigator/createCustomPlatformStackBottomTabNavigator/BottomTabBar.tsx Lines 76 to 79 in 4a25c36
App/src/libs/WorkspacesSettingsUtils.ts Lines 122 to 123 in 4a25c36
It's not a must to use the useOnyx allreports data in What alternative solutions did you explore? (Optional) |
I just want to clarify that there are two problems here:
To replicate the issue you can also do a fresh login instead of clearing onyx cache. I had to fix the 1st problem on one of my debug mode PRs for it to work properly but the PR hasn't been merged yet (link to the fix). If you agree, this bug could be just focused on the 2nd problem. Otherwise I'll discard the fix I did on my PR. |
Edited by proposal-police: This proposal was edited at 2024-10-17 09:47:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Inbox has no GBR or RBR indicator until the page is refreshed What is the root cause of that problem?
App/src/libs/WorkspacesSettingsUtils.ts Lines 66 to 78 in 77a37a1
What changes do you think we should make in order to solve the problem?
App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Lines 71 to 73 in bcc6263
to make sure the reports, reportActions data are updated immediately. What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021847128366508796109 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mkhutornyi ( |
@mkhutornyi - can you please identify if one of these proposals will fix this issue? Thanks! Heads up, I will be offline until Tuesday, October 22, 2024, and will not actively watch over this GitHub during that period.If this GitHub requires an urgent update, please ask for help in the #expensify-open-source Slack Room. If the inquiry can wait, I'll review it when I return online. |
The issue is very similar to #50364 |
As mentioned by @pac-guerreiro, this bug is to fix:
|
@alexpensify, @mkhutornyi Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
reviewing 2 proposals |
This was already fixed in #49962
This is bug to fix here. @truph01 can you please explain why the bug is gone after at least one RBR is opened manually in RCA? |
As you can see, we are only considering the case the report is one transaction report: App/src/libs/WorkspacesSettingsUtils.ts Lines 66 to 78 in 77a37a1
And because the one transaction report data can only be available after we call OpenReport for the expense report, so the bug is gone after at least one RBR is opened. |
@truph01 I am confused. Are you saying that this bug happens only when one transaction report has RBR? |
No, that's not what I meant. To clarify, the bug occurs in both cases—whether it's a single transaction report or not. However, when it's a single transaction report, the bug disappears after visiting the expense report page, which is what we are discussing. |
ok so if it's not a single transaction report, bug won't disappear even after refresh? |
Yes. If it's not a single transaction report, bug won't disappear even after refresh or visit any RBR report. |
Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @mkhutornyi 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@truph01 - any update for the PR here? Thanks! |
@tgolen, @alexpensify, @mkhutornyi, @truph01 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Update: PR is in review! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.61-3 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-11-21. 🎊 For reference, here are some details about the assignees on this issue:
|
@tgolen @alexpensify @mkhutornyi / @truph01 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payouts due: 2024-11-21
Upwork job is here. |
Everyone has been paid via Upwork. @mkhutornyi - can you please complete the checklist and confirm if there is a regression test? Thanks! |
@tgolen, @alexpensify, @mkhutornyi, @truph01 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Closing |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.49-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @pac-guerreiro
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1728665408536049
Action Performed:
Expected Result:
Should have same logic that should display RBR in inbox
Actual Result:
The inbox indicator doesn’t show an updated color until the page is refreshed and it shows the wrong color until a report is fully loaded
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Recording.665.mp4
Screen.Recording.2024-10-16.at.15.48.24.mov
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: