Skip to content

Conversation

ripienaar
Copy link
Collaborator

This shows --allow-batch in stream add but in edit shows --[no-]allow-batch in this case the negation option is shown even when default is false because they exist to disable configuration features if set

@ripienaar ripienaar requested a review from ploubser July 17, 2025 09:55
This shows --allow-batch in stream add but in edit shows --[no-]allow-batch
in this case the negation option is shown even when default is false because
they exist to disable configuration features if set

Signed-off-by: R.I.Pienaar <[email protected]>
Signed-off-by: R.I.Pienaar <[email protected]>
@ripienaar ripienaar force-pushed the resource_edit_negation branch from 50a3197 to 36163ec Compare July 17, 2025 10:24
f.Flag("allow-counter", "Configures the Stream as a distributed counter").IsSetByUser(&c.allowCounterIsSet).UnNegatableBoolVar(&c.allowCounter)
f.Flag("allow-rollup", "Allows roll-ups to be done by publishing messages with special headers").IsSetByUser(&c.allowRollupSet).UnNegatableBoolVar(&c.allowRollup)
f.Flag("deny-delete", "Deny messages from being deleted via the API").IsSetByUser(&c.denyDeleteSet).UnNegatableBoolVar(&c.denyDelete)
f.Flag("deny-purge", "Deny entire stream or subject purges via the API").IsSetByUser(&c.denyPurgeSet).BoolVar(&c.denyPurge)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cant do this one as it breaks existing scripts

Copy link
Collaborator

@ploubser ploubser left a comment

Choose a reason for hiding this comment

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

👍

@ripienaar ripienaar closed this Sep 22, 2025
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