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 1989889: Render 404 create page if CRD model is missing #9711

Merged
merged 1 commit into from Aug 4, 2021

Conversation

rawagner
Copy link
Contributor

@rawagner rawagner commented Aug 3, 2021

@openshift-ci openshift-ci bot added component/olm Related to OLM approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 3, 2021
@spadgett
Copy link
Member

spadgett commented Aug 3, 2021

@rawagner I realize this is how it behaved before, but it might be better to show a message like we do for the operand list:

https://github.com/openshift/console/blob/master/frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx#L432-L442

@rawagner
Copy link
Contributor Author

rawagner commented Aug 3, 2021

thats much better :) Updated

@openshift-ci openshift-ci bot added the kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated label Aug 3, 2021
@openshift-ci openshift-ci bot added the component/core Related to console core functionality label Aug 3, 2021
Copy link
Member

@invincibleJai invincibleJai left a comment

Choose a reason for hiding this comment

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

Thanks verified the changes, user is shown with 404 if the model doesn't exist 👍

verbs: ['create'],
},
useK8sModel: (groupVersionKind) => [
groupVersionKind === readonlyModel.kind ? readonlyModel : testModel,
Copy link
Member

Choose a reason for hiding this comment

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

frontend tests are complaining Invalid variable access: readonlyModel

@rawagner rawagner force-pushed the missing_model branch 3 times, most recently from cf003d3 to 1279e49 Compare August 4, 2021 06:59
@rawagner
Copy link
Contributor Author

rawagner commented Aug 4, 2021

/retest

@rawagner rawagner changed the title Do not render create page if CRD model is missing Render 404 create page if CRD model is missing Aug 4, 2021
@rawagner rawagner changed the title Render 404 create page if CRD model is missing Bug 1989889: Render 404 create page if CRD model is missing Aug 4, 2021
@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Aug 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2021

@rawagner: This pull request references Bugzilla bug 1989889, which is invalid:

  • expected the bug to target the "4.9.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1989889: Render 404 create page if CRD model is missing

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.

@rawagner
Copy link
Contributor Author

rawagner commented Aug 4, 2021

/bugzilla refresh

@openshift-ci openshift-ci bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Aug 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2021

@rawagner: This pull request references Bugzilla bug 1989889, 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.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @yapei

In response to this:

/bugzilla refresh

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 openshift-ci bot requested a review from yapei August 4, 2021 09:50
@invincibleJai
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: invincibleJai, 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

@openshift-ci openshift-ci bot merged commit 1a15311 into openshift:master Aug 4, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2021

@rawagner: All pull requests linked via external trackers have merged:

Bugzilla bug 1989889 has been moved to the MODIFIED state.

In response to this:

Bug 1989889: Render 404 create page if CRD model is missing

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
Copy link
Member

/cherry-pick release-4.8

@openshift-cherrypick-robot

@spadgett: #9711 failed to apply on top of branch "release-4.8":

Applying: Render 404 create page if CRD model is missing
Using index info to reconstruct a base tree...
M	frontend/packages/operator-lifecycle-manager/locales/en/olm.json
M	frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx
M	frontend/packages/operator-lifecycle-manager/src/components/operand/create-operand.tsx
M	frontend/packages/operator-lifecycle-manager/src/components/operand/index.spec.tsx
M	frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
M	frontend/public/components/utils/horizontal-nav.tsx
Falling back to patching base and 3-way merge...
Auto-merging frontend/public/components/utils/horizontal-nav.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
CONFLICT (content): Merge conflict in frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/operand/index.spec.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/operand/create-operand.tsx
CONFLICT (content): Merge conflict in frontend/packages/operator-lifecycle-manager/src/components/operand/create-operand.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx
CONFLICT (content): Merge conflict in frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/locales/en/olm.json
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Render 404 create page if CRD model is missing
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.8

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.9 milestone Aug 10, 2021
@rawagner
Copy link
Contributor Author

/cherry-pick release-4.8

@openshift-cherrypick-robot

@rawagner: #9711 failed to apply on top of branch "release-4.8":

Applying: Render 404 create page if CRD model is missing
Using index info to reconstruct a base tree...
M	frontend/packages/operator-lifecycle-manager/locales/en/olm.json
M	frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx
M	frontend/packages/operator-lifecycle-manager/src/components/operand/create-operand.tsx
M	frontend/packages/operator-lifecycle-manager/src/components/operand/index.spec.tsx
M	frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
M	frontend/public/components/utils/horizontal-nav.tsx
Falling back to patching base and 3-way merge...
Auto-merging frontend/public/components/utils/horizontal-nav.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
CONFLICT (content): Merge conflict in frontend/packages/operator-lifecycle-manager/src/components/operand/index.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/operand/index.spec.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/operand/create-operand.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx
CONFLICT (content): Merge conflict in frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx
Auto-merging frontend/packages/operator-lifecycle-manager/locales/en/olm.json
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Render 404 create page if CRD model is missing
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.8

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/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. 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/olm Related to OLM kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated 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