Skip to content

Add Seq::map() and Filter\Chain::yieldRules()#75

Merged
nilmerg merged 2 commits into
mainfrom
add-seq-map-and-chain-yieldRules
May 22, 2026
Merged

Add Seq::map() and Filter\Chain::yieldRules()#75
nilmerg merged 2 commits into
mainfrom
add-seq-map-and-chain-yieldRules

Conversation

@nilmerg
Copy link
Copy Markdown
Member

@nilmerg nilmerg commented May 22, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@BastianLedererIcinga BastianLedererIcinga left a comment

Choose a reason for hiding this comment

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

Code looks good.

Comment thread src/Filter/Chain.php Outdated
nilmerg added 2 commits May 22, 2026 12:46
Allows to produce a flat sequence of rules to iterate over.
Allows to apply a callback to any iterable, unlike array_map.
@nilmerg nilmerg force-pushed the add-seq-map-and-chain-yieldRules branch from 050b04b to 9ad3e49 Compare May 22, 2026 10:46
@nilmerg nilmerg merged commit 4f68eba into main May 22, 2026
13 checks passed
@nilmerg nilmerg deleted the add-seq-map-and-chain-yieldRules branch May 22, 2026 10:49
nilmerg added a commit to Icinga/icinga-notifications-web that referenced this pull request May 22, 2026
resolve #466 

Introduce `RuleSerializer` to create Json from a configured filter.

Introduce `Icinga\Module\Notifications\Hook\V2` which no longer requires
`serializeRuleFilter()` and `getRuleFilterTargets()` as they are now
obsolete.

Adjust `EventRuleController` to skip target selection use the new
`RuleSerializer`.


require Icinga/ipl-web#380
require Icinga/ipl-web#383
require Icinga/ipl-stdlib#75
require Icinga/ipl-stdlib#76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants