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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant