Skip to content

[$1000] Workspace - No workspace available when signing in from a user with only one workspace #28564

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Create a very new account
  2. Create a workspace
  3. Signout and signin again
  4. Observe that workspace is not displayed.

1. Open App and login using the Apple ID (tap the Apple icon)
2. Click Continue for all the prompts
3. Navigate to Settings -> Workspaces (Make a few workspaces)
4. Sign out
5. Sign in with Apple ID and Navigate to Settings -> Workspaces (notice a workspace is deleted)

Note: WS is gone

6. Close the app (put app into background)
7. Open app again

Note: WS is visible.

Expected Result:

List of workspaces should appear if available

Actual Result:

List of workspaces does not appear

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.75.8
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

unavilable_ws_desktop.1.mov
unavailable_ws_web.1.mov
unavailable_ws_ios.1.MP4
unavailable_ws_mweb.1.MP4
0-02-01-323b42a1bd67e836358abfd6bd671dd81ca89a2afacb9eb40e80d4f013a3a4e7_ef44ab50a7cc7d2e.mp4
Image.from.iOS.1.mp4

Image from iOS (1) (1)

Expensify/Expensify Issue URL:
Issue reported by: @ufumerfarooq
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696001301025309

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f132917068b6c5f3
  • Upwork Job ID: 1708527646262095872
  • Last Price Increase: 2023-10-12

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 1, 2023
  2. changed the title [-]Workspace - No workspace available when login using Apple[/-] [+][$500] Workspace - No workspace available when login using Apple[/+] on Oct 1, 2023
  3. melvin-bot commented on Oct 1, 2023

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  4. melvin-bot commented on Oct 1, 2023

    @melvin-bot
  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 1, 2023
  6. melvin-bot commented on Oct 1, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. melvin-bot commented on Oct 1, 2023

    @melvin-bot

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

  8. Christinadobrzyn commented on Oct 2, 2023

    @Christinadobrzyn
    Contributor

    i can reproduce - this might need to be Internal since it's related to Apple. What do you think @0xmiroslav (internal or external)?

  9. 0xmiroslav commented on Oct 2, 2023

    @0xmiroslav
    Contributor

    I think this is BE issue so internal

  10. added
    InternalRequires API changes or must be handled by Expensify staff
    and removed
    ExternalAdded to denote the issue can be worked on by a contributor
    on Oct 3, 2023
  11. 37 remaining items

  12. MonilBhavsar commented on Oct 13, 2023

    @MonilBhavsar
    Contributor

    I'll post in expert contributors group considering a critical issue and might be affecting other flows of the app

  13. paultsimura commented on Oct 13, 2023

    @paultsimura
    Contributor

    Seems like the RCA is the same as here: #28737

    In the OpenApp API response, we have 2 Onyx operations related to the newly created policy:

    {
                "onyxMethod": "mergecollection",
                "key": "policy_",
                "value": {
                    "policy_7D84B7F95450B5C8": {
                        "isFromFullPolicy": false,
                        "id": "7D84B7F95450B5C8",
                        "name": "Paultsimura+ws5's Workspace",
                        "role": "admin",
                        "type": "free",
                        "owner": "paultsimura+ws5@gmail.com",
                        "outputCurrency": "PLN",
                        "avatar": "",
                        "employeeList": [],
                        "isPolicyExpenseChatEnabled": true,
                        "areChatRoomsEnabled": true,
                        "lastModified": 1697185648456091
                    },
                }
            },
            {
                "onyxMethod": "merge",
                "key": "policy_7D84B7F95450B5C8",
                "value": {
                    "autoReporting": true,
                    "autoReportingFrequency": "immediate",
                    "defaultBillable": false,
                    "disabledFields": {
                        "defaultBillable": true,
                        "reimbursable": false
                    }
                }
            },

    After this response is processed, in Onyx the policy contains only the data from the merge operation, the mergecollection is neglected:

    image

    @Julesssss @ospfranco you might be interested ☝️

  14. MonilBhavsar commented on Oct 13, 2023

    @MonilBhavsar
    Contributor

    Looks like this is fixed now. I am not able to reproduce

  15. paultsimura commented on Oct 13, 2023

    @paultsimura
    Contributor

    @MonilBhavsar reproduced just now.

    Prod:
    image

    Latest main:
    image

  16. MonilBhavsar commented on Oct 13, 2023

    @MonilBhavsar
    Contributor

    I tried on staging. I'll try on main

  17. MonilBhavsar commented on Oct 13, 2023

    @MonilBhavsar
    Contributor

    I'm not able to reproduce on latest main either 🤔

  18. melvin-bot commented on Oct 15, 2023

    @melvin-bot

    @MonilBhavsar @Christinadobrzyn @0xmiroslav 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!

  19. MonilBhavsar commented on Oct 16, 2023

    @MonilBhavsar
    Contributor

    @Christinadobrzyn are you still able to reproduce this issue? I am not able to reproduce. I believe it's fixed. cc @0xmiroslav

  20. mvtglobally commented on Oct 17, 2023

    @mvtglobally

    Issue not reproducible during KI retests. (First week)

  21. MonilBhavsar commented on Oct 18, 2023

    @MonilBhavsar
    Contributor

    Closing this issue. Feel free to reopen if issue still persists

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.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions