Skip to content

Conversation

@NicoHinderling
Copy link
Contributor

@NicoHinderling NicoHinderling requested a review from a team as a code owner February 9, 2026 22:17
@linear
Copy link

linear bot commented Feb 9, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 9, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

queryset = queryset.annotate_platform_name()
queryset = queryset.exclude(
preprodartifactsizemetrics__state=PreprodArtifactSizeMetrics.SizeAnalysisState.NOT_RAN,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Exclude filter leaks into quota/processing pipeline logic

High Severity

The NOT_RAN exclude added to queryset_for_query unintentionally affects the processing pipeline. queryset_for_query is also called by artifact_matches_query (used in quotas.pyshould_run_feature), meaning artifacts with any NOT_RAN size metric will fail quota/filter checks for all features, not just display. In project_preprod_artifact_update.py, when size analysis is skipped, a NOT_RAN metric is created before should_run_distribution is called—so distribution gets incorrectly skipped too. Similarly, the rerun-analysis endpoint would fail to re-process artifacts that already have NOT_RAN metrics.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is OK for now. I think the AI is slightly wrong, but this change is basically only for presentation layer list cases, so it should not affect any actual running of logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant