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

default_policy: Builder: forbid preferring rack without specifing datacenter #775

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

wprzytula
Copy link
Collaborator

This is an API restriction continuing of what has already been done in bb09756: as the case of providing preferred rack without specifying the preferred datacenter is invalid, in spirit of the principle “Make illegal states unrepresentable”, DefaultBuilder's API is changed accordingly to disallow creating such configuration.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • [ ] I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • [ ] I have adjusted the documentation in ./docs/source/.
  • [ ] I added appropriate Fixes: annotations to PR description.

@wprzytula wprzytula added the API-breaking This might introduce incompatible API changes label Jul 30, 2023
@wprzytula wprzytula force-pushed the default-policy-harden-api branch 2 times, most recently from 49b5289 to 63378a5 Compare July 30, 2023 18:02
@wprzytula wprzytula added this to the 0.10.0 milestone Jul 30, 2023
This is an API restriction continuing of what has already been done
in bb09756: as the case of providing
preferred rack without specifying the preferred datacenter is invalid,
in spirit of the principle “Make illegal states unrepresentable”,
`DefaultBuilder`'s API is changed accordingly to disallow creating
such configuration.
A stray backslash is deleted from a docstring.

Docs are updated to reflect the API change.
@wprzytula
Copy link
Collaborator Author

v2: made docs less implementation-oriented, more conceptual.

@piodul piodul merged commit 8242efc into scylladb:main Aug 1, 2023
@wprzytula wprzytula deleted the default-policy-harden-api branch August 1, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API-breaking This might introduce incompatible API changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants