Skip to content

fix(postgres): adapt to branch-free API - #768

Merged
sechmann merged 1 commit into
mainfrom
fix/adapt-to-branch-free-api
Nov 20, 2026
Merged

sechmann merged 1 commit into
mainfrom
fix/adapt-to-branch-free-api

Conversation

@sechmann

Copy link
Copy Markdown
Contributor

Summary

Remove Postgres branch activity handling to match the branch-free API. Add stuck rollout issues to home attention and route them to affected applications.

Changes

  • Postgres activity: Remove branch activity fragments, presenters, icons, tooltips, and tests; update GraphQL schema and query validation in schema.graphql, src/lib/domain/activity/, and src/lib/domain/postgres/postgresQueries.test.ts.
  • Home attention: Query ApplicationRolloutStuckIssue and test links to affected applications in src/routes/homeAttention.gql and src/routes/homeOverview.test.ts.
  • API schema: Add rollout, scaling, workload warning, job instance, and application instance status definitions in schema.graphql.

Notes

  • GraphQL validation models the retired branch types until the generated schema is refreshed from the API.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 12:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The home attention query filters for CRITICAL issues, excluding stuck-rollout issues that the API classifies as WARNING.

1 open issue
What changed in this PR

Adapts Console to the branch-free Postgres API and adds query support for linking stuck rollout issues to affected applications.

Changes:

  • Removes retired Postgres branch activity queries and presentation code.
  • Updates activity and GraphQL validation tests for database-level events.
  • Refreshes the generated schema and adds rollout issue selection and navigation coverage.
File Description
src/​routes/​homeOverview.test.ts Tests application links for stuck rollout issues.
src/​routes/​homeAttention.gql Selects stuck rollout issue details.
src/​routes/​homeActivity.gql Removes branch activity fragments.
src/​lib/​domain/​postgres/​postgresQueries.test.ts Validates queries against retired branch types and filters.
src/​lib/​domain/​list-items/​ActivityLogListItem.svelte Removes branch activity selections.
src/​lib/​domain/​activity/​shared/​texts/​PostgresBranchActivityLogEntryText.svelte Deletes the branch activity presenter.
src/​lib/​domain/​activity/​postgresActivitySSR.test.ts Covers database activity team links during server rendering.
src/​lib/​domain/​activity/​postgresActivity.test.ts Replaces branch activity coverage with database activity tests.
src/​lib/​domain/​activity/​activityTextComponents.ts Removes branch presenter dispatch.
src/​lib/​domain/​activity/​activityLogFragment.test.ts Removes retired branch fragment expectations.
src/​lib/​domain/​activity/​activity-log-tooltip.ts Removes branch activity tooltip mappings.
src/​lib/​domain/​activity/​activity-log-icons.ts Removes branch activity icon mappings.
schema.graphql Removes branch activity definitions and adds workload status types.

Review effort: Balanced

Comment thread src/routes/homeAttention.gql Resolved
@sechmann
sechmann merged commit 1c3537a into main Nov 20, 2026
8 checks passed
@sechmann
sechmann deleted the fix/adapt-to-branch-free-api branch November 20, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants