correctly inherit extra_vars

* inherit extra_vars from job_template
* overwrite with extra vars survey default vars
* overwrite with job extra_vars
* bypass extra_vars inherit logic for job relaunch
* with tests
This commit is contained in:
Chris Meyers
2015-08-10 11:05:27 -04:00
parent e5bd721b4b
commit dfff6b218a
6 changed files with 100 additions and 26 deletions

View File

@@ -2207,6 +2207,7 @@ class JobRelaunch(RetrieveAPIView, GenericAPIView):
if not serializer.is_valid():
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
obj.launch_type = 'relaunch'
new_job = obj.copy()
result = new_job.signal_start(**request.DATA)
if not result: