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][$250] - LHN preview is missing distance rate name in distance rate removal system message #46967

Closed
6 tasks done
lanitochka17 opened this issue Aug 7, 2024 · 33 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 7, 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.17-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4827991
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • Workspace has some distance rates
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Distance rates
  3. Delete a distance rate
  4. Go to #admins room of the same workspace
  5. Refresh the page

Expected Result:

The LHN preview will display the complete distance rate removal system message

Actual Result:

The LHN preview is missing the name of the removed distance rate in the system message

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

Add any screenshot/video evidence

Bug6564191_1723021787060.20240807_170549.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016424eee2de4a22ba
  • Upwork Job ID: 1821384517474279929
  • Last Price Increase: 2024-08-22
  • Automatic offers:
    • FitseTLT | Contributor | 103698148
Issue OwnerCurrent Issue Owner: @allroundexperts
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@lanitochka17
Copy link
Author

@kadiealexander FYI 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

@FitseTLT
Copy link
Contributor

FitseTLT commented Aug 7, 2024

Edited by proposal-police: This proposal was edited at 2024-08-07 19:39:54 UTC.

Proposal

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

LHN preview is missing distance rate name in distance rate removal system message

What is the root cause of that problem?

In getOptionData we are not dealing with POLICY_CHANGE_LOG.DELETE_CUSTOM_UNIT_RATE action types when getting alternateText for the LHN so it is falling back to setting it to the lastMessage of the report which misses distance rate name

result.alternateText = ReportUtils.formatReportLastMessageText(getWelcomeMessage(report, policy).messageText ?? Localize.translateLocal('report.noActivityYet'));
}

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

We need to set alternateText to the getReportActionMessageText of the lastAction if the last action type is POLICY_CHANGE_LOG.DELETE_CUSTOM_UNIT_RATE (FYI: That is how the report action is displayed in report action item) here

else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_CUSTOM_UNIT_RATE) {
            result.alternateText = ReportActionsUtils.getReportActionMessageText(lastAction) ?? '';
        } 

What alternative solutions did you explore? (Optional)

@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~016424eee2de4a22ba

@melvin-bot melvin-bot bot changed the title Distance - LHN preview is missing distance rate name in distance rate removal system message [$250] Distance - LHN preview is missing distance rate name in distance rate removal system message Aug 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

@BhuvaneshPatil
Copy link
Contributor

@lanitochka17 @kadiealexander Can you try reproducing the bug. I was able to do that yesterday but not anymore

@trjExpensify
Copy link
Contributor

CC: @neil-marcellini who's working on this project externally with context to help squash these? I think this one is conditional on the p2p beta for rate, so #vip-vsb related.

Copy link

melvin-bot bot commented Aug 13, 2024

@allroundexperts, @kadiealexander Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Aug 13, 2024
@neil-marcellini neil-marcellini changed the title [$250] Distance - LHN preview is missing distance rate name in distance rate removal system message [$250][P2P Distance] - LHN preview is missing distance rate name in distance rate removal system message Aug 13, 2024
Copy link

melvin-bot bot commented Aug 15, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Aug 15, 2024

@allroundexperts, @kadiealexander 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@tsa321
Copy link
Contributor

tsa321 commented Aug 17, 2024

Maybe a BE issue. The report.lastMessageText doesn't include the rate name.

Copy link

melvin-bot bot commented Aug 19, 2024

@allroundexperts, @kadiealexander 10 days overdue. I'm getting more depressed than Marvin.

Copy link

melvin-bot bot commented Aug 21, 2024

@allroundexperts @kadiealexander this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Aug 21, 2024

@allroundexperts, @kadiealexander 12 days overdue now... This issue's end is nigh!

Copy link

melvin-bot bot commented Aug 22, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@kadiealexander
Copy link
Contributor

@allroundexperts please take a look at the proposal above!

@melvin-bot melvin-bot bot removed the Overdue label Aug 23, 2024
@lanitochka17
Copy link
Author

Issue is still reproducible

20240823_202900.mp4

@allroundexperts
Copy link
Contributor

@FitseTLT's proposal works good. I think the solution proposed is making sense as well. Let's go with them.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Aug 25, 2024

Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 27, 2024
Copy link

melvin-bot bot commented Aug 27, 2024

📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@neil-marcellini
Copy link
Contributor

I'm now realizing that this is related to distance rate configuration alone, not the P2P distance project.

@neil-marcellini neil-marcellini changed the title [$250][P2P Distance] - LHN preview is missing distance rate name in distance rate removal system message [$250] - LHN preview is missing distance rate name in distance rate removal system message Sep 4, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Sep 23, 2024
Copy link

melvin-bot bot commented Sep 23, 2024

This issue has not been updated in over 15 days. @Julesssss, @allroundexperts, @FitseTLT, @kadiealexander eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@allroundexperts
Copy link
Contributor

I think this is pending payment. Can someone please take a look?

@Julesssss
Copy link
Contributor

HI @kadiealexander would you mind checking that payment hasn't occurred yet? Thanks

@FitseTLT
Copy link
Contributor

FitseTLT commented Oct 3, 2024

@kadiealexander Payment overdue

@FitseTLT
Copy link
Contributor

@kadiealexander Can you pls issue payment here?? Thx

@kadiealexander
Copy link
Contributor

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:

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

@kadiealexander
Copy link
Contributor

kadiealexander commented Oct 13, 2024

Payouts due:

Upwork job is here.

@kadiealexander kadiealexander changed the title [$250] - LHN preview is missing distance rate name in distance rate removal system message [HOLD for payment][$250] - LHN preview is missing distance rate name in distance rate removal system message Oct 13, 2024
@kadiealexander kadiealexander added Daily KSv2 and removed Monthly KSv2 labels Oct 13, 2024
@JmillsExpensify
Copy link

$250 approved for @allroundexperts

Copy link

melvin-bot bot commented Oct 21, 2024

@Julesssss, @allroundexperts, @FitseTLT, @kadiealexander Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@Julesssss
Copy link
Contributor

Hey @allroundexperts has this been paid out?

@allroundexperts
Copy link
Contributor

Yes, feel free to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
No open projects
Status: Polish
Development

No branches or pull requests

10 participants