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

Made singulars for Insights plugin #6991

Merged

Conversation

bond95
Copy link
Contributor

@bond95 bond95 commented Oct 23, 2020

Fixed issues label for single issue. PTAL @vojtechszocs @spadgett @doruskova

image
image

@openshift-ci-robot openshift-ci-robot added component/insights Related to insights plugin approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 23, 2020
Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

lgtm, just one nit

@@ -36,7 +36,7 @@ export const InsightsPopup: React.FC<PrometheusHealthPopupProps> = ({ responses,
y: v,
}))}
title={`${numberOfIssues}`}
subTitle="Total issues"
subTitle={`Total ${numberOfIssues > 1 ? 'issues' : 'issue'}`}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
subTitle={`Total ${numberOfIssues > 1 ? 'issues' : 'issue'}`}
subTitle={`Total ${numberOfIssues === 1 ? 'issue' : 'issues'}`}

This is better in general since you want "0 issues" if it's ever 0. I realize that hasIssues should be false here, but I'd rather code defensively in case that ever changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@bond95
Copy link
Contributor Author

bond95 commented Oct 26, 2020

/retest

2 similar comments
@bond95
Copy link
Contributor Author

bond95 commented Oct 26, 2020

/retest

@bond95
Copy link
Contributor Author

bond95 commented Oct 26, 2020

/retest

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bond95, 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 d7af33c into openshift:master Oct 26, 2020
@spadgett spadgett added this to the v4.7 milestone Oct 26, 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. component/insights Related to insights plugin lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants