Can't add new report actions in Debug mode
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Coming from https://github.com/Expensify/App/issues/53027#issuecomment-2500692010
https://github.com/Expensify/App/blob/3f4e93ee40462b42f5fe331fdf9db5c9bbb1a421/src/pages/Debug/ReportAction/DebugReportActionCreatePage.tsx#L117
we use the set method but we don't add the previous data. It caused when adding new report action, all previous report actions will be removed
cc @pac-guerreiro @puneetlath @JKobrynski
Proposal
Please re-state the problem that we are trying to solve in this issue.
We are not keeping the old state in onyx
What is the root cause of that problem?
We are using set method of onyx, we should use merge
What changes do you think we should make in order to solve the problem?
here: https://github.com/Expensify/App/blob/3baf965618ced48845ddd7534b0fad4d4110b5de/src/libs/actions/Debug.ts#L10
we can create one method for merge as well as:
function mergeDebugData<TKey extends OnyxKey | `${OnyxCollectionKey}${string}`>(onyxKey: TKey, onyxValue: OnyxMergeInput<TKey>) {
Onyx.merge(onyxKey, onyxValue);
}
and then use it
@pac-guerreiro or @JKobrynski will handle this issue. No require proposals
Hi, I'm Julian from Callstack - expert agency - and I would like to work on this issue.
@JKobrynski Feel free to raise a PR
@JKobrynski do you have an ETA for a PR?
@DylanDylann @puneetlath I'm back from my vacation so I'm taking this from @JKobrynski π
I'll raise a PR at the end of my work day π
Welcome back!
@puneetlath thanks! π
@DylanDylann I just opened a draft PR - https://github.com/Expensify/App/pull/53969
I'll need to add screen recordings tomorrow!
If the PR is too big, I can split it in two π
Looks ok to me in terms of size, thanks!
Today:
- [x] Add testing steps
- [x] Add screen recordings
Todo:
- [ ] Fix
Not Foundscreen shown when navigating back after deleting a report
@puneetlath @DylanDylann The PR is now ready for review! π
There's a minor issue where the Not Found page is shown if the user goes back after deleting a report. I'll look for a fix for this issue tomorrow!
@DylanDylann @puneetlath
Last friday (12/13/24)
- I didn't have much time to focus on the remaining issue but I did some investigation and got some ideas to try
Today
- I tried some ideas and managed to find one that fixed the
Not Foundpage showing after deleting a report, going to concierge and pressing back button on the header
Waiting on @DylanDylann review π
@puneetlath
@DylanDylann approved the PR π₯³ Feel free to chime in and let me know if there's anything that needs my attention π
The PR was finally merged yesterday! π₯³
β οΈ Looks like this issue was linked to a Deploy Blocker here
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.
Reviewing label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.78-6 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/53969
If no regressions arise, payment will be issued on 2025-01-02. :confetti_ball:
For reference, here are some details about the assignees on this issue:
- @pac-guerreiro does not require payment (Contractor)
- @DylanDylann requires payment (Needs manual offer from BZ)
Issue is ready for payment but no BZ is assigned. @mallenexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
Payment Summary
Upwork Job
- Contributor: @pac-guerreiro is from an agency-contributor and not due payment
- ROLE: @DylanDylann paid $(AMOUNT) via Upwork (LINK)
BugZero Checklist (@mallenexpensify)
- [ ] I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
- [ ] I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
- [ ] I have paid out the Upwork contracts or cancelled the ones that are incorrect
- [ ] I have verified the payment summary above is correct
@DylanDylann does this require payment or is it a regression from a previous PR?
I think no
Got it. Closing out then!