nautobot/nautobot-app-golden-config

Deploy Config Job when using Approval Required to Execute just hangs the modal on multi-deploy

jeffkala opened this issue · 1 comments

Environment

  • Python version: 3.11
  • Nautobot version: 1.6.2
  • nautobot-golden-config version: 1.6.4

Expected Behavior

Modal should intelligently redirect to job approval when that property is set on the job modal

Observed Behavior

Modal just hangs and it can be confusing why.
Screenshot 2024-02-02 at 1 27 27 PM

Steps to Reproduce

  1. Have Approval Required to Execute selected under the job modal for deploy config plans job.
  2. Generate some config plans
  3. approve config plans
  4. go to config plans list view, multi-select plans to deploy.
  5. modal will just be stuck on "started" see screenshot.

This is due to this part of the JS where we assume a job result is returned and does not account for a scheduled job which is what is returned in the event of requiring approval