feat(preprod): Add snapshot details to admin info endpoint#112482
Merged
NicoHinderling merged 3 commits intomasterfrom Apr 8, 2026
Merged
feat(preprod): Add snapshot details to admin info endpoint#112482NicoHinderling merged 3 commits intomasterfrom
NicoHinderling merged 3 commits intomasterfrom
Conversation
Add snapshot metrics, comparison, and approval data to the preprod artifact admin info endpoint for debugging visibility.
…admin info endpoint
Add order_by("-date_added") to snapshot comparison and approval queries
to ensure deterministic results with .first(). Add missing date_updated
field to snapshot_approval serialization for consistency.
rbro112
reviewed
Apr 8, 2026
rbro112
approved these changes
Apr 8, 2026
…ify serialization Query snapshot_approval independently of snapshot_metrics since approvals are linked to preprod_artifact_id, not metrics. Use .values() queries for snapshot_comparison and snapshot_approval to return dicts directly, letting DRF handle datetime serialization. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ec0c211. Configure here.
george-sentry
pushed a commit
that referenced
this pull request
Apr 9, 2026
Add snapshot metrics, comparison, and approval data to the preprod artifact admin info endpoint. This gives better debugging visibility into the snapshot pipeline state for a given artifact — metrics ingestion, comparison results, and approval status — all in one place. Queries are only executed when snapshot metrics exist for the artifact, avoiding unnecessary DB hits. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add snapshot metrics, comparison, and approval data to the preprod artifact
admin info endpoint. This gives better debugging visibility into the snapshot
pipeline state for a given artifact — metrics ingestion, comparison results,
and approval status — all in one place.
Queries are only executed when snapshot metrics exist for the artifact,
avoiding unnecessary DB hits.