Skip to content

Commit

Permalink
Don't show prefixes in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
eugercek committed Jan 24, 2023
1 parent 470acec commit 15b46cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/pages/api/apps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { NextApiRequest, NextApiResponse } from "next";
import * as k8s from "@kubernetes/client-node";
import type { AppsApiResponse, ApplicationData } from "@/types/apps";
import {stripPrefix} from "@/utils/crd";

type Error = {
message: string;
Expand Down Expand Up @@ -40,13 +41,14 @@ export default async function handler(

return {
id: item.metadata.uid,
name: item.metadata.ownerReferences[0].name,
name: stripPrefix(item.metadata.ownerReferences[0].name),
languages: languages,
instrumented: item.status.instrumented,
kind: item.metadata.ownerReferences[0].kind,
namespace: item.metadata.namespace,
};
});

const discoveryInProgress = response.body.items.some(
(i: any) => i.status.langDetection.phase === "Running"
);
Expand Down

0 comments on commit 15b46cd

Please sign in to comment.