Commit Graph

95 Commits

Author SHA1 Message Date
AlanCoding
129701d825 minor tweak to WFJT can_start launch field 2018-04-20 12:49:38 -04:00
AlanCoding
7881c921ac block deletion of resources w unprocessed events 2018-03-16 10:14:28 -04:00
Wayne Witzel III
c628e9de0a Filter active jobs by WFT/JT 2018-03-16 09:32:42 -04:00
chris meyers
5d5d8152c5 prevent instance group delete if running jobs
* related to https://github.com/ansible/ansible-tower/issues/7936
2018-03-15 14:25:49 -04:00
Wayne Witzel III
819b318fe5 Add Org Execute 2018-02-10 02:52:26 +00:00
Wayne Witzel III
b478740f28 Add Workflow Admin 2018-02-10 02:52:25 +00:00
Alan Rominger
b3dcfc8c18 Merge pull request #903 from ansible/item_copy
Implement item copy feature
2018-02-08 15:51:16 -05:00
AlanCoding
fe69a23a4e fix bug scheduling WFJT without prompts 2018-02-07 14:34:25 -05:00
Aaron Tan
a2fd78add4 Implement item copy feature
See acceptance doc for implement details.

Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
2018-01-02 10:20:44 -05:00
AlanCoding
e188692acf use Options models to consolidate field_names list 2017-12-13 22:39:38 -05:00
AlanCoding
659d31324d hide survey passwords in saved launch configs 2017-12-12 09:35:46 -05:00
AlanCoding
e59a724efa fix bug that broke combining WFJT and node vars 2017-12-08 13:48:45 -05:00
AlanCoding
1c8217936d Bug fixes from integration ran on launchtime branch
Make error message for muti-vault validation more
consistent with historical message
2017-12-08 13:46:38 -05:00
AlanCoding
72a8854c27 Make ask_mapping a simple class property
from PR feedback of saved launchtime configurations
2017-12-08 13:45:23 -05:00
AlanCoding
34a8e0a9b6 Feature: saved launchtime configurations
Consolidate prompts accept/reject logic in unified models
Break out accept/reject logic for variables
Surface new promptable fields on WFJT nodes, schedules

Make schedules and workflows accurately reject variables
  that are not allowed by the prompting
  rules or the survey rules on the template

Validate against unallowed extra_data in system job schedules
Prevent schedule or WFJT node POST/PATCH with unprompted data
Move system job days validation to new mechanism
Add new psuedo-field for WFJT node credential
Add validation for node related credentials
Add related config model to unified job
Use JobLaunchConfig model for launch RBAC check

Support credential overwrite behavior with multi-creds
  change modern manual launch to use merge behavior
Refactor JobLaunchSerializer, self.instance=None
Modularize job launch view to create "modern" data
Auto-create config object with every job
Add create schedule endpoint for jobs
2017-12-08 13:38:54 -05:00
Aaron Tan
5287e5c111 Implement workflow job failure
Relates #264.

This PR proposed and implemented a way of defining workflow failure
state:

A workflow job fails if one of the conditions below satisfies.
* At least one node runs into states `canceled` or `error`.
* At least one leaf node runs into states `failed`, but no child node is
  spawned to run (no error handler).

Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
2017-10-12 11:08:33 -04:00
Aaron Tan
97e0835d1c Release unified UJT unique_together constraint. 2017-07-06 09:44:34 -04:00
AlanCoding
ad4a7fe033 access_registry made simple dict with auto registration 2017-06-29 15:17:37 -04:00
Aaron Tan
a993025e0d Merge pull request #6053 from jangsutsr/named_url
Named URL
2017-05-31 17:02:42 -04:00
Aaron Tan
f25391fe86 Implement named URL feature. 2017-05-31 12:09:54 -04:00
Matthew Jones
adf4be29b7 Fix taskmanager failing to launch workflow job
This was caused by taskmanager instance group refactoring. This
re-enables that functionality
2017-05-23 11:15:57 -04:00
Aaron Tan
057b24ccd0 Allow concurrent workflow job runs. 2017-05-02 16:28:24 -04:00
Ryan Petrello
95ea370e5e add API versioning for /api/v2/ 2017-03-30 15:11:12 -04:00
Ryan Petrello
d24fb32358 blacklist certain sensitive fields and relations as search arguments
see: #5465
see: #5478
2017-02-21 16:18:02 -05:00
Matthew Jones
a9621d579d Make sure the workflow link is included in the notification 2017-02-03 12:57:59 -05:00
Alan Rominger
460dfe7548 Merge pull request #4916 from AlanCoding/no_missing_dict
Remove missing resource checks from nodes
2017-01-25 11:53:22 -05:00
AlanCoding
bae3fdb635 removal of workflow TODOs that are resolved 2017-01-25 09:52:05 -05:00
AlanCoding
be1b2b418c Remove missing resource checks from nodes 2017-01-24 13:52:06 -05:00
Alan Rominger
dcea88c81c Merge pull request #4821 from AlanCoding/workflow_schedule_nodes
Move node copy into create_unified_job, copy nodes on schedule
2017-01-19 11:18:31 -05:00
AlanCoding
f419fb9bed move node copy into create_unified_job, copy nodes on schedule 2017-01-19 08:51:08 -05:00
AlanCoding
f2d8800c35 Fix bug where type of node UJT was incorrectly evaluated 2017-01-18 16:15:14 -05:00
AlanCoding
ba8f0ccff1 require constituent resource access to relaunch WJ 2017-01-13 14:41:00 -05:00
AlanCoding
dfd0885ec3 new WFJT launch schema and cleanup 2017-01-12 12:24:49 -05:00
AlanCoding
1a26a1796b break WJ relaunch check from start capability
implement special custom error message for
Workflow Job relaunch ability corner case
2016-12-19 16:57:00 -05:00
Alan Rominger
600c94dd40 Merge pull request #4390 from AlanCoding/do_not_copy_labels
Do not copy WFJT labels in 3.1
2016-12-15 10:06:45 -05:00
Wayne Witzel III
c9dab5805d update imports and further consolidate 2016-12-12 19:22:09 -05:00
AlanCoding
278d70ed49 do not copy WFJT labels in 3.1 2016-12-12 11:21:21 -05:00
AlanCoding
8cd4ba0175 refactor of create_unified_job in connection with new copy endpoint development 2016-11-22 11:35:41 -05:00
AlanCoding
4a992e531a copy organization when copying a WFJT 2016-11-22 11:35:40 -05:00
AlanCoding
8cda12c020 add workflow relaunch 2016-11-22 11:35:40 -05:00
AlanCoding
14ce50c845 implement copying of WFJT objects 2016-11-22 11:35:01 -05:00
Matthew Jones
cb82809f10 Merge pull request #3935 from jladdjr/at-3532-typo
Minor typo fix (pointing workflow node template at unsupported unified job template)
2016-11-18 15:45:34 -05:00
Wayne Witzel III
62d0b9fc98 Merge branch 'devel' into workflow-channels 2016-11-17 16:22:52 -05:00
Aaron Tan
344a522f3e Merge pull request #4028 from jangsutsr/3976_update_workflow_job_foreign_key_related_name
Update workflow job foreign key related_name.
2016-11-16 12:44:21 -05:00
Wayne Witzel III
34439fed9d Merge branch 'devel' into workflow-channels 2016-11-16 11:01:10 -05:00
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Aaron Tan
3801b4a4e9 Update workflow job foreign key related_name. 2016-11-15 15:17:45 -05:00
AlanCoding
339661a6a5 New method to monkeypatch JSONField 2016-11-14 16:35:56 -05:00
Wayne Witzel III
42f1a491c1 add WorkflowJob properties to UnifiedJob 2016-11-10 15:11:00 -05:00
Wayne Witzel III
43450c2694 WorkflowJob should set the workflow launch_type for spawned jobs 2016-11-10 15:10:56 -05:00