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

Remove the project type when submitting updates to pyxis #768

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

komish
Copy link
Contributor

@komish komish commented Aug 18, 2022

Fixes #766

The issue listed above results from our CertProject struct, which contains the project type. Certain values for the project's type cannot be set via the external API, but our submission included them, resulting in a rejection from the API.

This patch adjusts the CertProject.Type key such that it uses omitempty, and on update calls, we zero out the value of CertProject.Type before we submit.

We'll want to cut a beta release after this merges, which can then be tested by the blocked partner.

Signed-off-by: Jose R. Gonzalez jose@flutes.dev

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2022
Comment on lines -102 to +104
Name string `json:"name"` // required
ProjectStatus string `json:"project_status"` // required
Type string `json:"type" default:"Containers"` // required
Name string `json:"name"` // required
ProjectStatus string `json:"project_status"` // required
Type string `json:"type,omitempty"` // required
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A note to reviewers: These lines all changed because the comment's alignment changed.

Copy link
Contributor

@skattoju skattoju 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 openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2022
@coveralls
Copy link

coveralls commented Aug 18, 2022

Coverage Status

Coverage increased (+0.04%) to 84.494% when pulling 9b62c34 on komish:fix-submit-patch into 8a685ae on redhat-openshift-ecosystem:main.

Signed-off-by: Jose R. Gonzalez <jose@flutes.dev>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2022
@openshift-ci
Copy link

openshift-ci bot commented Aug 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: acornett21, komish, skattoju

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:
  • OWNERS [acornett21,komish,skattoju]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@komish komish merged commit 4c11c2a into redhat-openshift-ecosystem:main Aug 18, 2022
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UpdateProject Fails for Projects of scratch Type
5 participants