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
[HOLD for payment 2024-10-25] [$250] Migrate IOURequestStepDistanceRate to useOnyx #50334
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Coming from this PR, there's a warning that withOnyx is deprecated and we should migrate this component to useOnyx
/Users/NeilMarcellini/Expensidev/App/src/pages/iou/request/step/IOURequestStepDistanceRate.tsx
138:44 error 'withOnyx' is deprecated. Use `useOnyx` instead of `withOnyx` whenever possible.
Please re-state the problem that we are trying to solve in this issue.
Migrate IOURequestStepDistanceRate to useOnyx
What is the root cause of that problem?
This is a migration
What changes do you think we should make in order to solve the problem?
Remove withOnyx HOC and replace it with useOnyx. We should use || to prevent crashing when using useOnyx with report?.policyID is changed from an empty string to an ID. We also need to update IOURequestStepDistanceRateProps with removing IOURequestStepDistanceRateOnyxProps
changed the title [-][$250] Migrate IOURequestStepDistanceRate to useOnyx[/-][+][HOLD for payment 2024-10-25] [$250] Migrate IOURequestStepDistanceRate to useOnyx[/+]on Oct 18, 2024
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:
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:
[@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
[@rushatgabhane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@rushatgabhane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@rushatgabhane] Determine if we should create a regression test for this bug.
[@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@abekkala / @isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
[-]Migrate IOURequestStepDistanceRate to useOnyx[/-][+][$250] Migrate IOURequestStepDistanceRate to useOnyx[/+]melvin-bot commentedon Oct 7, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021843307064145973750
melvin-bot commentedon Oct 7, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
External)melvin-bot commentedon Oct 7, 2024
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.shahinyan11 commentedon Oct 7, 2024
Can I work on it ?
mkzie2 commentedon Oct 7, 2024
I'd love to work on this issue.
mkzie2 commentedon Oct 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Migrate IOURequestStepDistanceRate to useOnyx
What is the root cause of that problem?
This is a migration
What changes do you think we should make in order to solve the problem?
Remove
withOnyxHOC and replace it withuseOnyx. We should use||to prevent crashing when usinguseOnyxwithreport?.policyIDis changed from an empty string to an ID. We also need to updateIOURequestStepDistanceRatePropswith removingIOURequestStepDistanceRateOnyxPropsApp/src/pages/iou/request/step/IOURequestStepDistanceRate.tsx
Lines 136 to 150 in 78e484f
What alternative solutions did you explore? (Optional)
twilight2294 commentedon Oct 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Migrate
IOURequestStepDistanceRateto useuseOnyxinstead ofwithOnyx.What is the root cause of that problem?
N/A feature request
What changes do you think we should make in order to solve the problem?
withOnyxand directly set:Then remove the
IOURequestStepDistanceRateOnyxPropscompletely.And then finally get the values of
policyCategoriespolicyTagsandpolicyRealusinguseOnyx:What alternative solutions did you explore? (Optional)
18 remaining items
[-][$250] Migrate IOURequestStepDistanceRate to useOnyx[/-][+][HOLD for payment 2024-10-25] [$250] Migrate IOURequestStepDistanceRate to useOnyx[/+]melvin-bot commentedon Oct 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 18, 2024
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:
IOURequestStepDistanceRatetouseOnyx#50537If no regressions arise, payment will be issued on 2024-10-25. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 18, 2024
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:
abekkala commentedon Oct 21, 2024
I'm back from ooo - unassigning @isabelastisser
abekkala commentedon Oct 21, 2024
Payment Summary OCT 25
please complete checklist
rushatgabhane commentedon Oct 23, 2024
Not a bug. Checklist not needed.
Migration was planned as part of PR - #50001 (comment)
abekkala commentedon Oct 25, 2024
@mkzie2 payment sent and contract ended - thank you! 🎉
garrettmknight commentedon Oct 29, 2024
$250 approved for @rushatgabhane