Skip to content

feat(preprod): Add analysis_file_id field #93826

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 2 commits into from
Jun 18, 2025

Conversation

NicoHinderling
Copy link
Contributor

Add this new field so that we have a reference in the preprod table for which file in filestore is the analysis (treemap)

@NicoHinderling NicoHinderling requested a review from a team as a code owner June 18, 2025 16:09
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 18, 2025
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/preprod/migrations/0006_add_analysis_file_id_field.py

for 0006_add_analysis_file_id_field in preprod

--
-- Add field analysis_file_id to preprodartifact
--
ALTER TABLE "sentry_preprodartifact" ADD COLUMN "analysis_file_id" bigint NULL;
CREATE INDEX CONCURRENTLY "sentry_preprodartifact_analysis_file_id_5ed6a408" ON "sentry_preprodartifact" ("analysis_file_id");

@@ -113,6 +113,9 @@ def as_choices(cls):

commit = FlexibleForeignKey("sentry.Commit", null=True, on_delete=models.SET_NULL)

# Nullable in case the file upload fails
Copy link
Member

Choose a reason for hiding this comment

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

Size analysis also won't necessarily run for every customer based on quotas.

Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93826      +/-   ##
==========================================
+ Coverage   85.65%   88.02%   +2.37%     
==========================================
  Files       10331    10332       +1     
  Lines      596435   596405      -30     
  Branches    23161    23161              
==========================================
+ Hits       510869   524983   +14114     
+ Misses      85107    70963   -14144     
  Partials      459      459              

@NicoHinderling NicoHinderling merged commit dbd96ca into master Jun 18, 2025
64 checks passed
@NicoHinderling NicoHinderling deleted the add-analysis-file-id-col-to-preprod branch June 18, 2025 16:50
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
Add this new field so that we have a reference in the preprod table for
which file in filestore is the analysis (treemap)
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.

2 participants