-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] GBR is shown in the LHN when there is nothing when opening the report #58536
Comments
Triggered auto assignment to @maddylewis ( |
Triggered auto assignment to @Beamanator ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
i can reproduce the bug. kindly assign it to me. you should be able to replicate the bug by importing my onyx state - Screen.Recording.2025-03-16.at.21.35.52.mov |
Assigned to Rushat, added status HIGH cuz it's "part of main flows and affect a subset of users", comment if ya disagree. |
ProposalPlease re-state the problem that we are trying to solve in this issue.GBR is shown in the LHN when there is nothing when opening the report What is the root cause of that problem?The GBP is displayed because, in
Lines 3191 to 3196 in 703cdf4
What changes do you think we should make in order to solve the problem?We should update the condition to explicitly check whether the Lines 3191 to 3196 in 703cdf4
if (optionOrReport.hasOutstandingChildRequest && transactions.length > 0 && !hasOnlyPendingTransactions) {
return {
reason: CONST.REQUIRES_ATTENTION_REASONS.HAS_CHILD_REPORT_AWAITING_ACTION,
reportAction: iouReportActionToApproveOrPay,
};
} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can write a unit test to ensure that the function does not return What alternative solutions did you explore? (Optional)N/A |
@linhvovan29546 we are checking for transaction length already, right? Line 3188 in 703cdf4
|
Yes, but that is not correct because the transactions are empty, and we expect all transactions to be pending.🤔 |
So, I think we must ignore that when the transactions are empty. we can remove the condition ( |
@rushatgabhane This is similar to what we implemented here where we have already checked App/src/components/MoneyReportHeader.tsx Line 221 in 703cdf4
|
@linhvovan29546 's proposal LGTM 🎀 👀 🎀 |
Current assignee @Beamanator is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
please add |
Job added to Upwork: https://www.upwork.com/jobs/~021901599228101593179 |
Current assignee @rushatgabhane is eligible for the External assigner, not assigning anyone new. |
📣 @linhvovan29546 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hi @Beamanator @rushatgabhane After running the test, I think my proposal may not be correct because it causes some unit tests to fail. I believe the root cause is that |
@linhvovan29546 hasOutstandingChildRequest Lines 7945 to 7960 in 96edca9
and hereLines 9041 to 9063 in 703cdf4
|
@rushatgabhane Can you check the |
@Beamanator could you please help us with how |
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:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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: @quinthar
Slack conversation (hyperlinked to channel name): #quality
Action Performed:
Expected Result:
Theres should be some expense with GBR to take action
Actual Result:
There's nothing to do even scrolling all the way to the top
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Please check the OP in the slack channel for onyx and screenshots
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: