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

cluster-ui: add context to provide tenant status to db pages #132770

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Oct 16, 2024

Cluster UI now exports a context to be used to fill in whether or not the cluster is a tenant. This is to support the existing behaviour on the old db pages where we hide the node/region column for tenant clusters.

Epic: none

Release note: None

@xinhaoz xinhaoz requested a review from a team as a code owner October 16, 2024 18:03
@xinhaoz xinhaoz requested review from kyle-a-wong and removed request for a team October 16, 2024 18:03
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz force-pushed the add-tenant-context branch 2 times, most recently from 2862dd4 to 67d5563 Compare October 16, 2024 19:48
@xinhaoz xinhaoz requested a review from a team October 16, 2024 19:48
Cluster UI now exports a context to be used to fill in
whether or not the cluster is a tenant. This is to
support the existing behaviour on the old db pages where
we hide the node/region column for tenant clusters.

The useHistory import in useTable is also changed to
import from react-router-dom which interfaces directly
with the browser's history, instead of a context object.
This fixes an error when importing components that use
this hook in CC, since useHistory from react-router expects
a Router parent in the tree from the same package version.

This commit also bumps the cluster-ui pkg version for publish.

Epic: none

Release note: None
@xinhaoz
Copy link
Member Author

xinhaoz commented Oct 17, 2024

tftr!
bors r+

@craig craig bot merged commit 42f40f5 into cockroachdb:master Oct 17, 2024
22 of 23 checks passed
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

Successfully merging this pull request may close these issues.

3 participants