Chris Church
88e7f6624c
Update relaunch endpoints to use custom serializer, check passwords needed before creating/copying job or ad hoc command.
2015-03-31 17:40:00 -04:00
Chris Church
02eda72bd9
Add name field for ad hoc commands, get relaunch working.
2015-03-31 16:42:35 -04:00
Chris Church
f7b8d510dc
Implement support for ad hoc commands.
2015-03-30 13:04:19 -04:00
Matthew Jones
e790ba480e
Filter out inactive jobs when pulling for latest status on the job
...
template list
2015-03-26 10:22:05 -04:00
James Laska
6258035ca8
Make ValidationError consistent with rest-framework
...
This is silly, but rest-framework returns an error with a '.' at the
end. Test automation validates the error responses. Rather than special
case this condition, I've chosen to raise an Exception with a msg
consistent with rest-framework.
2015-03-13 08:52:23 -04:00
Matthew Jones
c4afaad96c
Provide access to scan job templates from the inventory related fields
2015-03-06 11:13:36 -05:00
Matthew Jones
4d271bef35
Initial Scan Job Template type implementation
2015-03-03 14:48:22 -05:00
Chris Meyers
71318e5d9a
don't try and decode extra_vars if there are no extra_vars. Further, if extra_vars isn't a json, then don't try to redact.
2015-02-20 15:37:53 -05:00
Chris Meyers
78e1698333
redact survey password fields in job detail extra_vars
2015-02-19 09:20:05 -05:00
Matthew Jones
e9e4c6856d
Implement job template job history statuses, configurable
2015-02-09 14:19:18 -05:00
Matthew Jones
753b5f41b4
Fix up flake8 for serializers
2015-02-06 14:14:47 -05:00
Matthew Jones
1d76c1cd06
More pep8 goodness
2015-02-04 14:44:38 -05:00
Matthew Jones
6e6a709165
Fixing up some pep8 issues
2015-02-03 13:46:58 -05:00
Matthew Jones
34aafb2db9
Fix an issue where we couldn't schedule custom inventory sources
2015-01-20 14:55:05 -05:00
Matthew Jones
9b80d25a24
Revert "Make credential required when using a cloud inventory source"
...
This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
2015-01-20 10:46:53 -05:00
Matthew Jones
43d26d9993
Make credential required when using a cloud inventory source
2015-01-19 11:52:10 -05:00
Chris Meyers
8705f03bf9
added 'organization' to list of related fields for inventory_scripts
2015-01-19 08:39:55 -05:00
Matthew Jones
80b2b36bf3
Reapply fix for can_edit and can_copy when an inventory or project
...
associated with the job template have been deleted
2015-01-08 13:30:27 -05:00
Matthew Jones
9900b13953
Revert "Handle the situation where a Job Template's inventory has been removed"
...
This reverts commit 12201de3cb344b6caafeb112f7db7135b049821d.
2015-01-07 20:03:04 -05:00
Matthew Jones
932c276829
Handle the situation where a Job Template's inventory has been removed
...
and we are trying to determine if a user has the ability to edit or copy it.
2015-01-07 15:13:14 -05:00
Matthew Jones
21d45b828f
Fix up an issue where we wouldn't properly show can_edit or can_copy
2015-01-05 16:28:31 -05:00
Matthew Jones
f4e67f789f
More making sure we are using smart_str
2014-12-17 12:59:52 -05:00
Matthew Jones
76a7d25131
Force custom inventory script organization to match the organization of
...
an inventory source's inventory when creating/updating the inventory source
2014-12-16 13:01:11 -05:00
Matthew Jones
901af011a1
Verify that we are passed a source script if a 'custom' source is provided
2014-12-15 14:56:09 -05:00
Matthew Jones
7df9ca8ae1
Force custom inventory scripts to start with a hashbang
2014-12-10 10:59:20 -05:00
Matthew Jones
8afe8517fd
Rename System Task to Management Job for UI consistency
2014-12-09 11:46:03 -05:00
Matthew Jones
3af2c181b8
Add can_edit field on job templates
2014-12-09 11:08:25 -05:00
Matthew Jones
572c1765cd
Different strategy on the inventory script serializer, this should work
...
much better
2014-12-08 16:45:59 -05:00
Matthew Jones
9b61956c9e
Hide script contents if the user is not a super user
2014-12-08 15:10:16 -05:00
Matthew Jones
19c0d04885
Adding organization reference to the custom inventory script
2014-12-03 15:05:44 -05:00
Chris Church
564ba7bf68
Work on update/cancel serializers/views to return correct field names in OPTIONS response.
2014-12-02 18:55:54 -05:00
Matthew Jones
15e6aa29a7
Make sure we propogate source_script into the related fields it needs to
...
be in
2014-11-26 11:14:26 -05:00
Chris Church
35c392ab17
Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH
2014-11-26 03:20:45 -05:00
Matthew Jones
7e109cb95d
Track source_script in summary and related fields for relevant inventory sources
2014-11-25 15:28:52 -05:00
Chris Church
ad856391f6
Use select_related and other misc fixes to improve performance and reduce queries.
2014-11-24 21:12:21 -05:00
Matthew Jones
8b46bc3829
Fix up OPTIONS requests relative to system jobs on some endpoints
2014-11-18 12:02:48 -05:00
Chris Church
a9c6dadc1a
Remove extra print statements, minor contributing updates.
2014-11-11 18:09:01 -05:00
Matthew Jones
8bf66f01c4
Add System Job to OPTIONS get for job types under unified jobs
2014-11-11 15:51:13 -05:00
Matthew Jones
9873bd2bc2
Add created_by and modified_by to some serializers
2014-11-07 10:45:53 -05:00
Matthew Jones
ede6142cea
New permission for users and teams that allow creating job templates,
...
this makes Deployment permissions more granular. Includes unit tests
and a migration to promote existing "run" permissions to "create".
Also some slight doc updates to denote that this implies "run" and "check"
2014-10-31 15:04:46 -04:00
Matthew Jones
ce50376c7f
Updating job list api endpoints to be able to display system jobs if you
...
can see them and any have run
2014-10-17 14:56:40 -04:00
Matthew Jones
103929c9ee
Allow passing variables with schedules to support extra data on system jobs
2014-10-17 14:41:00 -04:00
Matthew Jones
6ed9705d91
Small fix for system job serializer
2014-10-14 13:56:58 -04:00
Matthew Jones
fbf9a4957e
Initial system job implementation
2014-10-14 11:11:17 -04:00
Matthew Jones
06c75aeecf
Implement API side for custom inventory script support with endpoints
...
and unit tests
2014-09-30 11:50:50 -04:00
Matthew Jones
259e48df3e
Add survey bits to summary fields on job templates.... change "title" to
...
"name" on survey metadata.
2014-09-22 11:11:18 -04:00
Chris Church
e427234aec
Implements https://trello.com/c/bEMQtVjz - API/UI changes to support su username/password. Adds force_handlers, skip_tasks and start_at_task options to jobs, only exposed via API.
2014-09-11 17:34:38 -04:00
Matthew Jones
514cd4a1db
Initial api side implementation of the survey spec
2014-09-09 11:08:40 -04:00
Matthew Jones
b5763f078d
Add relaunch capability to a job. fill in related links for various serializers
2014-09-05 14:02:55 -04:00
Matthew Jones
0f67f6d57c
Fix an issue where we were incorrectly trying to deserialize variables
...
contained in the inventory activity stream change reported in:
https://trello.com/c/5eIrrOvY
2014-08-21 13:13:01 -04:00