You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Distance rates] Category - Cannot cancel the category selection in distance rates settings #38673
Version Number: 1.4.55-0 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
👋 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:
Identify the pull request that introduced this issue and revert it.
@Beamanator 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
changed the title [-]Category - Cannot cancel the category selection in distance rates settings[/-][+][Distance rates] Category - Cannot cancel the category selection in distance rates settings[/+]on Mar 20, 2024
Activity
github-actions commentedon Mar 20, 2024
👋 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:
melvin-bot commentedon Mar 20, 2024
Triggered auto assignment to @Beamanator (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.lanitochka17 commentedon Mar 20, 2024
We think that this bug might be related to #wave-collect - Release 1
lanitochka17 commentedon Mar 20, 2024
@Beamanator 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
[-]Category - Cannot cancel the category selection in distance rates settings[/-][+][Distance rates] Category - Cannot cancel the category selection in distance rates settings[/+]dragnoir commentedon Mar 20, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Cannot cancel the category selection in distance rates settings
What is the root cause of that problem?
We are not checking if if the selected category is the same as the already existing one
App/src/pages/workspace/distanceRates/PolicyDistanceRatesSettingsPage.tsx
Lines 49 to 51 in b527962
What changes do you think we should make in order to solve the problem?
inside setNewCategory we need to check if the selected category is the same as the already existing one
as we do here
App/src/pages/iou/request/step/IOURequestStepCategory.js
Lines 90 to 92 in b527962
POC video:
20240320_152506.mp4
What alternative solutions did you explore? (Optional)
MrMuzyk commentedon Mar 20, 2024
I will fix this in the next PR that adds another screen to distance rates feature. Currently its in draft state #38237
melvin-bot commentedon Mar 20, 2024
Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.
trjExpensify commentedon Mar 20, 2024
Related discussion here: https://expensify.slack.com/archives/C036QM0SLJK/p1710945911418889?thread_ts=1710800247.591739&cid=C036QM0SLJK
This isn't a blocker, demoting it. @MrMuzyk is going to fix it in the follow-up PR.
mountiny commentedon Mar 27, 2024
The PR has been merged and C+ payment is handled elsewhere, I believe we can close this issue now as no further steps are required, thanks @MrMuzyk !