-
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
[PAID] [$250] Distance rates - Distance rate order in Rate page is random after clear cache and restart app #50304
Comments
Triggered auto assignment to @CortneyOfstad ( |
We think that this bug might be related to #wave-collect - Release 1 |
@CortneyOfstad FYI 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 |
Edited by proposal-police: This proposal was edited at 2024-10-06 17:30:16 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Distance rate order in Rate page is random after clear cache and restart app What is the root cause of that problem?We are not sorting distanceRates here.
While we do sort rates on App/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx Lines 102 to 106 in 99f280b
What changes do you think we should make in order to solve the problem?Implement sorting after reading rates from ONYX here.
Implement sorting similar to PolicyDistanceRatesPage
What alternative solutions did you explore? (Optional)Alternatively we could implement sorting in App/src/libs/DistanceRequestUtils.ts Line 36 in 99f280b
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. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance rate order in Rate page is random after clear cache and restart app What is the root cause of that problem?We don't currently sort the distance rate list in IOURequestStepDistanceRate. App/src/pages/iou/request/step/IOURequestStepDistanceRate.tsx Lines 73 to 78 in 99f280b
What changes do you think we should make in order to solve the problem?We need to sort the distance rate list in IOURequestStepDistanceRate, similar to how it's done in PolicyDistanceRatesPage.
What alternative solutions did you explore? (Optional) |
Updated ProposalUpdated Proposal added alternate solution. |
Note for the reviewer:
|
@cretadn22 thanks for your insights, |
ProposalPlease re-state the problem that we are trying to solve in this issue.The order of distance rates in Rate page is random after clear cache and restart app. What is the root cause of that problem?
When we add new distances, these objects are added to Onyx in turn then this displays the current order that we added is
After we reset the cache and restarted, BE returned another order of
What changes do you think we should make in order to solve the problem?Sort the distance rates by
App/src/pages/iou/request/step/IOURequestStepDistanceRate.tsx Lines 73 to 75 in 6d8e739
What alternative solutions did you explore? (Optional)NA |
@CortneyOfstad Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021844102961422932795 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura ( |
@paultsimura we have a few proposals above for you to review when you have a chance — thanks! |
Thanks, I'll review soon 👀 |
Thanks for the proposals, everyone. Considering the triviality of the sorting mechanism here, all 3 proposals look essentially the same to me. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
This was @ChavdaSachin's initial proposal, and they updated it after mine. @paultsimura Do you think this is enough for a proposal? It doesn't mention how we sort the list. While the issue is straightforward, it's clear the problem is the lack of a sort function and I believe the proposal need to outline how we sort the list. This is the main key point we need to find out instead of only say "implement sorting" |
Yes @cretadn22 – I've checked the initial version of that proposal, and it directs to the file with missing sorting, it also suggests what data we need to sort. I'll leave the rest of the consideration for @madmax330 though. |
I agree with @paultsimura, I don't how we're sorting the data is the most important part of the proposal. |
Triggered auto assignment to @trjExpensify ( |
Hey @trjExpensify! I am heading OoO this afternoon (10/15 to 10/23) so reassigning to keep this moving! The PR here has not been launched to staging just yet 👍 Thanks! |
Sounds good! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-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-10-25. 🎊 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:
|
This can be treated as a feature request.
Regression Test ProposalNote: This is a beta feature, so enable
Do we agree 👍 or 👎 |
I'm back from OoO — thanks for holding down the fort @trjExpensify! Agree with your proposal @paultsimura! |
Payment Summary@paultsimura — paid $250 via Upwork Regression Testhttps://github.com/Expensify/Expensify/issues/439059 |
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.45-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The order of distance rates in Rate page should remain A, B, C, D, E etc.
Actual Result:
The order of distance rates in Rate page is random after clear cache and restart app.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6625991_1728200705053.20241006_153110.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @CortneyOfstad / @trjExpensifyThe text was updated successfully, but these errors were encountered: