Skip to content

Commit 0f84e44

Browse files
committed
feat: temporary dataproduct for deprecated registry errors
1 parent 45392a3 commit 0f84e44

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

src/routes/image/+page.gql

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
query AllImages {
2+
teams(first: 500) {
3+
nodes {
4+
slug
5+
workloads(first: 1000) {
6+
nodes {
7+
__typename
8+
id
9+
name
10+
team {
11+
slug
12+
}
13+
environment {
14+
name
15+
}
16+
17+
status {
18+
errors {
19+
... on WorkloadStatusDeprecatedRegistry {
20+
name
21+
registry
22+
repository
23+
tag
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
31+
}

src/routes/image/+page.svelte

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script lang="ts">
2+
import type { PageProps } from './$houdini';
3+
4+
let { data }: PageProps = $props();
5+
let { AllImages } = $derived(data);
6+
</script>
7+
8+
{#if $AllImages.data}
9+
{#each $AllImages.data.teams.nodes.flatMap( (team) => team.workloads.nodes.filter( (workload) => workload.status.errors.some((error) => error.__typename === 'WorkloadStatusDeprecatedRegistry') ) ) as workload (workload.id)}
10+
{workload.team.slug},{workload.environment.name},{workload.name},{workload.status.errors.find(
11+
(error) => error.__typename === 'WorkloadStatusDeprecatedRegistry'
12+
)?.registry}<br />
13+
{/each}
14+
{/if}

0 commit comments

Comments
 (0)