Skip to content

[HOLD for payment][$250] - LHN preview is missing distance rate name in distance rate removal system message #46967

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.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): applausetester+kh050806@applause.expensifail.com
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

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Aug 7, 2024
  2. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    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.

  3. lanitochka17 commented on Aug 7, 2024

    @lanitochka17
    Author

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

  4. lanitochka17 commented on Aug 7, 2024

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

  5. FitseTLT commented on Aug 7, 2024

    @FitseTLT
    Contributor

    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)

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Aug 8, 2024
  7. melvin-bot commented on Aug 8, 2024

    @melvin-bot
  8. 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[/+] on Aug 8, 2024
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Aug 8, 2024
  10. melvin-bot commented on Aug 8, 2024

    @melvin-bot

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

  11. 29 remaining items

  12. allroundexperts commented on Sep 24, 2024

    @allroundexperts
    Contributor

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

  13. Julesssss commented on Sep 25, 2024

    @Julesssss
    Contributor

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

  14. FitseTLT commented on Oct 3, 2024

    @FitseTLT
    Contributor

    @kadiealexander Payment overdue

  15. FitseTLT commented on Oct 11, 2024

    @FitseTLT
    Contributor

    @kadiealexander Can you pls issue payment here?? Thx

  16. kadiealexander commented on Oct 13, 2024

    @kadiealexander
    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:
  17. kadiealexander commented on Oct 13, 2024

    @kadiealexander
    Contributor

    Payouts due:

    Upwork job is here.

  18. 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[/+] on Oct 13, 2024
  19. JmillsExpensify commented on Oct 14, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @allroundexperts

  20. melvin-bot commented on Oct 21, 2024

    @melvin-bot

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

  21. Julesssss commented on Oct 22, 2024

    @Julesssss
    Contributor

    Hey @allroundexperts has this been paid out?

  22. allroundexperts commented on Oct 22, 2024

    @allroundexperts
    Contributor

    Yes, feel free to close.

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions