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

Product versions are set to read-only #451

Closed
mohanboddu opened this issue Aug 8, 2017 · 3 comments
Closed

Product versions are set to read-only #451

mohanboddu opened this issue Aug 8, 2017 · 3 comments

Comments

@mohanboddu
Copy link

curl -u : --negotiate -H 'content-type: application/json' -X PATCH -d '{"active":"true"}' https://pdc.fedoraproject.org/rest_api/v1/product-versions/fedora-25/
{"detail":"Can not update read only fields: "active"."}

When I tried to change the state of a product version, it gave me the above error.

Can it be fixed or is there a reason why its set to read-only?

@simozhan
Copy link
Contributor

@mohanboddu Actually, this is on purpose. The idea is if the active releases count for this product version is greater than 0, then this product version is active, otherwise, inactive. Does it make sense?

@mohanboddu
Copy link
Author

mohanboddu commented Sep 8, 2017

@simozhan Thanks for the info, I updated the mapping of releases to product versions.

You can close this ticket.

Thanks.

@simozhan
Copy link
Contributor

@mohanboddu Ack. Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants