-
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-06-11] Send invoice - App crashes when sending invoice via link when there's no workspace #41305
Comments
Triggered auto assignment to @pecanoro ( |
Triggered auto assignment to @puneetlath ( |
👋 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:
|
@puneetlath 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. |
We think this issue might be related to the #vip-bills. |
Production Screen_Recording_20240430_115352_New.Expensify.mp4 |
I don't think this needs to be a deploy blocker, but @VickyStash do you want to look into it? |
@puneetlath I'll take a look in a bit 👌 But I'm not sure if I can deal with it today (I'm going to be OOO 1st-8th of May) |
Ok, I'm going to assign @cristipaval and @davidcardoza for now to let y'all figure out how to handle 😄 |
This feels like a good cleanup issue so marking it as Low. I can't imagine a user actually pasting in the send invoice URL in a real flow. So I think if you have other urgent work, I'd prioritize that @VickyStash. But I agree we should clean this up. |
NOTE: I'll be OOO 1-8th of May 🌴 |
@cristipaval can we source another contributor to lead this? |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when sending invoice via link when there's no workspace. What is the root cause of that problem?If there's no workspace, then App/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js Lines 194 to 203 in 2f5173c
The logic in
What changes do you think we should make in order to solve the problem?Option 1: Update the isAllowedToCreateRequest condition to below:
Also, wrap the existing code in MoneyTemporaryForRefactorRequestParticipantsSelector with check to ensure that the primaryPolicy.id is used only if primaryPolicy is defined:
To add the same functionality in other pages, we'll need to add FullPageNotFoundView in pages like IOURequestStepConfirmation, IOURequestStepParticipants, IOURequestStepAmount, IOURequestStepDescription etc,. as well with the same condition as the start page. We can move isAllowedToCreateRequest logic to a common utils method. We'll need to pass the report, policy, iouType and allPolicies to the common method. (Code can be polished)
Option 2: We can use this in
This would let us have the logic in a single place for all the steps. We'll get policy and allPolicies via onyx:
We need to update Note that though start page doesn't have We can also move this logic to a new Then, while exporting, it will be like this:
Also, wrap the existing code in MoneyTemporaryForRefactorRequestParticipantsSelector with check to ensure that the primaryPolicy.id is used only if primaryPolicy is defined:
|
I am sorry for the confusion that I created with that comment. I misunderstood the repro steps. |
I like the @tienifr solution to expand the |
This issue has not been updated in over 15 days. @davidcardoza, @cristipaval, @shubham1206agra, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 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-06-11. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Issue is ready for payment but no BZ is assigned. @lschurr you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
Payment Summary
BugZero Checklist (@lschurr)
|
@shubham1206agra @tienifr - please accept the offers sent today so that we can pay and close :) |
Thanks @lschurr, I accepted it |
@lschurr Accepted |
All set! |
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: 1.4.68-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Precondition:
Expected Result:
In Step 4, app should display not here link.
Actual Result:
In Step 4, user is able to proceed with send invoice flow.
After selecting participant in Step 6, app crashes. On web, it shows console error.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6466241_1714456420346.Screen_Recording_20240430_134316_One_UI_Home.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @rojiphilThe text was updated successfully, but these errors were encountered: