Skip to content

[Due for payment 2025-10-30] [$250] Report - Update action message appears when saving a report field without making any change #72626

Closed

Description

@lanitochka17

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


Version Number: 9.2.31-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: #72491
Email or phone of affected tester (no customers): htad26+reiuu@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

Precondition: Workspace has a report field

  1. Create a new report in the workspace
  2. Open the report
  3. Select the report field > Click "Save" without making any change
  4. Observe the update action message
  5. Again Select the report field > Click "Save" without making any change
  6. Observe the update action message

Expected Result:

There shouldn't be any update action message since no change was made to the report field

Actual Result:

There is an update action message even if there is no change that was made to the report field

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6974887_1760469294390.2025-10-14_22_04_31.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021978495918676366150
  • Upwork Job ID: 1978495918676366150
  • Last Price Increase: 2025-10-15
Issue OwnerCurrent Issue Owner: @Christinadobrzyn

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 14, 2025
  2. melvin-bot commented on Oct 14, 2025

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (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.

  3. Eskalifer1 commented on Oct 14, 2025

    @Eskalifer1
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Report - Update action message appears when saving a report field without making any change

    What is the root cause of that problem?

    Currently we always update field even it was not changed:

    const handleReportFieldChange = (form: FormOnyxValues<typeof ONYXKEYS.FORMS.REPORT_FIELDS_EDIT_FORM>) => {
    const value = form[fieldKey];
    if (isReportFieldTitle) {
    updateReportName(report.reportID, value, report.reportName ?? '');
    goBack();
    } else {
    if (value !== '') {
    updateReportField(
    {...report, reportID: report.reportID},
    {...reportField, value},
    reportField,
    policy as unknown as Policy,
    isASAPSubmitBetaEnabled,
    session?.accountID ?? CONST.DEFAULT_NUMBER_ID,
    session?.email ?? '',
    hasViolations,
    hasOtherViolations,
    );
    }
    goBack();
    }
    };

    What changes do you think we should make in order to solve the problem?

    We should add if to check if value is different from default(This can be done in both cases, or if the value is not isReportFieldTitle):

            if (fieldValue === value) {
                goBack();
    return;
            }

    PS: this condition can be improved if we want, like trim value, or maybe we already have function for that in project, that can be improved

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    N/A

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. Christinadobrzyn commented on Oct 14, 2025

    @Christinadobrzyn
    Contributor

    I'm not getting the report field at all on the empty report. I'm testing on iOS and the video is on a browser... still testing

  5. Eskalifer1 commented on Oct 14, 2025

    @Eskalifer1
    Contributor

    Hi @Christinadobrzyn, i believe you need to create expense, not empty report, then you will get report fields at the top

    PS: i mean issue is reproducible also this way

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Oct 15, 2025
  7. changed the title [-]Report - Update action message appears when saving a report field without making any change[/-] [+][$250] Report - Update action message appears when saving a report field without making any change[/+] on Oct 15, 2025
  8. melvin-bot commented on Oct 15, 2025

    @melvin-bot
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 15, 2025
  10. melvin-bot commented on Oct 15, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (External)

  11. eh2077 commented on Oct 15, 2025

    @eh2077
    Contributor

    This issue is straightforward. I think we can go with @Eskalifer1 's proposal!

    🎀👀🎀 C+ reviewed

  12. 18 remaining items

  13. melvin-bot commented on Oct 23, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.36-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 2025-10-30. 🎊

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

  14. melvin-bot commented on Oct 23, 2025

    @melvin-bot

    @eh2077 @Christinadobrzyn The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  15. Christinadobrzyn commented on Oct 28, 2025

    @Christinadobrzyn
    Contributor

    @eh2077 do we need a regression test for this? TY!

    Moving this to daily since payment is coming up

  16. Christinadobrzyn commented on Oct 30, 2025

    @Christinadobrzyn
    Contributor

    @eh2077 do we need a regression test?

  17. melvin-bot commented on Oct 30, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@Christinadobrzyn)

    • (if NewFeature) I have created a PR for any necessary HelpDot updates, or I confirmed no updates are necessary.
    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1978495918676366150/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  18. eh2077 commented on Oct 31, 2025

    @eh2077
    Contributor

    BugZero Checklist:

    Regression Test Proposal

    Precondition:

    • Workspace has a report field

    Test:

    1. Create a new report in the workspace
    2. Open the report
    3. Enter a value and save (if the field is empty)
    4. Select the report field > Click "Save" without making any change
    5. Ensure that the update action message does not appear if the value has not changed.

    Do we agree 👍 or 👎

  19. eh2077 commented on Oct 31, 2025

    @eh2077
    Contributor

    @Christinadobrzyn Thanks for the ping! Checklist done.

  20. Christinadobrzyn commented on Oct 31, 2025

    @Christinadobrzyn
    Contributor

    Thanks!

    Regression test - #72626 (comment)

    Payment summary - #72626 (comment)

    closing!

  21. garrettmknight commented on Nov 21, 2025

    @garrettmknight
    Contributor

    $250 approved for @eh2077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions