Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/components/analysis/AnalysesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async function getProjects() {
.$hubApi("/projects", {
method: "GET",
query: {
sort: "-updated_at",
sort: "-updatedAt",
fields: "id,name,display_name",
},
})
Expand Down Expand Up @@ -376,7 +376,7 @@ async function getNextPage() {
limit: queryLimit,
},
include: "analysis,node",
sort: "-updated_at",
sort: "-updatedAt",
},
})
.catch(() => undefined)) as AnalysisNode[] | undefined;
Expand Down
6 changes: 3 additions & 3 deletions app/composables/useAPIFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getProjectNodes(opts?) {
method: "GET",
query: {
include: "project,node",
sort: "-updated_at",
sort: "-updatedAt",
},
});
}
Expand All @@ -57,7 +57,7 @@ export function getProjects(opts?) {
...opts,
method: "GET",
query: {
sort: "-updated_at",
sort: "-updatedAt",
},
});
}
Expand All @@ -69,7 +69,7 @@ export function getAnalysisNodes(opts?) {
...opts,
method: "GET",
query: {
sort: "-updated_at",
sort: "-updatedAt",
},
},
);
Expand Down
12 changes: 9 additions & 3 deletions app/composables/useProjectAnalysisSummary.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import { ref } from "vue";
import { useNuxtApp } from "nuxt/app";
import { type AnalysisNode, type ListRoutes, type PodProgressResponse, PodStatus, type Route } from "~/services/Api";
import {
type AnalysisNode,
type ListRoutes,
type PodProgressResponse,
PodStatus,
type Route,
} from "~/services/Api";
import { parseKongTags } from "~/utils/parse-kong-tags";
import {
emptyProjectAnalysisSummary,
type ProjectAnalysisSummary,
summariseProjectAnalyses
summariseProjectAnalyses,
} from "~/utils/summarise-project-analyses";

export type HubFetch = (
Expand Down Expand Up @@ -42,7 +48,7 @@ export async function fetchAllAnalysisNodes(
method: "GET",
query: {
include: "analysis",
sort: "-updated_at",
sort: "-updatedAt",
page: { offset: pageIndex * PAGE_LIMIT, limit: PAGE_LIMIT },
},
})) as AnalysisNode[];
Expand Down