From d38cb710be662581bd8e2a455b6f592471c3ca5f Mon Sep 17 00:00:00 2001 From: hc-github-team-nomad-core <82989552+hc-github-team-nomad-core@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:52:41 +0000 Subject: [PATCH] Backport of [ui] Bugfix: prevent parent job from showing another job's dispatches when it has none into release/1.9.x (#24697) Co-authored-by: Phil Renaud --- .changelog/24668.txt | 3 +++ ui/app/controllers/jobs/job/index.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/24668.txt diff --git a/.changelog/24668.txt b/.changelog/24668.txt new file mode 100644 index 00000000000..68bb9efc157 --- /dev/null +++ b/.changelog/24668.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix an issue where 2 parent jobs would see the others dispatches if it were otherwise empty +``` diff --git a/ui/app/controllers/jobs/job/index.js b/ui/app/controllers/jobs/job/index.js index 220f8a82bf9..0479c0f7d01 100644 --- a/ui/app/controllers/jobs/job/index.js +++ b/ui/app/controllers/jobs/job/index.js @@ -98,6 +98,7 @@ export default class IndexController extends Controller.extend( { id, namespace }, throttle = Ember.testing ? 0 : 2000 ) { + this.childJobs = []; while (true) { let params = { filter: `ParentID == "${id}"`,