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

properly expose AcquireByHash through the api #696

Merged
merged 2 commits into from
Jan 27, 2018

Conversation

hsitter
Copy link
Contributor

@hsitter hsitter commented Jan 15, 2018

  • new publish calls can now enable AcquireByHash by right away (previously
    one would have had to create a new publishing endpoint and then
    explicitly switch it to AcquireByHash)
  • all json marshals of PublishedRepo now contain AcquireByHash (allows
    inspecting if a given endpoint has AcquireByHash enabled already; also
    enables verification that a switch/update actually applied a
    potential AcquireByHash change
  • update all tests to reflect that default state of AcquireByHash
  • update creation and switch testing to explicitly toggle AcquireByHash to
    make sure state mutation works as expected

Requirements

All new code should be covered with tests, documentation should be updated. CI should pass.

Description of the Change

AcquireByHash is rubbish to use via API without this.

Checklist

- new publish calls can now enable AcquireByHash by right away (previously
  one would have had to create a new publishing endpoint and then
  explicitly switch it to AcquireByHash)
- all json marshals of PublishedRepo now contain AcquireByHash (allows
  inspecting if a given endpoint has AcquireByHash enabled already; also
  enables verification that a switch/update actually applied a
  potential AcquireByHash change
- update all tests to reflect that default state of AcquireByHash
- update creation and switch testing to explicitly toggle AcquireByHash to
  make sure state mutation works as expected
@hsitter
Copy link
Contributor Author

hsitter commented Jan 15, 2018

I am not quite sure why that test fails. it seems fairly unrelated -.-

@hsitter
Copy link
Contributor Author

hsitter commented Jan 19, 2018

#698 fixes the failing test

@smira smira added the 1.3.0 label Jan 26, 2018
Copy link
Contributor

@smira smira left a comment

Choose a reason for hiding this comment

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

thanks!

@smira smira merged commit 7cd4b7a into aptly-dev:master Jan 27, 2018
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.

2 participants