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-02-14] [$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js #34612
Please re-state the problem that we are trying to solve in this issue.
Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.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 is only 1 commit after 27th Nov and it is about moving import of useThemeStyles.
changed the title [-]Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/-][+][$500] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/+]on Jan 17, 2024
Please re-state the problem that we are trying to solve in this issue.
Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js
What is the root cause of that problem?
This is a refactor
What changes do you think we should make in order to solve the problem?
Look at the history of the Old Component
If there are any changes since Nov 27, 2023 which have not been added to the New Component, copy those changes
We have had one change since Nov 27, 2023 but it's the refactoring change and has already been applied in IOURequestStepTags. So no need to change here.
Replace all uses of the Old Component with the New Component
Remove all traces of Old Component
MoneyRequestTagPage isn't used in any component so we don't need to have any updates here.
We only need to remove MoneyRequestTagPage in ModalStackNavigators, remove .MONEY_REQUEST.TAG from SCREENS, and remove MONEY_REQUEST_TAG route
Update any logic like isEditing to use the new action param from the route
We need to update updateTag function in IOURequestStepTags for the edit case by checking action params. For edit case, we can re-use the logic of saveTag function in EditRequestPage.
And when we click on tag on MoneyRequestView we will navigate to IOURequestStepTags with action param is edit.
After this refactor we can remove EditRequestTagPage.
What alternative solutions did you explore? (Optional)
changed the title [-][$500] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/-][+][$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/+]on Jan 17, 2024
changed the title [-][$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/-][+][HOLD for payment 2024-02-14] [$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/+]on Feb 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 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:
[@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
[@fedirjh] 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:
[@fedirjh] 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:
[@fedirjh] Determine if we should create a regression test for this bug.
[@fedirjh] 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.
[@stephanieelliott] 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 @stephanieelliott (
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 MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.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 is only 1 commit after 27th Nov and it is about moving import of
useThemeStyles.Component to remove:
https://github.com/Expensify/App/blob/main/src/pages/iou/MoneyRequestTagPage.js
App/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx
Line 101 in a7a3e7f
We also need to remove all traces from
src/libs/Navigation/types.ts&src/libs/Navigation/linkingConfig.tsApp/src/libs/Navigation/linkingConfig.ts
Line 434 in a2f5bd5
App/src/libs/Navigation/types.ts
Line 214 in a2f5bd5
Note: The below 2 steps can be omitted because we only use
IOURequestStepTagsfor IOU creation flow.Result
njmulsqb commentedon Jan 17, 2024
I would love to take this!
[-]Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/-][+][$500] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/+]melvin-bot commentedon Jan 17, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01f0c8228cceba8683
melvin-bot commentedon Jan 17, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (
External)dukenv0307 commentedon Jan 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js
What is the root cause of that problem?
This is a refactor
What changes do you think we should make in order to solve the problem?
We have had one change since Nov 27, 2023 but it's the refactoring change and has already been applied in
IOURequestStepTags. So no need to change here.MoneyRequestTagPageisn't used in any component so we don't need to have any updates here.We only need to remove
MoneyRequestTagPageinModalStackNavigators, remove.MONEY_REQUEST.TAGfromSCREENS, and removeMONEY_REQUEST_TAGrouteApp/src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx
Line 98 in a8acf44
getRoutefunction with an extra paramactionand return it instead of always returningcreateApp/src/ROUTES.ts
Lines 339 to 340 in a8acf44
updateTagfunction inIOURequestStepTagsfor the edit case by checking action params. For edit case, we can re-use the logic ofsaveTagfunction in EditRequestPage.And when we click on tag on MoneyRequestView we will navigate to
IOURequestStepTagswithactionparam isedit.After this refactor we can remove EditRequestTagPage.
What alternative solutions did you explore? (Optional)
NA
[-][$500] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/-][+][$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/+]25 remaining items
[-][$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/-][+][HOLD for payment 2024-02-14] [$250] Remove MoneyRequestTagPage.js and copy any changes since Nov 27 into IOURequestStepTags.js[/+]melvin-bot commentedon Feb 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Feb 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 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-02-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 7, 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:
stephanieelliott commentedon Feb 16, 2024
I don't think the BZ checklist applies here since this was more a feature update and not really a bug (please check me on that @fedirjh!)
stephanieelliott commentedon Feb 16, 2024
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~01f0c8228cceba8683
melvin-bot commentedon Mar 11, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.