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 1807210: added Time Range & Refresh Interval dropdowns in monitoring dashboard #4519

Merged
merged 1 commit into from Mar 2, 2020

Conversation

abhi-kn
Copy link
Contributor

@abhi-kn abhi-kn commented Feb 26, 2020

Fixes:
https://issues.redhat.com/browse/ODC-2822

Analysis / Root cause:
Time Range & Refresh Interval drop downs in monitoring dashboard tab have been added in design lately.

Solution Description:
Time Range & Refresh Interval drop down list & functionalities required in dev-console monitoring dashboard tab is same as of Admin console. Hence exported Time Range & Refresh Interval drop downs components in @console/internal/components/monitoring/dashboards. And reused them in dev-console Monitoring Dashboard tab. With this dropdown selected values persist between Admin console Dashboard page & Dev-console Dashboard page.

Screen shots / Gifs for design review:
@openshift/team-devconsole-ux
TimeRange-RefreshInterval

Unit test coverage report:
image

Test setup: N/A

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 26, 2020
@openshift-ci-robot
Copy link
Contributor

@abhi-kn: This pull request references Bugzilla bug 1807210, 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.

3 validation(s) run on this bug - bug is open, matching expected state (open) - bug target release (4.5.0) matches configured target release for branch (4.5.0) - bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1807210: added Time Range & Refresh Interval dropdowns in monitoring dashboard

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.

@abhi-kn
Copy link
Contributor Author

abhi-kn commented Feb 26, 2020

/kind bug

@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 26, 2020
@abhi-kn
Copy link
Contributor Author

abhi-kn commented Feb 26, 2020

/assign @vikram-raj

@openshift-bot
Copy link
Contributor

/bugzilla refresh

The requirements for Bugzilla bugs have changed, recalculating validity.

@openshift-ci-robot
Copy link
Contributor

@openshift-bot: This pull request references Bugzilla bug 1807210, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

The requirements for Bugzilla bugs have changed, recalculating validity.

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.

@kyoto
Copy link
Member

kyoto commented Feb 27, 2020

This looks like it's mostly a copy / paste of the code from the admin dashboard. Shouldn't we be creating some shared components instead?

@abhi-kn abhi-kn changed the title Bug 1807210: added Time Range & Refresh Interval dropdowns in monitoring dashboard Bug 1807210: [WIP] added Time Range & Refresh Interval dropdowns in monitoring dashboard Feb 27, 2020
@christianvogt
Copy link
Contributor

christianvogt commented Feb 27, 2020

Although we haven't investigated this yet, I believe longer term we want to share the dashboard component as a whole and will require further refactoring.

@abhi-kn why not export the existing components and use them as is for now?

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 27, 2020
@abhi-kn abhi-kn changed the title Bug 1807210: [WIP] added Time Range & Refresh Interval dropdowns in monitoring dashboard Bug 1807210: added Time Range & Refresh Interval dropdowns in monitoring dashboard Feb 27, 2020
@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality component/monitoring Related to monitoring labels Feb 27, 2020
@openshift-ci-robot
Copy link
Contributor

@abhi-kn: This pull request references Bugzilla bug 1807210, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1807210: added Time Range & Refresh Interval dropdowns in monitoring dashboard

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.

@abhi-kn
Copy link
Contributor Author

abhi-kn commented Feb 27, 2020

/cherry-pick release-4.4

@openshift-cherrypick-robot

@abhi-kn: once the present PR merges, I will cherry-pick it on top of release-4.4 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.4

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.

display: flex;
float: right;
align-self: flex-end;
margin-top: -65px;
Copy link
Contributor

Choose a reason for hiding this comment

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

For now this is fine.
We should push back on UX for this in future because:

  • we don't have components for this right now
  • it's a contextual item that appears at the same height as the tabs that set the context below
  • there's no consideration for responsive mobile layout. Right now it overlaps the tabs on mobile.

cc @openshift/team-devconsole-ux

@abhi-kn
Copy link
Contributor Author

abhi-kn commented Feb 27, 2020

/retest

@invincibleJai
Copy link
Member

/lgtm

verified locally

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

/approve

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 28, 2020
@openshift-ci-robot openshift-ci-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 2, 2020
@abhi-kn
Copy link
Contributor Author

abhi-kn commented Mar 2, 2020

/retest

1 similar comment
@abhi-kn
Copy link
Contributor Author

abhi-kn commented Mar 2, 2020

/retest

@invincibleJai
Copy link
Member

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhi-kn, christianvogt, invincibleJai

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 b9397da into openshift:master Mar 2, 2020
@openshift-ci-robot
Copy link
Contributor

@abhi-kn: All pull requests linked via external trackers have merged. Bugzilla bug 1807210 has been moved to the MODIFIED state.

In response to this:

Bug 1807210: added Time Range & Refresh Interval dropdowns in monitoring dashboard

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-cherrypick-robot

@abhi-kn: new pull request created: #4581

In response to this:

/cherry-pick release-4.4

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.5 milestone Mar 9, 2020
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/dev-console Related to dev-console component/monitoring Related to monitoring kind/bug Categorizes issue or PR as related to a bug. 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

10 participants