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: created a "connected" component for index details page #82174

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

THardy98
Copy link

@THardy98 THardy98 commented May 31, 2022

This PR introduces an "indexDetailsConnected" component on cluster-ui.
This allows us to reuse the cluster-ui redux store without replicating
the same logic on CC console.

Demo
"indexDetailsConnected" component being consumed by v22.2 Dedicated & Serverless clusters on CC console:
https://www.loom.com/share/f698510a5bd544618a6c9a8bbcf167d4

This is the PR that consumes this component in the demo.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@THardy98 THardy98 marked this pull request as draft May 31, 2022 21:20
@THardy98 THardy98 force-pushed the index_details_cluster_ui branch 5 times, most recently from b78032e to 2d8b1ef Compare June 3, 2022 15:27
@THardy98 THardy98 requested a review from a team June 3, 2022 15:28
@THardy98 THardy98 force-pushed the index_details_cluster_ui branch 3 times, most recently from 868dfc1 to 4a53307 Compare June 3, 2022 18:18
@THardy98 THardy98 marked this pull request as ready for review June 3, 2022 18:53
@THardy98 THardy98 force-pushed the index_details_cluster_ui branch from 4a53307 to 0152871 Compare June 6, 2022 13:12
@@ -1,6 +1,6 @@
{
"name": "@cockroachlabs/cluster-ui",
"version": "22.1.0-prerelease-3",
"version": "22.1.0-prerelease-4",
Copy link
Contributor

Choose a reason for hiding this comment

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

@maryliag just bumped this to 22.2.0-prerelease-1 in #82476. Do you want this new component to be part of the 22.1 series, or will it go out in the fall?

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.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @maryliag and @matthewtodd)


pkg/ui/workspaces/cluster-ui/package.json line 3 at r1 (raw file):

Previously, matthewtodd (Matthew Todd) wrote…

@maryliag just bumped this to 22.2.0-prerelease-1 in #82476. Do you want this new component to be part of the 22.1 series, or will it go out in the fall?

Also, you should only change this value if you have published to npm, which I'm assuming you didn't do

};

export type ResetIndexUsageStatsRequest = cockroach.server.serverpb.ResetIndexUsageStatsRequest;
export type ResetIndexUsageStatsResponse = cockroach.server.serverpb.ResetIndexUsageStatsResponse;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to export these request & response types? I don't see them being used.

Copy link
Contributor

@matthewtodd matthewtodd left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of questions.

@THardy98 THardy98 force-pushed the index_details_cluster_ui branch 2 times, most recently from e8a41f4 to a349767 Compare June 7, 2022 15:55
Copy link
Author

@THardy98 THardy98 left a comment

Choose a reason for hiding this comment

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

Addressed the comments so far, going to try to get these changes showing on CC console before merging anything.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @maryliag and @matthewtodd)


pkg/ui/workspaces/cluster-ui/src/api/indexDetailsApi.ts line 22 at r1 (raw file):

Previously, matthewtodd (Matthew Todd) wrote…

Do we need to export these request & response types? I don't see them being used.

Yup, unexported both.


pkg/ui/workspaces/cluster-ui/package.json line 3 at r1 (raw file):

Previously, maryliag (Marylia Gutierrez) wrote…

Also, you should only change this value if you have published to npm, which I'm assuming you didn't do

Reverted this change.

@THardy98 THardy98 force-pushed the index_details_cluster_ui branch from a349767 to 7ceb336 Compare June 7, 2022 18:39
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.

:lgtm:

Reviewed 7 of 13 files at r1, 6 of 6 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @matthewtodd)

@THardy98 THardy98 force-pushed the index_details_cluster_ui branch 8 times, most recently from 42a0394 to 9f78199 Compare June 20, 2022 18:36
This PR introduces an "indexDetailsConnected" component on cluster-ui.
This allows us to reuse the cluster-ui redux store without replicating
the same logic on CC console.

Release note: None
@THardy98 THardy98 force-pushed the index_details_cluster_ui branch from 9f78199 to fa2213a Compare June 21, 2022 15:19
@THardy98
Copy link
Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 21, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 21, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 22, 2022

Build succeeded:

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.

4 participants