Skip to content

Commit

Permalink
ref: fix typing for sentry.debug_files.artifact_bundles (#72810)
Browse files Browse the repository at this point in the history
fixes errors when BaseManager is typechecked

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jun 14, 2024
1 parent d5d848c commit ed0df60
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sentry/debug_files/artifact_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,15 @@ def index_artifact_bundles_for_release(
# debounce this in case there is a persistent error?


def backfill_artifact_bundle_db_indexing(organization_id: int, release: str, dist: str):
def backfill_artifact_bundle_db_indexing(organization_id: int, release: str, dist: str) -> None:
artifact_bundles = ArtifactBundle.objects.filter(
releaseartifactbundle__organization_id=organization_id,
releaseartifactbundle__release_name=release,
releaseartifactbundle__dist_name=dist,
indexing_state=ArtifactBundleIndexingState.NOT_INDEXED.value,
)
artifact_bundles = [(ab, None) for ab in artifact_bundles]

index_artifact_bundles_for_release(organization_id, artifact_bundles)
index_artifact_bundles_for_release(organization_id, [(ab, None) for ab in artifact_bundles])


@sentry_sdk.tracing.trace
Expand Down

0 comments on commit ed0df60

Please sign in to comment.