Radarr/.github/codeql/codeql-config.yml
Cody Kickertz a187cee132
feat(monitoring): implement hierarchical monitoring for Author/Series/Book/Audiobook (#132)
* feat(monitoring): implement hierarchical monitoring for Author/Series/Book/Audiobook

- Add cascade logic: unmonitoring parent cascades to children
- Re-monitoring parent does not auto-monitor children (explicit control)
- EffectivelyMonitored computed from item AND all ancestors
- Database indexes for efficient cascade queries (migration 248)
- AuthorMonitoringChangedEvent and SeriesMonitoringChangedEvent
- EffectivelyMonitored field added to Book/Audiobook API resources

Closes #2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(monitoring): reduce code duplication in HierarchicalMonitoringService

- Extract common ancestor check to IsAncestorUnmonitored helper
- Consolidate monitoring context retrieval to GetMonitoringContext
- Create generic UnmonitorEntities helper for cascade operations
- Reduce code from 302 to 233 lines while preserving all functionality

* ci(sonar): exclude intentional structural duplication from CPD

* ci(codeql): exclude user-controlled-bypass for monitoring cascade logic

---------

Co-authored-by: admin <admin@ardentleatherworks.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 12:04:21 -06:00

30 lines
711 B
YAML

name: "Aletheia CodeQL Configuration"
queries:
- uses: security-extended
packs:
csharp:
- .github/codeql/extensions
query-filters:
- exclude:
id: cs/log-forging
- exclude:
id: cs/path-injection
- exclude:
id: cs/cleartext-storage-of-sensitive-information
- exclude:
id: cs/web/insecure-direct-object-reference
- exclude:
id: cs/web/missing-function-level-access-control
# User-controlled monitoring flag is expected behavior for hierarchical monitoring
# The cascade operation is the intended design when admin changes monitoring status
- exclude:
id: cs/user-controlled-bypass
paths-ignore:
- node_modules
- _output
- _tests
- _artifacts