Skip to content

fix: Correctly evaluate enabled metadata sources in scheduled library scan #2213

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

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

adamantike
Copy link
Contributor

Description
The existing code incorrectly maps boolean flags to metadata sources, leading to colliding True keys in the dictionary. This caused only one metadata source to be recognized during scheduled scans, even when multiple sources were enabled.

Checklist

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

… scan

The existing code incorrectly maps boolean flags to metadata sources,
leading to colliding `True` keys in the dictionary. This caused only one
metadata source to be recognized during scheduled scans, even when
multiple sources were enabled.
@adamantike adamantike requested review from gantoine and zurdi15 August 5, 2025 16:31
Copy link

trunk-io bot commented Aug 5, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

Copy link

github-actions bot commented Aug 5, 2025

Test Results

543 tests   542 ✅  1m 0s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 3906cf3.

Copy link

github-actions bot commented Aug 5, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8713 6137 70% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
backend/handler/scan_handler.py 66% 🟢
backend/tasks/scheduled/scan_library.py 89% 🟢
TOTAL 78% 🟢

updated for commit: 3906cf3 by action🐍

Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

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

nice catch!

@adamantike adamantike merged commit 8c02787 into master Aug 5, 2025
9 checks passed
@adamantike adamantike deleted the fix/scheduled-library-scan-sources branch August 5, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants