Open lanitochka17 opened 1 month ago
Triggered auto assignment to @rlinoz (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: 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:
@lanitochka17 do you have the prod behavior by any chance?
Hmmm did we just add the pay as business to invoices?
We added it here https://github.com/Expensify/App/pull/44970, I think we should do something on the backend, let me check if we are already planning something.
There is a section for it in the doc, but I don't see an issue for it. Anyway I am removing the Web-E deploy blocker label then.
@cristipaval Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@cristipaval Huh... This is 4 days overdue. Who can take care of this?
Work in progress
Same, WIP.
^Auth PR up for review
PR still in review
Just resolved the conflicts in the Auth PR.
@VickyStash do you think you could work on this issue and do the App changes needed when the b2b room is archived?
Also, @jjcoffee would you like to be assigned as the C+ for it?
Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue.
@cristipaval Sure, I'd be happy to!
Just to note that I found a similar issue whilst testing another invoice rooms PR. If using the FAB to send an invoice personally to User B (so not using the inline +
to send to the workspace directly), the invoice will get added to User B's archived workspace invoice room.
A record already exists with this ID
, the request shows the same invoiceRoomReportID
for the room created in (2).Just to note that I found a similar issue whilst testing another invoice rooms PR. If using the FAB to send an invoice personally to User B (so not using the inline
+
to send to the workspace directly), the invoice will get added to User B's archived workspace invoice room.
- [User A] Send an invoice to User B (who has no workspaces)
- [User B] Pay invoice as business
- [User B] Delete created workspace
- [User A] Send another invoice to User B
- Note there is an API request error:
A record already exists with this ID
, the request shows the sameinvoiceRoomReportID
for the room created in (2).
@jjcoffee This bug is not replicable, because User B cannot pay as a business in the current main or staging. https://github.com/Expensify/App/pull/47862 introduces this feature. cc @VickyStash
I tested the bug and it is not replicable if the users are online and have a stable internet connection. The room was archived immediately once I deleted the workspace.
I could reproduce the "bug" when User A is offline. It is expected because User A does not receive the latest updates until User A goes online.
However, I tried to test the same flow with expense submission and I have the same error message when User A is offline.
So I would say that this is not a bug and this behavior is correct. WDYT @cristipaval?
Job added to Upwork: https://www.upwork.com/jobs/~01903a726126738169
Current assignee @jjcoffee is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to @isabelastisser (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Just to note that I found a similar issue whilst testing another invoice rooms PR. If using the FAB to send an invoice personally to User B (so not using the inline
+
to send to the workspace directly), the invoice will get added to User B's archived workspace invoice room.
- [User A] Send an invoice to User B (who has no workspaces)
- [User B] Pay invoice as business
- [User B] Delete created workspace
- [User A] Send another invoice to User B
- Note there is an API request error:
A record already exists with this ID
, the request shows the sameinvoiceRoomReportID
for the room created in (2).@jjcoffee This bug is not replicable, because User B cannot pay as a business in the current main or staging. #47862 introduces this feature. cc @VickyStash
Details
The bug is replicable in staging, but only if user B already has a workspace to pay as a business. This logic is presented in staging. The app attaches the archived room ID for further invoices.
@rezkiy37, sorry for the lack of context. I fixed the original bug in the backend.
So you need to:
So you need to:
- Send an invoice to a user who is an admin of their primary workspace
- Pay as business (so that the invoice room is upgraded to b2b)
- Now the receiver deletes the workspace and the invoice room is archived
- The sender now opens the invoice room (which is archived).
- The App crashes
@cristipaval The staging does not crash for me, but I can send invoices to the archived invoice room. I will fix this because the app attaches the incorrect reportID
.
https://github.com/user-attachments/assets/3bc7d1d1-351b-498a-9196-bd4bed85727a https://github.com/user-attachments/assets/45831def-a31b-4630-974c-d9d2edec82e2
Should we also fix the missing reportArchiveReasons.invoiceReceiverPolicyDeleted
translation as part of this? It causes a crash on dev and an ugly string that displays in the archived room.
@jjcoffee Yes, I am fixing it in the scope of the upcoming PR.
Actively working on the issue.
Hey! I will be OOO from 04.09 (afternoon) till 09.09. I will continue to work on this one once I am back.
Thanks for the update!
Hey! I've opened the PR (https://github.com/Expensify/App/pull/48275) for review because the app's side is ready. One small backend improvement left. Discussion in Slack.
@isabelastisser Looks like @cristipaval is on parental leave at the moment, is it possible to get another engineer assigned to review the PR?
@rlinoz, any chance you can review the PR since Cristi is on leave? TIA!
Sure, on it.
This has been deployed to prod https://github.com/Expensify/App/pull/48275#issuecomment-2347262503
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.18-7 Reproducible in staging?: Y Reproducible in production?: N 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): applausetester+kh050806@applause.expensifail.com Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
Send invoice option should be hidden for User A because User B is no longer an admin of his workspace
Actual Result:
User A can still send invoice to User B after User B deletes all the workspaces, which results in error.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/909d1f4c-e62b-487d-ab1d-50421fc3471b
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @