-
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] After paying only a portion of the expense, user not scroll down to new expense #54655
Comments
Triggered auto assignment to @MitchExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.After paying only a portion of the expense, user not scroll down to new expense. What is the root cause of that problem?We are not calling Lines 7924 to 7926 in 12e0941
What changes do you think we should make in order to solve the problem?
Lines 7924 to 7926 in 12e0941
Lines 6730 to 6736 in 12e0941
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Edited by proposal-police: This proposal was edited at 2024-12-30 14:04:11 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.After paying only a portion of the expense, user not scroll down to new expense What is the root cause of that problem?We already notify new action on pay request here Line 7936 in 12bbe02
but it always notify new action on iou report so when we pay from report preview we are on chat report (not iou report) so it won't work properly and we also missed to update lastVisibleActionCreated on the chat report with the new preview action created from partial hold hereLines 6730 to 6736 in 12e0941
What changes do you think we should make in order to solve the problem?We need to know from where the pay request is called we can easily find it by getTopmostReportID or we can pass it as a param (which would be the chat report when paid from the report preview case or the iou Report when paid from money report header case) and then notifyNewAction for that param instead of always notifying for iouReport Line 7936 in 12bbe02
and update lastVisibleActionCreated accordingly here Lines 6740 to 6741 in 12bbe02
We have similar problems with approve and other money request flows too so we should fix it similarly. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We will mock getTopmostReportID to return the chat report id and then we will assert that the notifyNewAction is called with the chat report id not the iou report. What alternative solutions did you explore? (Optional)We can also avoid notifying new action if the pay is from report preview and the payment is full because there is no new action to notify on the chat report
|
@MitchExpensify I can help take it as C+ since I had the prior context on this. Thanks |
Job added to Upwork: https://www.upwork.com/jobs/~021874051725449499647 |
Current assignee @dukenv0307 is eligible for the External assigner, not assigning anyone new. |
friendly bump @FitseTLT |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Works for me! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@FitseTLT any updates? |
Will create PR tomorrow |
@FitseTLT bump |
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.0.79-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @dukenv0307
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
The user scrolls down to new expense.
Actual Result:
The user does not scroll down to new expense.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
bug.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: