-
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 2024-01-04] [$500] [Wave 6: Workspace Chats] IOU-The request created is not displayed in the manual expense created page. #32796
Comments
Triggered auto assignment to @stephanieelliott ( |
Job added to Upwork: https://www.upwork.com/jobs/~010ae27c329f45f3a6 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Creating a new request in a submitted expense report will create the money request action on the chat report instead on the expense report. What is the root cause of that problem?Currently, we allow user to request money on a submitted expense report. Lines 3725 to 3728 in 3d56ca3
But after this PR, when we submit an expense report, we now clear the Lines 2819 to 2830 in 3d56ca3
What changes do you think we should make in order to solve the problem?Based on the new expected behavior, we want to hide the request money option if the expense report is not open, only for the paid policy. (add this to if (isMoneyRequestReport(report)) {
const isOwnExpenseReport = isExpenseReport(report) && isOwnPolicyExpenseChat;
if (isOwnExpenseReport && (policy.type === 'team' || policy.type === 'corporate')) {
return isDraftExpenseReport(report);
}
return (isOwnExpenseReport || isIOUReport(report)) && !isReportApproved(report) && !isSettled(report?.reportID);
} We will need to update the unit test too. |
I think this is expected result. |
@bernhardoj thanks for your proposal. Can you get confirmation on the PR you mentioned that this is our expectation, not a regression bug? Thanks
|
@mountiny do you mind taking a look at my comment here #32796 (comment)? Thanks |
Ah good point, if this is paid policy, then we create open reports, once submitted new requests should go to a new open report. So I think the solution would be that on the + icon in the non-open expense report on paid policy, we should hide the Request money option, you cannot request money from there but either from the workspace chat or from the Global create |
sorry @mountiny. Can you clarify what does "non-open expense report" mean? And will it apply also for free policy? Thanks |
If the expense report is not a draft report. so the stateNum and statusNum are not 0. Free policies, cannot have open reports so there we have logic that if the expense report is padi, you cannot request more money there |
Thanks @mountiny for clarifying. @bernhardoj can you update your solution with the new expectation in the GH description? Thanks |
@hoangzinh updated my proposal |
@bernhardoj I don't think your solution is correct. According to @mountiny comment here #32796 (comment), free policy cannot have open reports. In other the words |
@hoangzinh yes, but we have this condition Maybe we can switch the position of the condition. |
@bernhardoj My point is do we need to check |
Ah, I see. Do you mean we can just do it like this?
|
Yeah right, and If I understand correctly. We might just replace |
Hmm, if we replace |
^ look good from me. What do you think @mountiny? #32796 (comment) |
Looking swell lets go |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @hoangzinh |
Thanks @bernhardoj , please don't forget to keep your proposal up-to-date with your comment here #32796 (comment) |
@bernhardoj ah you're right, updated. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.18-8 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-01-04. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Hey, @bernhardoj do you find any regression PR causing this issue? I'm thinking this issue is a bug or an improvement. |
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~010ae27c329f45f3a6 |
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.10
Reproducible in staging?: Y
Reproducible in production?: Y
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: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
On paid policy, if the expense report is not in open state, do not show the
Request Money
option in the menu on the expense report. Only in case the expense report is open.This is only the case for paid policies
Actual Result:
The request created is not displayed in the manual expense created page.Request created is shown only in Worspace chat page.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6308623_1702285574223.az_recorder_20231209_015344.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: