Procházet zdrojové kódy

Merge pull request #732 from porter-dev/master

Stage stringified job tag log
jusrhee před 5 roky
rodič
revize
014975bfe8

+ 8 - 3
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedJobChart.tsx

@@ -83,7 +83,9 @@ export default class ExpandedJobChart extends Component<PropsType, StateType> {
       )
       .then((res) => {
         let image = res.data?.config?.image?.repository;
-        let tag = res.data?.config?.image?.tag
+        let tag = res.data?.config?.image?.tag.toString();
+        console.log("image", res.data?.config?.image);
+        console.log("stringified tag is", tag);
         let newestImage = tag ? image + ":" + tag : image
 
         if (
@@ -261,7 +263,8 @@ export default class ExpandedJobChart extends Component<PropsType, StateType> {
         if (imageUrl.includes(":")) {
           let splits = imageUrl.split(":");
           imageUrl = splits[0];
-          tag = splits[1];
+          tag = splits[1].toString();
+          console.log("hsv stringified tag is", tag);
         } else if (!tag) {
           tag = "latest";
         }
@@ -289,11 +292,13 @@ export default class ExpandedJobChart extends Component<PropsType, StateType> {
         if (imageUrl.includes(":")) {
           let splits = imageUrl.split(":");
           imageUrl = splits[0];
-          tag = splits[1];
+          tag = splits[1].toString();
         } else if (!tag) {
           tag = "latest";
         }
 
+        console.log("later stringified tag is", tag);
+
         _.set(values, "image.repository", imageUrl);
         _.set(values, "image.tag", tag);
       }