-
Notifications
You must be signed in to change notification settings - Fork 2
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
Prevent unexisting aliases #276
Prevent unexisting aliases #276
Conversation
Great. Thanks for this :) There is a fair bit of lint adjustments here, can you give a short description of what the changes are? Also for the sake of the release notes. |
It was basically missing a validation of the version if I read this correctly. Right? |
That is correct. It does a check for package version before the alias is updated 👍 Also, I gave you an @ for the entry point for the fix. |
I guess this adds a 400 - BadRequest to the alias POST documentation: https://eik.dev/docs/server_rest_api#update-alias |
Are you able to update the tests? |
It leaves a Yes, I will absolutely add some tests. I also think it would be beneficial to pull back the lint fix in this PR to keep it more clean. |
The API and CLI seems to be fine but there is a new status code in the POST method not reflected in the doc but I can check and update the doc when this is merged :)
Seems like there is just two tests failing due to the change in the returned http status code so it should be to just alter the status code in the tests. If your able to add a test for the version check its great 👍
That would be great but might break the build. If it does its no stress. I see whats done here. |
One small alteration to the implementation; I thought it would make more sense to just check if Also, I added the As for the release notes:
|
Looks good to me 👍 |
## [1.2.24](v1.2.23...v1.2.24) (2021-10-11) ### Bug Fixes * prevent unexisting aliases ([#276](#276)) ([a5b9601](a5b9601))
🎉 This PR is included in version 1.2.24 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Released :) We depend on semantic release and renovate bot for auto release and dependency updates in this project so it should propagate to the service module by it self soon. |
Fixes eik-lib/issues#10