-
Notifications
You must be signed in to change notification settings - Fork 47
feat(mettagrid): add CollectiveFilter for filtering by collective membership #4956
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
base: 01-16-feat_mettagrid_add_objecttypefilter_for_filtering_by_object_type_add_objecttypefilter_that_checks_if_target_has_a_specific_tag._used_by_events_to_select_which_objects_to_apply_mutations_to._co-authored-by_claude_opus_4.5_noreply
Are you sure you want to change the base?
feat(mettagrid): add CollectiveFilter for filtering by collective membership #4956
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 89bfaf4216
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
89bfaf4 to
cdb5d2d
Compare
9386e8d to
c025c5f
Compare
cdb5d2d to
162ef91
Compare
c025c5f to
76dc6a7
Compare
162ef91 to
2ea8636
Compare
2ea8636 to
3155039
Compare
76dc6a7 to
f2eb41e
Compare
3155039 to
cc254e0
Compare
f2eb41e to
af6dca4
Compare
cc254e0 to
75cd391
Compare
af6dca4 to
1c95e70
Compare
75cd391 to
e04bec5
Compare
2fdbe93 to
b0f9602
Compare
e04bec5 to
094c395
Compare
b0f9602 to
481ff9d
Compare
094c395 to
fd2d361
Compare
481ff9d to
93ddb90
Compare
fd2d361 to
54f81b3
Compare
| } | ||
|
|
||
| // Check if the collective name matches | ||
| return coll->name == _config.collective_name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check by id
…bership Add CollectiveFilter that checks if target belongs to a specific collective. Used by events to select objects by their collective membership. Python: - CollectiveFilterConfig with filter_type="collective" and collective field - BelongsToCollective() helper function - Added to AnyFilter union C++: - CollectiveFilterConfig struct in handler_config.hpp - CollectiveFilter class in filter.hpp - Added to FilterConfig variant Tests: - test_collective_filter.py with creation, helper, serialization tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
93ddb90 to
8adb6df
Compare
54f81b3 to
83c898c
Compare

Add CollectiveFilter that checks if target belongs to a specific collective.
Used by events to select objects by their collective membership.
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com