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

[Profile] Web - Joined workspace which is pending for approval disappears after relogin #38008

Closed
1 of 6 tasks
kbecciv opened this issue Mar 8, 2024 · 18 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv commented Mar 8, 2024

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: 1.4.49.0
Reproducible in staging?: y
Reproducible in production?: new feature
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  1. [Employee] Click on the invite to join the workspace.
  2. [Employee] After the workspace shows up in All workspaces page, log out.
  3. [Employee] Log in again and go to All workspaces page.

Expected Result:

Joined workspace which is pending for approval should be visible after relogin

Actual Result:

Joined workspace which is pending for approval disappears after relogin

Workaround:

n/a

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

20240308_175601.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010b6b769a86dd06b0
  • Upwork Job ID: 1767247956971724800
  • Last Price Increase: 2024-03-11
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Mar 8, 2024
Copy link
Contributor

github-actions bot commented Mar 8, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 8, 2024

Triggered auto assignment to @tgolen (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@dragnoir
Copy link
Contributor

Can't reproduce. I think it's a BE and already fixed.

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 11, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@mountiny mountiny added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

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

@mountiny
Copy link
Contributor

This is a new feature and currently not used by the customers in NewDot so not a blocker cc @luacmartins

@trjExpensify trjExpensify changed the title Web - Joined workspace which is pending for approval disappears after relogin [Profile] Web - Joined workspace which is pending for approval disappears after relogin Mar 11, 2024
@luacmartins
Copy link
Contributor

This seems like a backend issue too. We're probably not sending the policy data for non-member back to the user on OpenApp.

@luacmartins luacmartins added Internal Requires API changes or must be handled by Expensify staff Hot Pick Ready for an engineer to pick up and run with labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~010b6b769a86dd06b0

Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @allroundexperts (Internal)

@luacmartins
Copy link
Contributor

I'm gonna add the Hot Pick label here. @tgolen feel free to remove it if you wanna take this on.

@tgolen tgolen removed their assignment Mar 13, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 15, 2024
@kevinksullivan
Copy link
Contributor

No update, in hot picks waiitng for a volunteer.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 15, 2024
@amyevans
Copy link
Contributor

I tried to reproduce this bug but I am hitting the Not Found page when visiting a /workspace/<Workspace_ID>/join?email=<admin_email> link:

Screen.Recording.2024-03-18.at.3.14.38.PM.mov

I tried on staging in addition to locally and same Not Found result. Any ideas on what's up @luacmartins?

@luacmartins
Copy link
Contributor

luacmartins commented Mar 18, 2024

@amyevans we renamed those routes in Ideal Nav v2, so the correct url is /settings/workspaces/<policyID>/join?email=<inviterEmail>. I updated the OP to reflect that.

Copy link

melvin-bot bot commented Mar 19, 2024

@kevinksullivan, @allroundexperts Whoops! This issue is 2 days overdue. Let's get this updated quick!

@luacmartins
Copy link
Contributor

It seems like the issue comes from the API not sending data for the join requests.

@luacmartins
Copy link
Contributor

luacmartins commented Mar 26, 2024

Hmm I think the solution for this one might be a bit involved, since we currently only store the join requests in the policy object, so we'd have to query all policies in the DB to find which ones have a join request from a particular user 😅 I think we'd have to solve this by:

  1. Create a new NVP nvp_joinRequests, which stores an array of policyIDs that the user has requested access to
  2. In OpenApp, check for any policyIDs stored in nvp_joinRequests and return the non-member data
  3. In JoinViaInviteLink, save the policyID to the nvp_joinRequests NVP
  4. In AcceptJoinRequest/DeclineJoinRequest, remove the policyID from the NVP

@luacmartins luacmartins self-assigned this Mar 26, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 26, 2024
@luacmartins
Copy link
Contributor

I'll work on this one

@luacmartins luacmartins removed the Hot Pick Ready for an engineer to pick up and run with label Mar 26, 2024
@luacmartins
Copy link
Contributor

Discussing here

@luacmartins
Copy link
Contributor

As discussed in the thread above, we decided to :do-nothing: given that we:

  1. Don't display anything to users in OldDot besides the growl
  2. Users never asked us for this feature
  3. Low usage of this flow
  4. We currently show the pending requests, but users would have to log out / in to not see it again

Feel free to reopen if you feel differently.

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 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
No open projects
Archived in project
Development

No branches or pull requests

8 participants