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

typings: Add the release versioning properties #1093

Merged
2 commits merged into from
Aug 16, 2021
Merged

typings: Add the release versioning properties #1093

2 commits merged into from
Aug 16, 2021

Conversation

thgreasi
Copy link
Member

@thgreasi thgreasi commented May 20, 2021

Setting a 3-digit semver to the release.semver field
is the suggested approach, instead of setting the
release.release_version field. This fixes the unique
constraint issue that release_version was often
causing to users, since in case a duplicate semver is
provided, the backend will auto-increment the
revision field of the release. A composite
release.version field is also added, which has a raw
field with the complete unique version of the release.
Also deprecates the release.release_version property.

Change-type: minor
Depends-on: https://github.com/balena-io/balena-api/pull/3249
See: https://www.flowdock.com/app/rulemotion/r-supervisor/threads/JN2-gnspQ-v6WaeWCvm9T8NYDY1
HQ: https://jel.ly.fish/8ea1c390-9a85-402d-978c-4d31dcb0d235
Signed-off-by: Thodoris Greasidis thodoris@balena.io


Contributor checklist
  • Includes tests
  • Includes typings
  • Includes updated documentation
  • Includes updated build output

@thgreasi thgreasi self-assigned this May 20, 2021
@thgreasi thgreasi force-pushed the release-versioning branch 3 times, most recently from 4b12bfa to d53b630 Compare August 15, 2021 12:37
Setting a 3-digit semver to the release.semver field
is the suggested approach, instead of setting the
release.release_version field. This fixes the unique
constraint issue that release_version was often
causing to users, since in case a duplicate semver is
provided, the backend will auto-increment the
revision field of the release. A composite
release.version field is also added, which has a raw
field with the complete unique version of the release.

Change-type: minor
Depends-on: balena-io/balena-api#3249
See: https://www.flowdock.com/app/rulemotion/r-supervisor/threads/JN2-gnspQ-v6WaeWCvm9T8NYDY1
HQ: https://jel.ly.fish/8ea1c390-9a85-402d-978c-4d31dcb0d235
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
Setting a 3-digit semver to the release.semver field
is the suggested approach.

Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
@thgreasi thgreasi marked this pull request as ready for review August 16, 2021 11:16
@thgreasi
Copy link
Member Author

@balena-ci I self-certify!

@ghost ghost merged commit e76a199 into master Aug 16, 2021
This pull request was 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

Successfully merging this pull request may close these issues.

1 participant