Repository navigation
fix(postgres): adapt to branch-free API - #768
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 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
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.

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
schema.graphql,src/lib/domain/activity/, andsrc/lib/domain/postgres/postgresQueries.test.ts.ApplicationRolloutStuckIssueand test links to affected applications insrc/routes/homeAttention.gqlandsrc/routes/homeOverview.test.ts.schema.graphql.Notes