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-fix: Fixing updated prometheus queries in object service dashboard #2255

Merged

Conversation

afreen23
Copy link
Contributor

@afreen23 afreen23 commented Aug 4, 2019

https://jira.coreos.com/browse/RHSTOR-662

change of num pools and buckets query in health card
change of savings query in object data reduction card
change of system name query in details card

The changed queries are raising bugs and some can raise bugs in object service dashboard.

@openshift-ci-robot openshift-ci-robot added the component/noobaa Related to noobaa-storage-plugin label Aug 4, 2019
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 4, 2019
@afreen23
Copy link
Contributor Author

afreen23 commented Aug 4, 2019

/kind bug

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 4, 2019
@afreen23 afreen23 force-pushed the bug-fix-prometheus-query branch 3 times, most recently from ec7260a to 52a032d Compare August 6, 2019 12:49
@afreen23
Copy link
Contributor Author

afreen23 commented Aug 6, 2019

@rawagner @cloudbehl please review the PR

: null;
const savingsFormattted = humanizeBinaryBytesWithoutB(Number(savings));
text = (
<span className="nb-object-data-reduction-card__row-status-item-text">
{savingsFormattted.value}
{savingsFormattted.unit}({savingsPercentage.string})
{savingsFormattted.unit}
Copy link
Contributor

@rawagner rawagner Aug 6, 2019

Choose a reason for hiding this comment

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

you should use savingsFormattted.string instead of value and unit as string property adds space between unit and value per unit definition.

also it seems to me that savingsFormattted and savingsPercentage is going to be shown right next to each other without any space ? like 20Ki(10%) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

made it spacious @rawagner so as to be consistent with overall console
per

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 6, 2019
change of num pools query in health card
change of savings query in object data reduction card
change of system name query in details card

Signed-off-by: Afreen Rahman <afrahman@redhat.com>
@afreen23 afreen23 force-pushed the bug-fix-prometheus-query branch from 52a032d to 6383368 Compare August 6, 2019 15:31
@rawagner
Copy link
Contributor

rawagner commented Aug 6, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afreen23, cloudbehl, rawagner

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

@cloudbehl
Copy link
Contributor

/test e2e-aws-console

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. component/noobaa Related to noobaa-storage-plugin 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.

6 participants