-
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
Web - Request Money - Category Not Automatically Added When Requesting Money in Distance Mode #39304
Comments
👋 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:
|
Triggered auto assignment to @francoisl ( |
We think that this bug might be related to #vip-split |
Both the policies are different in the video, so one might have default category as |
I can reproduce the issue, using the same workspace on staging and prod, and the category is being prefilled correctly in production. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Category is not automatically show for distance requests What is the root cause of that problem?When i console log the And we have taken the default category condition such that we will store the deafultcategory value without checking if defaultCategory exists : App/src/pages/iou/request/step/IOURequestStepConfirmation.js Lines 152 to 156 in 54c669f
And this causes a empty string to be stored as now we have 2 objects with the name What changes do you think we should make in order to solve the problem?Add a condition to check if the matching object has const defaultCategory = lodashGet(
_.find(lodashGet(policy, 'customUnits', {}), (customUnit) => customUnit.name === CONST.CUSTOM_UNITS.NAME_DISTANCE && customUnit.defaultCategory),
'defaultCategory',
'',
); What alternative solutions did you explore? (Optional)N/A |
@francoisl i was able to reproduce the issue, this seems to be the case now that we get 2 objects for the same name distance |
This will be a backend fix, going to remove the label for now. |
Job added to Upwork: https://www.upwork.com/jobs/~01495c58bc9b570f5d |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @fedirjh ( |
It will be handled internally, no need for a C+ here. |
@francoisl Huh... This is 4 days overdue. Who can take care of this? |
@francoisl 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@francoisl 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
@francoisl 12 days overdue now... This issue's end is nigh! |
This issue has not been updated in over 14 days. @francoisl eroding to Weekly issue. |
This issue has not been updated in over 15 days. @francoisl 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! |
@francoisl, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
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: v1.4.58.0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team
Action Performed:
1, Open the FAB menu and select "Request Money."
2, Choose the distance mode option.
3, Enter start and end points, then click "Next."
4, Select workspace chat.
5, Observe that the Category field remains empty and is not automatically filled.
Expected Result:
The Category, labeled as "Car," should be automatically added when requesting money in distance mode.
Actual Result:
The Category field is not automatically populated when requesting money in distance mode.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6432080_1711748047019.Screen_Recording_2024-03-29_at_2.20.44_PM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: