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

fix(versions): fix ability to set main version #872

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Aug 24, 2023

🚥 Resolves #871

🧰 Changes

#861 introduced a regression where the CLI will always set is_hidden: true in the API payload if the main flag is set to true, which throws an error in our version model validation 😬 this PR fixes that.

🧬 QA & Testing

Confirmed the fix locally and added tests with strict payload assertions to make sure everything checks out.

@kanadgupta kanadgupta merged commit ba7ea03 into next Aug 24, 2023
9 checks passed
@kanadgupta kanadgupta deleted the versions/create-or-update-main-version branch August 24, 2023 14:21
kanadgupta pushed a commit that referenced this pull request Aug 24, 2023
## [8.6.6-next.1](v8.6.5...v8.6.6-next.1) (2023-08-24)

### Bug Fixes

* **versions:** fix ability to set main version ([#872](#872)) ([ba7ea03](ba7ea03))

[skip ci]
kanadgupta pushed a commit that referenced this pull request Aug 24, 2023
## [8.6.6](v8.6.5...v8.6.6) (2023-08-24)

### Bug Fixes

* **versions:** fix ability to set main version ([#872](#872)) ([ba7ea03](ba7ea03))

[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command:versions Issues pertaining to the `versions` commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

impossible to create a main version with versions:create or version:update and --main=true in 8.6.5
2 participants