-
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
[HOLD for payment 2025-02-05] [$250] Reports - Pay button does not change to Review button after unselecting category #55290
Comments
Triggered auto assignment to @stephanieelliott ( |
Triggered auto assignment to @aldo-expensify ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
@stephanieelliott FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
I mentioned this case here and it's NAB. We can keep the issue open to get some proposals on how to fix this though |
Job added to Upwork: https://www.upwork.com/jobs/~021879572765790104174 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pay button on the grouped expense does not change to Review button after unselecting the category. What is the root cause of that problem?When we create the expense without violation, the violation key doesn't exist in the snapshot data. Then when we update the category, the violation data isn't updated in the snapshot data because the snapshot data of this key doesn't exist. What changes do you think we should make in order to solve the problem?We can do the same way we do when we hold/unhold money request by updating the snapshot data manually.
Line 3654 in 28deaad
Line 3218 in 28deaad
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@nkdengineer your proposal looks good. @sobitneupane do you have any concerns about it? |
Why only these 2? There's a ton of commands that modify a transaction and I think all of them could create a violation.
Why would it not exist? Shouldn't we be passing hash in all callers of the method, so in all cases we update the search? Is it because we will only include the hash if we are on the search page and if so, wouldn't that mean that search will be outdated if you navigate to it later? |
Well,
Hmm interesting, I understood this one as if the violation exists in the hash, which might not if the transaction didnt initially have a violation (this is the current cause of the bug). But after re-reading the comment, I see what you mean and I think we need to clarify that. |
@luacmartins Yes, this function is used for all update flows. For optimistic violation, we only have tag/category violation so I think we can only pass the hash when updating the snapshot when we update tag/category. |
Yea, that makes sense. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.90-6 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 2025-02-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@sobitneupane @stephanieelliott @sobitneupane 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] |
@luacmartins, @sobitneupane, @stephanieelliott, @nkdengineer Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Just pending payment |
@sobitneupane requires payment through NewDot Manual Requests Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~021889214956264201541 |
Regression Test Proposal
Do we agree 👍 or 👎 |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
|
Regression test created: https://github.com/Expensify/Expensify/issues/469880 |
All paid! Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.86-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check (feature added in PR #54847)
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): Mac 15.0 / Chrome
Issue reported by: Applause Internal Team
Device used: applausetester+100106kh@applause.expensifail.com
App Component: Search
Action Performed:
Precondition:
Expected Result:
Pay button on the grouped expense should change to Review button because one of the expenses has violation.
Actual Result:
Pay button on the grouped expense does not change to Review button after unselecting the category.
It only shows Review button after refreshing the page.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @stephanieelliottThe text was updated successfully, but these errors were encountered: