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

Extend Handlers' EnqueueAll with enqueing func parameter #1974

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

rzetelskik
Copy link
Member

Description of your changes: Conditionally enqueueing a subset of controlled objects seems to be a repeating use case in our codebase. This PR extends the EnqueueAll handler method parameters with an enqueueing function, making it possible to use function composition for such use cases.

Xref: https://github.com/scylladb/scylla-operator-enterprise/pull/25#discussion_r1638032987

Which issue is resolved by this Pull Request:
Resolves #

/kind feature
/priority important-longterm

/cc zimnx
/assign zimnx

@scylla-operator-bot scylla-operator-bot bot added kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Jun 15, 2024
@scylla-operator-bot scylla-operator-bot bot requested a review from zimnx June 15, 2024 13:23
@scylla-operator-bot scylla-operator-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 15, 2024
Copy link
Collaborator

@zimnx zimnx left a comment

Choose a reason for hiding this comment

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

/lgtm

@scylla-operator-bot scylla-operator-bot bot added the lgtm Indicates that a PR is ready to be merged. label Jun 17, 2024
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rzetelskik, zimnx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@scylla-operator-bot scylla-operator-bot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2024
@scylla-operator-bot scylla-operator-bot bot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Jun 17, 2024
@scylla-operator-bot scylla-operator-bot bot merged commit 56a7e01 into scylladb:master Jun 17, 2024
12 checks passed
@rzetelskik rzetelskik deleted the enqueue-all branch June 17, 2024 13:46
@tnozicka tnozicka added kind/machinery Categorizes issue or PR as related to Makefile, scripts or similar changes. and removed kind/feature Categorizes issue or PR as related to a new feature. labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/machinery Categorizes issue or PR as related to Makefile, scripts or similar changes. lgtm Indicates that a PR is ready to be merged. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants