-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Expense Preview - RBR is still displayed after deleting workspace. #57273
Comments
Triggered auto assignment to @maddylewis ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-22 13:49:57 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Expense Preview - RBR is still displayed after deleting workspace What is the root cause of that problem?There is no check if policy is deleted or not to show RBR:
What changes do you think we should make in order to solve the problem?Add a check if policy is valid before checking errors:
using What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The RBR still presents on the report preview after deleting workspace. What is the root cause of that problem?The RBR shows in this case when there is a violation. When we delete a workspace, the violation is still there. When we open the IOU/expense report, the OpenReport clears the violation, so the RBR doesn't show anymore. What changes do you think we should make in order to solve the problem?Optimistically remove the violation of any workspace expense report when the workspace is deleted. App/src/libs/actions/Policy/Policy.ts Lines 338 to 341 in 0b6d1a0
But from what I observed, if the violation is hold, it won't be removed from the BE. Hold violation type is warning, so I guess we can conditionally remove the violation with a type of What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can test having a workspace and an expense report with an expense that has violation. When deleting the workspace, we need to assert that the violation is removed optimistically. |
Job added to Upwork: https://www.upwork.com/jobs/~021894060604469383375 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
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.1.4-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #57031
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows Windows 11 - Chrome, Samsung Galaxy A13 - Android 14, Wi-Fi, Chrome
App Component: Chat Report View
Action Performed:
Expected Result:
RBR should also disappear from the expense preview
Actual Result:
RBR is still shown in the expense preview of deleted expenses. it disappears after opening it.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6750516_1740184648199.bandicam_2025-02-22_03-36-27-332.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sobitneupaneThe text was updated successfully, but these errors were encountered: