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 1824029: Handle undefined MachineConfigPools status #5068

Merged
merged 1 commit into from Apr 18, 2020

Conversation

jhadvig
Copy link
Member

@jhadvig jhadvig commented Apr 16, 2020

When creating a fresh MCP and immediately redirecting to the MCP list page, the created MCP is missing the status field. Defaulting to Unknown for the condition columns when the status is missing.
Screen:
Screenshot 2020-04-16 at 09 29 55

Wasnt really sure here if Unknown is better then -

/assign @spadgett

@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 Apr 16, 2020
@openshift-ci-robot
Copy link
Contributor

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

Bug 1824029: Handle undefined MachineConfigPools status

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.

@jhadvig
Copy link
Member Author

jhadvig commented Apr 16, 2020

/cherry-pick release-4.4

@openshift-cherrypick-robot

@jhadvig: 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.

@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 16, 2020
Comment on lines 55 to 58
if (_.isUndefined(mcp.status)) {
return K8sResourceConditionStatus.Unknown;
}
const { conditions } = mcp.status;
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
if (_.isUndefined(mcp.status)) {
return K8sResourceConditionStatus.Unknown;
}
const { conditions } = mcp.status;
const { conditions } = mcp.status || {};

@jhadvig
Copy link
Member Author

jhadvig commented Apr 17, 2020

@spadgett comment addressed. PTAL

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 Apr 17, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhadvig, 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 e2b2582 into openshift:master Apr 18, 2020
@openshift-ci-robot
Copy link
Contributor

@jhadvig: All pull requests linked via external trackers have merged: openshift/console#5068. Bugzilla bug 1824029 has been moved to the MODIFIED state.

In response to this:

Bug 1824029: Handle undefined MachineConfigPools status

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

@jhadvig: new pull request created: #5102

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 Apr 20, 2020
@jhadvig
Copy link
Member Author

jhadvig commented Jul 15, 2020

/cherry-pick release-4.3

@openshift-cherrypick-robot

@jhadvig: #5068 failed to apply on top of branch "release-4.3":

error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	frontend/public/components/machine-config-pool.tsx
Falling back to patching base and 3-way merge...
Auto-merging frontend/public/components/machine-config-pool.tsx
CONFLICT (content): Merge conflict in frontend/public/components/machine-config-pool.tsx
Patch failed at 0001 Bug 1824029: Handle undefined MachineConfigPools status

In response to this:

/cherry-pick release-4.3

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.

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

5 participants