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

ui/cluster-ui: add context to inform ui if on cockroach cloud #86264

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Aug 16, 2022

Closes #86245

This commit introduces a context CockroachCloudCountext that
signifies whether or not the app is within cockroach cloud or
not. This allows us to enable/disable certain features depending
on the platform without plumbing any values. The default context
value is true in order to not set the context explicitly for
cloud components and within the managed-service repo. The
context is provided as false for the db-console app.

This commit also disables the Time Spent Waiting column
in active execution tables for CC, since that feature is not yet
available.

Release justification: bug fix, low risk update to existing
functionality
Release note (ui change): The time spent waiting columns for
active execution tables has been hidden on CC

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz requested a review from a team August 16, 2022 21:56
Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, that's very helpful flag! :lgtm:

Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)

@xinhaoz xinhaoz changed the title ggui/cluster-ui: add context to inform ui if on cockroach cloud ui/cluster-ui: add context to inform ui if on cockroach cloud Aug 17, 2022
Closes cockroachdb#86245

This commit introduces a context `CockroachCloudCountext` that
signifies whether or not the app is within cockroach cloud or
not. This allows us to enable/disable certain features depending
on the platform without plumbing any values. The default context
value is true in order to not set the context explicitly for
cloud components and within the managed-service repo. The
context is provided as false for the db-console app.

This commit also disables the `Time Spent Waiting` column
in active execution tables for CC, since that feature is not yet
available.

Release justification: bug fix, low risk update to existing
functionality
Release note (ui change): The `time spent waiting` columns for
active execution tables has been  hidden on CC
@xinhaoz
Copy link
Member Author

xinhaoz commented Aug 17, 2022

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Aug 17, 2022

Build succeeded:

@maryliag
Copy link
Contributor

maryliag commented Sep 8, 2022

@xinhaoz can you backport to 22.1 just the part about adding the context?

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.

cluster-ui: hide active executions wait time columns in cloud
3 participants