Преглед изворни кода

log for staging inconsistencies

portersupport пре 4 година
родитељ
комит
3b0885e7e3

+ 2 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedJobChart.tsx

@@ -454,6 +454,7 @@ class ExpandedJobChart extends Component<PropsType, StateType> {
     // Set job run from URL if needed
     // Set job run from URL if needed
     const urlParams = new URLSearchParams(location.search);
     const urlParams = new URLSearchParams(location.search);
     const urlJob = urlParams.get("job");
     const urlJob = urlParams.get("job");
+    console.log("urljob:", urlJob);
 
 
     jobs.sort((job1, job2) => {
     jobs.sort((job1, job2) => {
       if (job1.metadata.name === urlJob) {
       if (job1.metadata.name === urlJob) {
@@ -482,6 +483,7 @@ class ExpandedJobChart extends Component<PropsType, StateType> {
   };
   };
 
 
   setJobRun = (job: any) => {
   setJobRun = (job: any) => {
+    console.log("got to set job", job);
     this.getPods(job, () => {
     this.getPods(job, () => {
       this.setState({ expandedJobRun: job, currentTab: "logs" });
       this.setState({ expandedJobRun: job, currentTab: "logs" });
     });
     });