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 1808394: remove default sorting from metrics table so query sort is prese… #4559

Merged
merged 1 commit into from Mar 3, 2020

Conversation

rhamilto
Copy link
Member

@rhamilto rhamilto commented Feb 28, 2020

…rved

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1808394

Do not sort data by default so the results match the query. The use can still sort by column headers, however.

Before:
Screen Shot 2020-02-28 at 2 05 37 PM

After:
Screen Shot 2020-03-02 at 2 57 54 PM

[1]
Screen Shot 2020-02-28 at 2 08 04 PM

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 28, 2020
@openshift-ci-robot
Copy link
Contributor

@rhamilto: This pull request references Bugzilla bug 1808394, 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) 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 ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

[WIP] Bug 1808394: remove sorting from metric table so query sort is prese…

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/S Denotes a PR that changes 10-29 lines, ignoring generated files. component/core Related to console core functionality component/monitoring Related to monitoring labels Feb 28, 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 Feb 28, 2020
@openshift-ci-robot
Copy link
Contributor

@rhamilto: This pull request references Bugzilla bug 1808394, 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:

[WIP] Bug 1808394: remove sorting from metric table so query sort is prese…

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 rhamilto changed the title [WIP] Bug 1808394: remove sorting from metric table so query sort is prese… [WIP] Bug 1808394: remove sorting from metrics table so query sort is prese… Feb 28, 2020
@kyoto
Copy link
Member

kyoto commented Mar 1, 2020

/hold

I don't think we should make this change. The issue isn't a bug, but an intentional design choice to allow sorting the results by any column.

Perhaps we can find a better solution than the current behavior, but I don't think we should be removing the results sorting functionality because it is useful.

Also, I think this is an RFE, rather than a bug fix.

FYI @cshinn @sichvoge

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 1, 2020
@spadgett
Copy link
Member

spadgett commented Mar 1, 2020

Do we have to disable sorting altogether? We could not sort by default, but let the user click column headers for a different sort.

@rhamilto
Copy link
Member Author

rhamilto commented Mar 2, 2020

The issue isn't a bug, but an intentional design choice to allow sorting the results by any column.

I disagree. Setting a default sort in the table is a bug. If the query includes sort and the resulting data doesn't reflect the query, that's a bug.

Do we have to disable sorting altogether? We could not sort by default, but let the user click column headers for a different sort.

Good suggestion. Let me explore this.

@rhamilto rhamilto changed the title [WIP] Bug 1808394: remove sorting from metrics table so query sort is prese… [WIP] Bug 1808394: remove default sorting from metrics table so query sort is prese… Mar 2, 2020
@rhamilto rhamilto changed the title [WIP] Bug 1808394: remove default sorting from metrics table so query sort is prese… Bug 1808394: remove sorting from metrics table so query sort is prese… Mar 2, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 2, 2020
@openshift-ci-robot
Copy link
Contributor

@rhamilto: This pull request references Bugzilla bug 1808394, 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 1808394: remove sorting from metrics table so query sort is prese…

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 Author

rhamilto commented Mar 2, 2020

Updated to remove the default sort in the table, but still allow sorting via table headers.

@rhamilto rhamilto changed the title Bug 1808394: remove sorting from metrics table so query sort is prese… Bug 1808394: remove default sorting from metrics table so query sort is prese… Mar 2, 2020
@kyoto
Copy link
Member

kyoto commented Mar 3, 2020

/lgtm
/hold cancel

This solution looks good to me. Thanks @rhamilto!

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 3, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 3, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit d81d1cf into openshift:master Mar 3, 2020
@openshift-ci-robot
Copy link
Contributor

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

In response to this:

Bug 1808394: remove default sorting from metrics table so query sort is prese…

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 Mar 3, 2020

/cherry-pick release-4.4

@openshift-cherrypick-robot

@kyoto: new pull request created: #4594

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.

@rhamilto rhamilto deleted the bz1808394 branch March 3, 2020 13:55
@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/monitoring Related to monitoring lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants