Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2024-07-24] [ESM] Expense - System message for receipt removal is different in expense report and LHN preview #44817

Closed
6 tasks done
izarutskaya opened this issue Jul 4, 2024 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@izarutskaya
Copy link

izarutskaya commented Jul 4, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.4-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4693737
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to any chat.
  3. Submit an expense with receipt.
  4. Go to transaction thread.
  5. Click on the receipt.
  6. Click 3-dot menu > Delete receipt.
  7. Delete the receipt.
  8. Return to expense report.

Expected Result:

The system message for receipt removal will be the same in the report and LHN.

Actual Result:

The system message for receipt removal is "removed the receipt" in the report, while it shows "detached a receipt from expense '(none)'" in LHN.
When copied to clipboard, it shows "You detached a receipt from expense '(none)'" instead.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6532839_1720079856793.bandicam_2024-07-04_15-53-33-348.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @jliexpensify
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Triggered auto assignment to @grgia (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Jul 4, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@izarutskaya
Copy link
Author

@jliexpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@grgia
Copy link
Contributor

grgia commented Jul 4, 2024

@bernhardoj could this be related to #43079 ?

@grgia
Copy link
Contributor

grgia commented Jul 4, 2024

cc @parasharrajat

@parasharrajat
Copy link
Member

We did change this message for the delete action as per the design doc https://github.com/Expensify/App/pull/43079/files#diff-b8041d6cb129cc7b8a6223f8ffa570e79c326d8ea4affbad35c33cf6c8ea660dR1264 but looks like the backend is sending a different message.

We either need to update that or add more logic on the frontend to handle that.

I wouldn't call this a regression but another case to handle out of the design doc. @BrtqKr Do you mind looking into this?

@grgia
Copy link
Contributor

grgia commented Jul 4, 2024

Going to demote this, not really a deploy blocker

@grgia grgia added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jul 4, 2024
@grgia
Copy link
Contributor

grgia commented Jul 4, 2024

@deetergp this is related to Localize System Messages

@trjExpensify trjExpensify changed the title Expense - System message for receipt removal is different in expense report and LHN preview [ESM] Expense - System message for receipt removal is different in expense report and LHN preview Jul 4, 2024
@trjExpensify trjExpensify moved this to Release 2: Summer 2024 (Aug) in [#whatsnext] #wave-collect Jul 4, 2024
@nkdengineer
Copy link
Contributor

nkdengineer commented Jul 5, 2024

The same root cause with #44831.

@parasharrajat
Copy link
Member

Looks like you added the wrong link. It is referring to the same issue.

@BrtqKr
Copy link
Contributor

BrtqKr commented Jul 5, 2024

Ok, so couple of things to cover here:

  • I've added additional case for old dot messages in the copy to clipboard to cover it and it seems to be working as expected I'll send a PR in a moment, but...
  • I've noticed that when I try to modify the expense, for example the amount in the old dot I'm getting an action id from the NewDot instead, MODIFIEDEXPENSE when it should be CHANGEFIELD to be more precise. It seems to be working as expected (without (none) in the message), but I've noticed that it appeared even with none a couple of times previously. I believe there's something wrong with the OldDot messages sent by the back-end in general, do you know what could be causing it?

@parasharrajat
Copy link
Member

I don't have any idea on on what's going on with backend. @deetergp Could you please help with this?

@BrtqKr
Copy link
Contributor

BrtqKr commented Jul 5, 2024

I sent the draft. If there are any other issues related to that, I'll include them in the PR, but let's confirm it first.

@melvin-bot melvin-bot bot added the Overdue label Jul 8, 2024
@grgia
Copy link
Contributor

grgia commented Jul 8, 2024

bumped for more background from the project

@melvin-bot melvin-bot bot removed the Overdue label Jul 8, 2024
@deetergp
Copy link
Contributor

deetergp commented Jul 8, 2024

@BrtqKr The CHANGEFIELD system message is created in OldDot when an admin modifies a report field in Workspace > [workspace name] > Reports, you should not expect to see that when you change an expense. And the MODIFIEDEXPENSE action should only happen when someone other than the submitter modifies the expense.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 9, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [ESM] Expense - System message for receipt removal is different in expense report and LHN preview [HOLD for payment 2024-07-24] [ESM] Expense - System message for receipt removal is different in expense report and LHN preview Jul 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊

Copy link

melvin-bot bot commented Jul 17, 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:

  • [@grgia] The PR that introduced the bug has been identified. Link to the PR:
  • [@grgia] 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:
  • [@grgia] 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:
  • [@grgia] Determine if we should create a regression test for this bug.
  • [@grgia] 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.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@jliexpensify
Copy link
Contributor

jliexpensify commented Jul 23, 2024

Payment Summary

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2024
Copy link

melvin-bot bot commented Jul 24, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@jliexpensify
Copy link
Contributor

jliexpensify commented Jul 25, 2024

Bumping @grgia or @sobitneupane to confirm if payments are needed!

@sobitneupane
Copy link
Contributor

@jliexpensify I reviewed the PR linked with this issue. I will request payment in newDot.

@jliexpensify
Copy link
Contributor

Nice, ok the payment summary is correct then. Thanks!

@github-project-automation github-project-automation bot moved this from Release 2: Summer 2024 (Aug) to Done in [#whatsnext] #wave-collect Jul 25, 2024
@JmillsExpensify
Copy link

$250 approved for @sobitneupane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
No open projects
Archived in project
Development

No branches or pull requests

9 participants