Skip to content

[Advanced Approvals] [$250] Web - LHN - Expense report needs to be opened after changing approver to be seen in LHN #48462

Closed

Description

@IuliiaHerets

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.28-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #48362
Issue reported by: Applause Internal Team

Action Performed:

Precondition: log into OD as an admin, create a control policy, enable workspace chats, select "Advanced Approvals", invite 3 members (non-admin): 2 approvers and 1 submitter, set the approval flow as submitter submits to approver 1

  1. Log into ND as submitter
  2. Navigate to the workspace chat
  3. Submit an expense
  4. Log into ND as approver 1
  5. Navigate to the workspace chat and open the submitted report
  6. Open any other report in the LHN
  7. As admin, change the the submitter's submitsTo to approver 2 in OD
  8. Open the tab with approver 1 logged in

Expected Result:

The approver can still see the expense report in the LHN

Actual Result:

The expense report disappears after changing the approver, and it is not displayed in the LHN unless it is opened in Search, then it stays in the LHN

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6591273_1725327624530.Recording__736.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021833058783152137453
  • Upwork Job ID: 1833058783152137453
  • Last Price Increase: 2024-09-09
Issue OwnerCurrent Issue Owner: @chiragsalian

Activity

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

    @melvin-bot

    Triggered auto assignment to @RachCHopkins (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. IuliiaHerets commented on Sep 3, 2024

    @IuliiaHerets
    Author

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

  4. RachCHopkins commented on Sep 5, 2024

    @RachCHopkins
    Contributor

    Traditionally, workflow is set at the time of submission. If the workflow is changed after submission, this does not affect any reports already submitted. Users must retract a report and submit again to restart with a new workflow.

    Has this been changed for New Expensify?

  5. RachCHopkins commented on Sep 5, 2024

    @RachCHopkins
    Contributor

    I don't understand the "expected result" here.

    The approver can still see the expense report in the LHN

    Which approver? There are two approvers in the testing workflow.

    The expense report disappears after changing the approver, and it is not displayed in the LHN unless it is opened in Search, then it stays in the LHN

    Disappears for whom? Displayed for whom? There are 3 users involved, is this for all of them?

    @IuliiaHerets can we get more specific here, please?

  6. IuliiaHerets commented on Sep 6, 2024

    @IuliiaHerets
    Author

    @RachCHopkins
    Expected Result:
    The approver 1 can still see the expense report in the LHN
    Actual Result:
    The expense report disappears from the LHN of approver 1 after admin changes the approver, and it is not displayed in the LHN of approver 1 unless it is opened in Search, then it stays in the LHN approver 1

  7. RachCHopkins commented on Sep 9, 2024

    @RachCHopkins
    Contributor

    Thanks @IuliiaHerets - I'll check what the expected behaviour is.

  8. RachCHopkins commented on Sep 9, 2024

    @RachCHopkins
    Contributor

    Expected behaviour is that when the approval workflow is changed for a user, this will not affect Processing expenses/reports.

    So there should be no change for Approver 1 and Approver 2 should not see anything new.

  9. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 9, 2024
  10. changed the title [-]Web - LHN - Expense report needs to be opened after changing approver to be seen in LHN[/-] [+][$250] Web - LHN - Expense report needs to be opened after changing approver to be seen in LHN[/+] on Sep 9, 2024
  11. 33 remaining items

  12. added
    retest-weeklyApply this label if you want this issue tested on a Weekly basis by Applause
    on Sep 30, 2024
  13. RachCHopkins commented on Sep 30, 2024

    @RachCHopkins
    Contributor

    Not overdue. Awaiting a retest.

  14. kavimuru commented on Oct 1, 2024

    @kavimuru

    Still tester is able to reproduce the issue. This bug was reported from this PR #48362 validation.

    Recording.818.mp4
  15. RachCHopkins commented on Oct 1, 2024

    @RachCHopkins
    Contributor

    Ok, so going by that, the actual problem is this:

    • User 1: create and submit expense
    • Approver 1: Sees report for approval in LHN

    ---- Change User 1 approver ----

    • Approver 1: No longer sees report for approval in LHN, and if they are actively in the report, it vanishes.
  16. RachCHopkins commented on Oct 1, 2024

    @RachCHopkins
    Contributor

    @chiragsalian that sounds like exactly the thing that you and I could not replicate.

  17. chiragsalian commented on Oct 4, 2024

    @chiragsalian
    Contributor

    The problem you laid out sounds about right Rachael. I'm unable to reproduce it locally or on staging.

  18. RachCHopkins commented on Oct 8, 2024

    @RachCHopkins
    Contributor

    Ok well it's pretty hard to fix if no one can reproduce it. I think we should close this until it becomes an issue that can be reproduced. Do you agree @chiragsalian?

  19. chiragsalian commented on Oct 8, 2024

    @chiragsalian
    Contributor

    Yeah thats fine by me. Closing.

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.DailyKSv2InternalRequires API changes or must be handled by Expensify staffretest-weeklyApply this label if you want this issue tested on a Weekly basis by Applause

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions