Skip to content

[HOLD for payment 2024-09-17][$250] Web - Concierge - Concierge in unavailable workspace when create new account #44480

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.2-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: N/A
Email or phone of affected tester (no customers): gocemate+a444@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Login with a new Gmail account
  3. Complete the onboarding modal requests
  4. Take a look at the Concierge chat header

Expected Result:

There should be only Concierge label on Concierge chat header

Actual Result:

"Concierge in unavailable workspace" can be seen on the Concierge chat header after creating a new account

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

14!image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013152861e0170f045
  • Upwork Job ID: 1806787876528252448
  • Last Price Increase: 2024-09-03
  • Automatic offers:
    • allgandalf | Reviewer | 103818556
    • wildan-m | Contributor | 103818557
Issue OwnerCurrent Issue Owner: @cristipaval

Activity

  1. added
    Daily
    Bug
    on Jun 26, 2024
  2. melvin-bot commented on Jun 26, 2024

    @melvin-bot

    Triggered auto assignment to @sakluger (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 Jun 26, 2024

    @lanitochka17
    Author

    @sakluger 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. added
    External
    on Jun 28, 2024
  5. changed the title [-]Web - Concierge - Concierge in unavailable workspace when create new account[/-] [+][$250] Web - Concierge - Concierge in unavailable workspace when create new account[/+] on Jun 28, 2024
  6. melvin-bot commented on Jun 28, 2024

    @melvin-bot
  7. added
    Help Wanted
    on Jun 28, 2024
  8. melvin-bot commented on Jun 28, 2024

    @melvin-bot

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

  9. jainilparikh commented on Jun 30, 2024

    @jainilparikh

    Edited by proposal-police: This proposal was edited at 2024-08-15 07:29:48 UTC.

    Proposal

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

    'Unavailable workspace ' appears when a User attempts to login with a fresh Gmail account.

    What is the root cause of that problem?

    Within HeaderView.ts we invoke 1getPolicyName function to get the sub-heading. Note: We send true for returnEmptyIfNotFound flag.

    https://github.com/Expensify/App/blob/main/src/pages/home/HeaderView.tsx#L113

    Within the getPolicyName function, when there report has no policies (This happens when it's a new user), we don't respect the returnEmptyIfNotFound flag.

    https://github.com/Expensify/App/blob/main/src/libs/ReportUtils.ts#L745

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

    Replace

    if ((!allPolicies || Object.keys(allPolicies).length === 0) && !report?.policyName) {
            return unavailableTranslation;
        }
    

    With

    if ((!allPolicies || Object.keys(allPolicies).length === 0) && !report?.policyName) {
            return noPilicyFound;
    }
    

    The noPolicyFound variable (link) take's care of respecting the returnEmptyIfNotFound flag.

  10. 86 remaining items

  11. added
    Weekly
    and removed
    Daily
    on Sep 5, 2024
  12. wildan-m commented on Sep 5, 2024

    @wildan-m
    Contributor

    @allgandalf The PR is ready #48621

  13. added
    Weekly
    and removed
    Weekly
    on Sep 5, 2024
  14. mvtglobally commented on Sep 9, 2024

    @mvtglobally

    Issue not reproducible during KI retests. (Second week)

  15. mvtglobally commented on Sep 13, 2024

    @mvtglobally

    Issue not reproducible during KI retests. (Third week)

  16. allgandalf commented on Sep 15, 2024

    @allgandalf
    Contributor

    Can you add payment awaiting label here @sakluger , the PR hit production long back

  17. changed the title [-][$250] Web - Concierge - Concierge in unavailable workspace when create new account[/-] [+][HOLD for payment 2024-09-17][$250] Web - Concierge - Concierge in unavailable workspace when create new account[/+] on Sep 20, 2024
  18. sakluger commented on Sep 20, 2024

    @sakluger
    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:

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

    @sakluger
    Contributor

    Summarizing payment on this issue:

    Contributor: @wildan-m $250, paid via Upwork
    Contributor+: @allgandalf $250, paid via Upwork

  20. allgandalf commented on Sep 21, 2024

    @allgandalf
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: Implement report approvals #24639
    • 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: https://github.com/Expensify/App/pull/24639/files#r1769583401
    • 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: N/A
    • 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.

    Regression Test Proposal

    1. Login with a new Gmail account
    2. Complete the onboarding modal requests
    3. Take a look at the Concierge chat header
    • Verify that there is only Concierge label on Concierge chat header

    Do we agree 👍 or 👎

  21. sakluger commented on Sep 26, 2024

    @sakluger
    Contributor

    Thanks!

  22. self-assigned this
    on Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalReviewingWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions