Skip to content

[HOLD for payment 2025-01-02] Can't add new report actions in Debug mode #53683

Closed

Description

@DylanDylann

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Coming from #53027 (comment)

Debug.setDebugData(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`, {[parsedReportAction.reportActionID]: parsedReportAction});

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

Issue OwnerCurrent Issue Owner: @DylanDylann

Activity

  1. Shahidullah-Muffakir commented on Dec 6, 2024

    @Shahidullah-Muffakir
    Contributor

    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:

    function setDebugData<TKey extends OnyxKey | `${OnyxCollectionKey}${string}`>(onyxKey: TKey, onyxValue: OnyxMergeInput<TKey>) {

    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

  2. DylanDylann commented on Dec 6, 2024

    @DylanDylann
    ContributorAuthor

    @pac-guerreiro or @JKobrynski will handle this issue. No require proposals

  3. JKobrynski commented on Dec 6, 2024

    @JKobrynski
    Contributor

    Hi, I'm Julian from Callstack - expert agency - and I would like to work on this issue.

  4. DylanDylann commented on Dec 9, 2024

    @DylanDylann
    ContributorAuthor

    @JKobrynski Feel free to raise a PR

  5. puneetlath commented on Dec 11, 2024

    @puneetlath
    Contributor

    @JKobrynski do you have an ETA for a PR?

  6. pac-guerreiro commented on Dec 11, 2024

    @pac-guerreiro
    Contributor

    @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 😄

  7. puneetlath commented on Dec 11, 2024

    @puneetlath
    Contributor

    Welcome back!

  8. 16 remaining items

  9. removed
    Reviewing
    on Dec 26, 2024
  10. melvin-bot commented on Dec 26, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  11. melvin-bot commented on Dec 26, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.78-6 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 2025-01-02. 🎊

    For reference, here are some details about the assignees on this issue:

  12. added
    Daily
    and removed
    Weekly
    on Jan 2, 2025
  13. melvin-bot commented on Jan 2, 2025

    @melvin-bot

    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!

  14. melvin-bot commented on Jan 2, 2025

    @melvin-bot

    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
  15. puneetlath commented on Jan 2, 2025

    @puneetlath
    Contributor

    @DylanDylann does this require payment or is it a regression from a previous PR?

  16. DylanDylann commented on Jan 3, 2025

    @DylanDylann
    ContributorAuthor

    I think no

  17. puneetlath commented on Jan 3, 2025

    @puneetlath
    Contributor

    Got it. Closing out then!

  18. added
    Reviewing
    Weekly
    and removed
    Daily
    on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions