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

Bug 1796538: Fix monitoring dashboard table columns #4131

Merged
merged 1 commit into from Jan 31, 2020

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Jan 30, 2020

  • Use target refId to correctly associate column styles to the data
  • Don't show hidden table columns

/assign @rhamilto @kyoto

Before:

Screen Shot 2020-01-30 at 11 37 11 AM

After:

Screen Shot 2020-01-30 at 3 52 22 PM

* Use target `refId` to correctly associate column styles to the data
* Don't show hidden table columns
@openshift-ci-robot
Copy link
Contributor

@spadgett: This pull request references Bugzilla bug 1796538, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1796538: Fix monitoring dashboard table columns

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. component/core Related to console core functionality component/monitoring Related to monitoring labels Jan 30, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2020
@openshift-ci-robot
Copy link
Contributor

@spadgett: This pull request references Bugzilla bug 1796538, which is valid.

In response to this:

Bug 1796538: Fix monitoring dashboard table columns

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rhamilto
Copy link
Member

LGTM, but will wait on @kyoto to give final approval.

@@ -112,15 +112,26 @@ const Table: React.FC<Props> = ({ panel, pollInterval, queries }) => {
if (error) {
return <ErrorAlert message={error} />;
}
// FIXME: It's a little unclear how to associate a column style with the data. This assumes the
Copy link
Member Author

Choose a reason for hiding this comment

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

It turns out we need to look at refId on panel.targets to associate the column style with the data.

Comment on lines 88 to 89
const label = _.first(Object.keys(metric));
const tag = metric[label];
Copy link
Member Author

Choose a reason for hiding this comment

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

This still isn't exactly correct, but works for the tables we currently show.

@kyoto
Copy link
Member

kyoto commented Jan 31, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 31, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kyoto, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 87eb028 into openshift:master Jan 31, 2020
@openshift-ci-robot
Copy link
Contributor

@spadgett: All pull requests linked via external trackers have merged. Bugzilla bug 1796538 has been moved to the MODIFIED state.

In response to this:

Bug 1796538: Fix monitoring dashboard table columns

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@spadgett spadgett added this to the v4.4 milestone Feb 4, 2020
@spadgett spadgett deleted the table-columns branch February 4, 2020 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality component/monitoring Related to monitoring lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants