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

UpdateProject Fails for Projects of scratch Type #766

Closed
acornett21 opened this issue Aug 17, 2022 · 0 comments · Fixed by #768
Closed

UpdateProject Fails for Projects of scratch Type #766

acornett21 opened this issue Aug 17, 2022 · 0 comments · Fixed by #768
Assignees
Labels
blocker Indicates that a partner is blocked from submitting results kind/bug Categorizes issue or PR as related to a bug.

Comments

@acornett21
Copy link
Contributor

Bug Description

Since preflight is sending back all the data to pyxis that it received, pyxis throws a validation error

" received non 200 status code in updateProject: {\"detail\": {\"container\": {\"type\": [\"Partners can set a container type only to one of ['container', 'operator bundle image']\"]}}, \"status\": 400, \"title\": \"Bad Request\", \"type\": \"about:blank\", \"trace_id\": \"0xefcd96533f1e57be9089971990da23ec\"}"

Version and Command Invocation

main

Steps to Reproduce:

  1. Have someone setup a project as scratch (we don't have access to do this)
  2. run preflight check container --submit for the above project

Expected Result

I'd expect the partner to be able to submit their image.

Actual Result

Pyxis throws a validation error, since partners are not allowed to set the project type as scratch which is caused by preflight sending back all of the data we recieved.

Additional Context

preflight should only send the data we have set/updated in our PATCH request to pyxis.

When this issues is close so should this JIRA

@acornett21 acornett21 added kind/bug Categorizes issue or PR as related to a bug. blocker Indicates that a partner is blocked from submitting results labels Aug 17, 2022
@komish komish self-assigned this Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Indicates that a partner is blocked from submitting results kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants