Security Dashboard – Backend – Create feature flag and service
## TL;DR Add the `new_security_dashboard_attribute_filters` feature flag and create a service that takes security attribute filters and a namespace, and returns the list of project IDs that match those attributes by querying `Security::ProjectToSecurityAttribute` ## Acceptance Criteria - [x] New service Security::Dashboard::SecurityAttributesProjectFilterService exists - [ ] Service accepts `namespace` and `attribute_filters` (array of `{operator:, attributes:}`) - [ ] Service returns array of project IDs matching the filter criteria - [ ] Service handles `is_one_of` operator (projects with ANY of the specified attributes) - [ ] Service handles `is_not_one_of` operator (projects WITHOUT any of the specified attributes) - [ ] Service returns empty array when attribute_filters is empty or nil - [ ] Service is scoped to projects within the given namespace (using `traversal_ids`) ## Implementation Details 1. Create `SecurityAttributesProjectFilterService` - (Reference pattern: `Security::InventoryFilter.by_security_attributes` scope uses similar filtering logic) ## Testing Approach - [ ] Unit tests - [ ] Integration tests - [ ] Manual validation steps
issue