Skip to content

Prevents auto registration of NumberOfChildrenCollector if it is not needed#89

Merged
Orrison merged 1 commit intomainfrom
collector-fix
Oct 16, 2025
Merged

Prevents auto registration of NumberOfChildrenCollector if it is not needed#89
Orrison merged 1 commit intomainfrom
collector-fix

Conversation

@Orrison
Copy link
Owner

@Orrison Orrison commented Oct 16, 2025

Does not register NumberOfChildrenCollector if you do not need it.

…iles

Signed-off-by: Kevin Ullyott <ullyott.kevin@gmail.com>
@Orrison Orrison requested a review from Copilot October 16, 2025 05:25
@Orrison Orrison added the bug Something isn't working label Oct 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR stops auto-registering the NumberOfChildrenCollector and updates tests and docs to require explicit collector registration when using the NumberOfChildren rule.

  • Remove collector service from the extension’s default services.
  • Add explicit collector registration to NumberOfChildren test configs.
  • Update documentation to instruct users to register the collector alongside the rule.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
config/extension.neon Removes auto-registration of NumberOfChildrenCollector to avoid unnecessary overhead when the rule isn’t used.
tests/Rules/NumberOfChildren/config/default.neon Adds explicit collector service registration for tests.
tests/Rules/NumberOfChildren/config/maximum-one.neon Adds explicit collector service registration for tests.
tests/Rules/NumberOfChildren/config/maximum-two.neon Adds explicit collector service registration for tests.
docs/NumberOfChildren.md Updates usage docs to require registering the collector and clarifies the requirement.

@Orrison Orrison merged commit 56f4d5f into main Oct 16, 2025
5 checks passed
@Orrison Orrison deleted the collector-fix branch October 16, 2025 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants