Skip to content

ref(preprod): Remove deprecated comparison_run_info and approval_info from snapshot detail API#115652

Merged
mtopo27 merged 1 commit into
masterfrom
maxtopolsky/eme-1149-remove-deprecated-detail-fields
May 15, 2026
Merged

ref(preprod): Remove deprecated comparison_run_info and approval_info from snapshot detail API#115652
mtopo27 merged 1 commit into
masterfrom
maxtopolsky/eme-1149-remove-deprecated-detail-fields

Conversation

@mtopo27
Copy link
Copy Markdown
Contributor

@mtopo27 mtopo27 commented May 15, 2026

The flat fields (comparison_state, approval_status, comparison_error_message, approvers) added in #115604 fully replace the nested comparison_run_info and approval_info objects. The frontend migrated to the flat fields in #115633. This removes the dead nested fields and the code that built them.

Removed from the API response

SnapshotComparisonRunInfo (state, completed_at, duration_ms) and SnapshotApprovalInfo (status, approvers, is_auto_approved) Pydantic classes are deleted along with their fields on SnapshotDetailsApiResponse. The endpoint code that assembled these objects is removed. The approver-building loop and derive_snapshot_status() call are kept — they feed the flat approvers and status fields.

comparison_type is intentionally kept — the frontend still uses it for the diff view toggle and analytics.

Refs EME-1149

… from snapshot detail API

The flat fields (comparison_state, approval_status, comparison_error_message,
approvers) added in #115604 fully replace the nested comparison_run_info and
approval_info objects. The frontend migrated to the flat fields in #115633.

Remove the SnapshotComparisonRunInfo and SnapshotApprovalInfo Pydantic
classes, their fields on SnapshotDetailsApiResponse, and the endpoint code
that assembled them. The approver-building loop and derive_snapshot_status()
call are kept since they feed the flat approvers and status fields.

comparison_type is intentionally kept — the frontend still uses it for the
diff view toggle and analytics.

Refs EME-1149
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 15, 2026

EME-1149

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 15, 2026
@mtopo27 mtopo27 marked this pull request as ready for review May 15, 2026 17:35
@mtopo27 mtopo27 requested a review from a team as a code owner May 15, 2026 17:35
@mtopo27 mtopo27 merged commit 262ecfa into master May 15, 2026
63 checks passed
@mtopo27 mtopo27 deleted the maxtopolsky/eme-1149-remove-deprecated-detail-fields branch May 15, 2026 18:48
mtopo27 added a commit that referenced this pull request May 15, 2026
…ebug modal

Remove SnapshotComparisonRunInfo and SnapshotApprovalInfo interfaces and
their fields from SnapshotDetailsApiResponse, matching the backend removal
in #115652. Replace comparison_run_info with comparison_state in the debug
modal's visible fields.

Refs EME-1145
mtopo27 added a commit that referenced this pull request May 15, 2026
…ebug modal (#115653)

Remove the `SnapshotComparisonRunInfo` and `SnapshotApprovalInfo`
TypeScript interfaces and their fields from
`SnapshotDetailsApiResponse`, matching the backend removal in #115652.
The debug modal now shows `comparison_state` instead of
`comparison_run_info`.

Depends on #115652.

Refs EME-1145
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