Feroze Mohideen 2 anos atrás
pai
commit
bc4fae617e

+ 2 - 0
dashboard/src/main/home/app-dashboard/expanded-app/logs/LogSection.tsx

@@ -66,6 +66,7 @@ const LogSection: React.FC<Props> = ({
     revision: filterOpts?.revision ?? GenericLogFilter.getDefaultOption("revision").value,
     output_stream: filterOpts?.output_stream ?? GenericLogFilter.getDefaultOption("output_stream").value,
     pod_name: getPodSelectorFromServiceName(filterOpts?.service, services) ?? GenericLogFilter.getDefaultOption("pod_name").value,
+    service_name: filterOpts?.service ?? GenericLogFilter.getDefaultOption("service_name").value,
   });
 
   const createVersionOptions = (number: number) => {
@@ -189,6 +190,7 @@ const LogSection: React.FC<Props> = ({
       revision: filterOpts?.revision ?? GenericLogFilter.getDefaultOption("revision").value,
       output_stream: filterOpts?.output_stream ?? GenericLogFilter.getDefaultOption("output_stream").value,
       pod_name: getPodSelectorFromServiceName(filterOpts?.service, services) ?? GenericLogFilter.getDefaultOption("pod_name").value,
+      service_name: filterOpts?.service ?? GenericLogFilter.getDefaultOption("service_name").value,
     });
   };
 

+ 3 - 3
dashboard/src/main/home/app-dashboard/expanded-app/logs/StyledLogs.tsx

@@ -30,7 +30,7 @@ const StyledLogs: React.FC<Props> = ({
                     return null;
                 }
                 return (
-                    <StyledLogsTableData width={"100px"}>
+                    <StyledLogsTableData width={"100px"} key={index}>
                         <LogInnerPill
                             color={getVersionTagColor(log.metadata.revision)}
                             key={index}
@@ -45,7 +45,7 @@ const StyledLogs: React.FC<Props> = ({
                     return null;
                 }
                 return (
-                    <StyledLogsTableData width={"100px"}>
+                    <StyledLogsTableData width={"100px"} key={index}>
                         <LogInnerPill
                             color={"white"}
                             key={index}
@@ -60,7 +60,7 @@ const StyledLogs: React.FC<Props> = ({
                     return null;
                 }
                 return (
-                    <StyledLogsTableData width={"100px"}>
+                    <StyledLogsTableData width={"100px"} key={index}>
                         <LogInnerPill
                             color={"white"}
                             key={index}

+ 1 - 1
dashboard/src/main/home/app-dashboard/expanded-app/logs/types.ts

@@ -34,7 +34,7 @@ const agentLogMetadataValidator = z.object({
     revision: z.string(),
     output_stream: z.string(),
     app_name: z.string(),
-    raw_labels: rawLabelsValidator.optional(),
+    // raw_labels: rawLabelsValidator.optional(),
 });
 
 export const agentLogValidator = z.object({