From 2d49ff63ce43714543088da832eb8ac3fd0acd18 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Tue, 29 Nov 2022 14:49:58 -0500 Subject: [PATCH] Micro bug fix --- lib/server/database/tags.js | 2 +- src/views/catalog/CatalogBox.jsx | 1 + src/views/jobs/JobBox.jsx | 2 +- src/views/jobs/Jobs.jsx | 1 + src/views/jobs/builder/JobBuilder.jsx | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/server/database/tags.js b/lib/server/database/tags.js index 963240b..e28ab64 100644 --- a/lib/server/database/tags.js +++ b/lib/server/database/tags.js @@ -4,7 +4,7 @@ export const TAGS = { CRON: { name: "crons", tag: "cron_", value: (t) => t }, ENV: { name: "env", tag: "env_", value: (t) => t }, REGIONS: { name: "regions", tag: "reg_", value: (t) => t }, - PIPELINE: { name: "pipeline", tag: "pipeline", value: (t) => t }, + PIPELINE: { name: "pipeline", tag: "is_pipeline", value: (t) => t }, COVERAGE: { name: "coverage", tag: "coverage_", value: (t) => t }, PROJECT: { name: "projects", tag: "proj_", value: (t) => t }, DELAY: { name: "delay", tag: "delay_", value: (t) => t }, diff --git a/src/views/catalog/CatalogBox.jsx b/src/views/catalog/CatalogBox.jsx index 483e2fa..d31a6e0 100644 --- a/src/views/catalog/CatalogBox.jsx +++ b/src/views/catalog/CatalogBox.jsx @@ -48,6 +48,7 @@ export default function CatalogBox(props) { }; const runTest = () => { + console.log(isPipeline); if (isPipeline) return runPipelineTest(); const jobId = jobCompose({ testNames: [testName], diff --git a/src/views/jobs/JobBox.jsx b/src/views/jobs/JobBox.jsx index 39e3b2e..198ea72 100644 --- a/src/views/jobs/JobBox.jsx +++ b/src/views/jobs/JobBox.jsx @@ -16,7 +16,7 @@ export default function JobBox(props) { return ( - + {/**/} { const { job, pipeline, builderCache, hash } = jobHash; + console.log(jobState.jobs.filter((j) => !j.isPipeline)); if (!hash) return; if (!job && !pipeline && !builderCache) navigate("/qualiteer/jobs"); }); diff --git a/src/views/jobs/builder/JobBuilder.jsx b/src/views/jobs/builder/JobBuilder.jsx index 9faa740..d145a47 100644 --- a/src/views/jobs/builder/JobBuilder.jsx +++ b/src/views/jobs/builder/JobBuilder.jsx @@ -27,7 +27,7 @@ import PipelineConfirm from "./PipelineConfirm.jsx"; export default function JobBuilder() { const { state: store } = useContext(StoreContext); - const { jobCompose } = useJobCore(); + const { jobCompose, toJob } = useJobCore(); const [quickOpen, setQuickOpen] = useState(false); const [jobDialogOpen, setJobDialogOpen] = useState(false);