-
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
[$500] Request money - Merchant field is cleared after changing receipt in confirmation page #32123
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01bcba32334ea8b85b |
Triggered auto assignment to @peterdbarkerUK ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Request money - Merchant field is cleared after changing receipt in confirmation page What is the root cause of that problem?We are resetting the merchant of the Lines 2901 to 2902 in 70813db
What changes do you think we should make in order to solve the problem?Merchant is reset whenever we create a new MoneyRequest here Lines 2824 to 2825 in 7c16666
to default merchant Lines 132 to 133 in 7c16666
So after the user went through the creation process and changed the merchant value manually resetting the merchant the user already inserted on receipt uploading is unexpected behavior for the user experience so we shouldn't reset the merchant uncoditionally here Lines 2901 to 2902 in 70813db
But what we should do is clear the merchant value only on the first receipt selection and if the merchant value is not equal to the default merchant value we reset in
and Change
What alternative solutions did you explore? (Optional)We can also stop resetting the merchant on setting Receipt if we don't have a special reason to clear merchant on Receipt selection 👍
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Request money - Merchant field is cleared after changing receipt in confirmation page What is the root cause of that problem?The RCA is here Line 2901 in 935608b
What changes do you think we should make in order to solve the problem?We just need to reset merchant at the first time users upload receipt like what we did here, when they upload receipt later, we should not reset merchant. To do that we should check if the current receipt path is empty or not, if it's empty, set merchant to empty, otherwise keep the previous merchant
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Request money - Merchant field is cleared after changing receipt in confirmation page What is the root cause of that problem?Line 2901 in 935608b
We set merchant: ''
What changes do you think we should make in order to solve the problem?we need to add reset condition as third param here, here, here and here
|
Updated proposal |
I don't have any context regarding the reason we reset the merchant value, but it seems important according to the PR #25924. Adding a new param for @Gonals @mountiny Tagging you guys here from #25924. Could you guys help give more context on the reason we reset the |
Asking in Slack, its probably because the smartscaning feature expects no merchant provided |
@mollfpr no reason I think then, lets make sure the merchant is not cleared when receipt is added |
@mountiny Is there a problem with intelligent scanning with the merchant having a value?
Can we safely revert the removed merchant here? Lines 2939 to 2941 in 56a368b
I notice that from #25924 there's a comment "For the SmartScan to run successfully, we need to pass the merchant field empty to the API", but it's not there anymore. |
@mollfpr you are right, I think Smartscan does not run if Merchant is provided, that is intentional, still discussing internally. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@peterdbarkerUK, @mollfpr Huh... This is 4 days overdue. Who can take care of this? |
@peterdbarkerUK, @mollfpr Eep! 4 days overdue now. Issues have feelings too... |
@mollfpr @peterdbarkerUK to confirm, the merchant should not change when receipt is changed |
@mountiny Does this mean the SmartScanning will work fine with merchant field fill? |
Just want to confirm your mean.
Please correct me if I wrong something. Thanks @mountiny cc @mollfpr |
We are working on making the merchant field required for group policies/ requests in workspace #32486 so it would not be set to Request thats cc @trjExpensify to help with the expected behaviour here. If the merchant is passed we would not smartscan If the user inputs some merchant, then we assume they dont want smartscan, if they upload different receipt at the confirmation page though, it should not reset automatically the merchant previously inserted. If the receipt is different and the merchant should be too, they can update it again. |
Not overdue |
@peterdbarkerUK @mollfpr this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@peterdbarkerUK, @mollfpr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@peterdbarkerUK @mollfpr this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@peterdbarkerUK, @mollfpr 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@tienifr Do you need to update your proposal based on the #32123 (comment)? |
@mollfpr It is not reproducible anymore after the recent money request refactor. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@mollfpr I think we're waiting for @trjExpensify's response |
Thanks @FitseTLT. I just tested on the latest main, and the issue is fixed. Screen.Recording.2023-12-20.at.19.06.57.mp4 |
Same, I can't reproduce this anymore either. |
Issue not reproducible during KI retests. (First week) |
@peterdbarkerUK We can close this issue. |
@peterdbarkerUK @mollfpr this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @mollfpr is eligible for the Internal assigner, not assigning anyone new. |
Sorry for this but happy this got resolved! |
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: 1.4.4.0
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:
The entered Merchant is preserved.
Actual Result:
The entered Merchant is cleared.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6293241_1701179729342.20231128_172120__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: