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-03-26] [$250] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js #34613
Please re-state the problem that we are trying to solve in this issue.
Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js
What is the root cause of that problem?
Component update
What changes do you think we should make in order to solve the problem?
I checked all the commits after 27th Nov and the new component is updated according to the old component, we just need to remove the file and route created for it. I checked the commits thoroughly but will check again in the PR. There are total 10 commits which includes importing updated components, updating const variables and adding a policy prop. All of them have been updated inside new component also.
// ScreenWrapper is only needed in edit mode because we have a dedicated route for the edit amount page (MoneyRequestEditAmountPage).
// The rest of the cases this component is rendered through <MoneyRequestSelectorPage /> which has it's own ScreenWrapper
There are 4 components which will get the action param with this update & uses IOU actions, most of them will be only used for create so it will only update TRANSACTION_DRAFT inside Onyx thats why we don't need to use isDraft parameter for actions. We only support editing inside IOURequestStepScan and there is a action setMoneyRequestReceipt which needs isDraft parameter for updating the TRANSACTION_DRAFT or TRANSACTION accordingly but we already handle that correctly.
changed the title [-]Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/-][+][$500] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/+]on Jan 17, 2024
changed the title [-][$250] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/-][+][HOLD for payment 2024-03-26] [$250] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/+]on Mar 19, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 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:
[@hoangzinh] The PR that introduced the bug has been identified. Link to the PR:
[@hoangzinh] 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:
[@hoangzinh] 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:
[@hoangzinh] Determine if we should create a regression test for this bug.
[@hoangzinh] 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.
[@garrettmknight] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Jan 16, 2024
Triggered auto assignment to @michaelhaxhiu (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.Krishna2323 commentedon Jan 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js
What is the root cause of that problem?
Component update
What changes do you think we should make in order to solve the problem?
I checked all the commits after 27th Nov and the new component is updated according to the old component, we just need to remove the file and route created for it. I checked the commits thoroughly but will check again in the PR. There are total 10 commits which includes importing updated components, updating const variables and adding a
policyprop. All of them have been updated inside new component also.Component to remove:
https://github.com/Expensify/App/blob/main/src/pages/iou/MoneyRequestSelectorPage.js
App/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx
Line 93 in 52adf77
We also need to remove all traces from
src/libs/Navigation/types.ts&src/libs/Navigation/linkingConfig.ts:App/src/libs/Navigation/linkingConfig.ts
Line 407 in 3033f99
App/src/libs/Navigation/types.ts
Line 182 in 3033f99
We will update to
:action paramhere:App/src/ROUTES.ts
Line 305 in 3033f99
We are using
ROUTES.MONEY_REQUEST_CREATE.getRoutefrom several places so we need to add action accordingly:App/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.js
Line 147 in 3033f99
App/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.js
Line 152 in 3033f99
App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js
Line 194 in 3033f99
There is a comment inside
NewRequestAmountPagewhich mentionsMoneyRequestSelectorPage, we also need to update that.App/src/pages/iou/steps/NewRequestAmountPage.js
Lines 156 to 157 in 93e68b5
There are 4 components which will get the
actionparam with this update & usesIOUactions, most of them will be only used for create so it will only updateTRANSACTION_DRAFTinside Onyx thats why we don't need to useisDraftparameter for actions. We only support editing insideIOURequestStepScanand there is a actionsetMoneyRequestReceiptwhich needsisDraftparameter for updating theTRANSACTION_DRAFTorTRANSACTIONaccordingly but we already handle that correctly.App/src/pages/iou/request/step/IOURequestStepScan/index.js
Lines 155 to 160 in 6040dd3
App/src/pages/iou/request/step/IOURequestStepScan/index.js
Lines 173 to 178 in 6040dd3
Result
njmulsqb commentedon Jan 17, 2024
I would love to take this!
DylanDylann commentedon Jan 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js
What is the root cause of that problem?
Remove deprecated component
What changes do you think we should make in order to solve the problem?
App/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx
Line 93 in 278d04e
App/src/libs/Navigation/linkingConfig.ts
Lines 407 to 425 in 278d04e
App/src/ROUTES.ts
Lines 249 to 252 in a2f5bd5
and all sub route ROUTES.MONEY_REQUEST_MANUAL_TAB, ROUTES.MONEY_REQUEST_SCAN_TAB, ROUTES.MONEY_REQUEST_DISTANCE_TAB
We also need to update
ROUTES.MONEY_REQUEST.getRoutetoROUTES.MONEY_REQUEST_CREATE.getRoutein all placesWhat alternative solutions did you explore? (Optional)
[-]Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/-][+][$500] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/+]melvin-bot commentedon Jan 17, 2024
Job added to Upwork: https://www.upwork.com/jobs/~011477b63464907ecf
melvin-bot commentedon Jan 17, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh (
External)MahmudjonToraqulov commentedon Jan 17, 2024
I would love to take this!
68 remaining items
[-][$250] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/-][+][HOLD for payment 2024-03-26] [$250] Remove MoneyRequestSelectorPage.js and copy any changes since Nov 27 into IOURequestStartPage.js[/+]melvin-bot commentedon Mar 19, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 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-03-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 19, 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:
Krishna2323 commentedon Mar 28, 2024
@garrettmknight, bump for payments.
garrettmknight commentedon Mar 28, 2024
@Krishna2323 just paid you.
@hoangzinh sent a new offer to you since the old one expired. (link)
hoangzinh commentedon Mar 29, 2024
Accepted. Thanks @garrettmknight
garrettmknight commentedon Apr 2, 2024
All paid up, closing.