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

add PodRing to KnativeOverview Component #3266

Merged

Conversation

sahil143
Copy link
Contributor

@sahil143 sahil143 commented Nov 6, 2019

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. component/knative Related to knative-plugin component/shared Related to console-shared labels Nov 6, 2019
@invincibleJai
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 7, 2019
{obj.kind === RevisionModel.kind && (
<div className="resource-overview__pod-counts">
<PodRing
pods={current ? current.pods : []}
Copy link
Member

Choose a reason for hiding this comment

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

is there a possibility of current is defined but pods getting undefined. Check would help

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@invincibleJai no, If current is defined pods are going to be an empty array if no pods are available

@invincibleJai
Copy link
Member

@sahil143 have verified changes locally, works as expected. Have added one comment take a look.

@sahil143
Copy link
Contributor Author

sahil143 commented Nov 8, 2019

/hold

@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 Nov 8, 2019
@sahil143
Copy link
Contributor Author

/hold cancel

@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 Nov 11, 2019
const isKnative = _.get(obj, 'metadata.ownerReferences[0].kind') === 'Revision';
const isScalingAllowed = !isKnative && editable && enableScaling;
const isKnativeRevision = obj.kind === 'Revision';
const isScalingAllowed = !isKnativeRevision && editable && enableScaling;
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs a tech debt item to avoid bringing in knativeisms into the shared code. I'm not sure how else to solve this right now though.
We probably need to create some extensions.

@christianvogt
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 12, 2019
@openshift-merge-robot openshift-merge-robot merged commit eaf251c into openshift:master Nov 12, 2019
@spadgett spadgett added this to the v4.3 milestone Nov 19, 2019
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/knative Related to knative-plugin component/shared Related to console-shared 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

6 participants