Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Redirect user to "/cody/manage" when admin removes themself from the team #63394

Open
taras-yemets opened this issue Jun 20, 2024 · 0 comments
Open
Assignees

Comments

@taras-yemets
Copy link
Contributor

taras-yemets commented Jun 20, 2024

When the admin removes themself from the team they transition to the free plan. As they are no longer on a team, they should be redirected from any team-specific page like "/cody/team/manage".

Meta point: any page intended for Pro plan users should ensure the user is on a Pro plan. The plan data should be updated if any mutation can modify the user-team relation.

Technical challenge: user plan data comes from the Sourcegraph instance backend (GraphQL) and the source of truth for teams is on the SSC backend. We need to find a way to refetch user Cody plan after any mutation (in other words sync Apollo hooks with React Query ones).

@taras-yemets taras-yemets self-assigned this Jun 20, 2024
@chenkc805 chenkc805 changed the title Navigate to "/cody/manage" when admin removes themself from the team Redirect user to "/cody/manage" when admin removes themself from the team Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant