warn about inability to downgrade after activating bucket type #827
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed.
This implementation is less ideal than potentially writing a flag, serialized through the claimant like other bucket type operations, and checking that. A potential degenerate case is a user creating thousands of bucket types without activating any of them. However, after creating 50k+ bucket types without activation the time to create or activate a type in scientific"" tests on my machine didn't take noticeably longer than on a node with only a few types.
Example:
User first has no types:
User first creates a type:
User creates another type, but no types have been activated, so warning still emitted. Same
when
create
is called again to change the properties on the type.User activates a type, a final warning is emitted:
Future operations have no warning: