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: move shared graph components to cluster-ui #80197

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Apr 19, 2022

Part of #74516

This commit moves shared graph functions and components to
cluster-ui package. This is to enable the new bar chart
component to share axes utilities and containers with
the older line graph component in db-console.

Release note: None

@xinhaoz xinhaoz requested a review from a team April 19, 2022 21:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz force-pushed the common-chart-utils branch 2 times, most recently from eeacd4b to 846fd0c Compare April 19, 2022 21:43
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 5 of 11 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @maryliag)

Copy link
Contributor

@jocrl jocrl left a comment

Choose a reason for hiding this comment

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

Small nit, otherwise :lgtm: !

Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @jocrl, @maryliag, and @xinhaoz)


pkg/ui/workspaces/cluster-ui/src/graphs/visualization/index.tsx, line 37 at r1 (raw file):

 * as a title and a tooltip icon.
 */
export const Visualization: React.FC<VisualizationProps> = ({

Thanks for the clean up!


pkg/ui/workspaces/db-console/src/views/cluster/util/graphs.ts, line 31 at r1 (raw file):

  MetricProps,
  QueryTimeInfo,
} from "src/views/shared/components/metricQuery";

nit: Should the db console copy of AxisUnits be deleted, and have the existing usages import from cluster-ui?

@xinhaoz xinhaoz force-pushed the common-chart-utils branch from 846fd0c to 46757ab Compare April 20, 2022 17:35
@xinhaoz
Copy link
Member Author

xinhaoz commented Apr 20, 2022

pkg/ui/workspaces/db-console/src/views/cluster/util/graphs.ts, line 31 at r1 (raw file):

Previously, jocrl (Josephine) wrote…

nit: Should the db console copy of AxisUnits be deleted, and have the existing usages import from cluster-ui?

Done.

@jocrl
Copy link
Contributor

jocrl commented Apr 20, 2022

pkg/ui/workspaces/db-console/src/views/cluster/util/graphs.ts, line 31 at r1 (raw file):

Previously, xinhaoz (Xin Hao Zhang) wrote…

Done.

Mmm is this just me/reviewable, or does it seem like these changes weren't done/pushed?

@xinhaoz xinhaoz force-pushed the common-chart-utils branch from 46757ab to adabb97 Compare April 20, 2022 18:13
@xinhaoz
Copy link
Member Author

xinhaoz commented Apr 20, 2022

pkg/ui/workspaces/db-console/src/views/cluster/util/graphs.ts, line 31 at r1 (raw file):

Previously, jocrl (Josephine) wrote…

Mmm is this just me/reviewable, or does it seem like these changes weren't done/pushed?

Oh my bad, didn't push. Done!

Copy link
Contributor

@jocrl jocrl left a comment

Choose a reason for hiding this comment

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

Thanks! :lgtm: :)

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

@xinhaoz xinhaoz force-pushed the common-chart-utils branch 4 times, most recently from f6d9539 to fdfff31 Compare April 21, 2022 18:48
Part of cockroachdb#74516

This commit moves shared graph functions and components to
cluster-ui package. This is to enable the new bar chart
component to share axes utilities and containers with
the older line graph component in db-console.

Release note: None
@xinhaoz xinhaoz force-pushed the common-chart-utils branch from fdfff31 to b094c6c Compare April 21, 2022 21:24
@xinhaoz
Copy link
Member Author

xinhaoz commented Apr 22, 2022

TFTR!
bors r=jocrl,maryliag

@craig
Copy link
Contributor

craig bot commented Apr 22, 2022

Build succeeded:

@craig craig bot merged commit 11a0a9f into cockroachdb:master Apr 22, 2022
@xinhaoz xinhaoz deleted the common-chart-utils branch June 30, 2022 18:28
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