Skip to content
This repository was 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

@taras-yemets

Description

@taras-yemets

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions