Chris Church
7183549289
Moved queryset filtering/ordering out of BaseList into the CustomFilterBackend. Added job_host_summaries sublists for jobs and hosts, add detail view for job host summary, with tests.
2013-05-14 19:17:17 -04:00
Michael DeHaan
b83e70b09a
Remove various license headers. License was changed to proprietary previously so fix up headers.
2013-05-14 18:44:02 -04:00
Michael DeHaan
72fbb6c3a3
Add inventory root groups to related resources.
2013-05-14 18:38:32 -04:00
Chris Church
fe5a454441
Basic support for job start/cancel via REST API with supporting tests.
2013-05-13 10:43:43 -04:00
Chris Church
a20573a68d
More job template tests, enable creating a new job by posting to the job template job list.
2013-05-11 05:11:31 -04:00
Chris Church
6e6600b822
Model and test updates for last_job and last_job_host_summary fields on Host.
2013-05-11 02:10:17 -04:00
Chris Church
d7737f6b43
Changed project property available_playbooks to playbooks, exposed via API as a child resource of the project detail. Changed project local_path to a CharField and added helper method and API attribute to show the list of available choices for local_path.
2013-05-10 00:44:21 -04:00
Chris Church
fdc9422409
Catch exception raised for the reverse access of a OneToOneField.
2013-05-08 17:56:40 -04:00
Chris Church
f7cd605415
Model changes based on jobs API discussion, code and test fixes to work with those changes.
2013-05-08 17:43:09 -04:00
Michael DeHaan
6238f0ab9a
Add summary_fields capability, which for items in a collection gives the names of related fields.
...
{
'summary_fields' : {
'organization' : {
'name' : 'foo',
'description' : 'bar',
}
}
}
etc. This is automatic for all field types configured in serializers.py (SUMMARIZABLE_FKs, etc).
2013-05-08 17:38:35 -04:00
Chris Church
2a15d07221
Split out RBAC and can_user_* methods from models into access.py. Moved list/item permissions checks from the base views into RBAC. Added serializers/views/tests for jobs REST API.
2013-05-08 10:46:16 -04:00
Chris Church
ef92fe3960
Updates to permissions checks (and tests), add logging around permission checks, permission-related fixes to support browsable API, work in progress on job templates API, added default logging settings.
2013-05-01 14:10:42 -04:00
Chris Church
b6e7d964c2
Add foreign key field back to serializer so test will pass.
2013-04-29 16:35:39 -04:00
Chris Church
edbd9c42ff
Admin updates, added a few more related resources.
2013-04-29 16:02:21 -04:00
Chris Church
69a9916423
Refactored URLs to be more DRY, changed reverse lookups to use named url patterns.
2013-04-27 23:19:28 -04:00
Michael DeHaan
b4932ab5a9
Partial support for permission editablity through REST. More TBA.
2013-04-26 17:32:19 -04:00
Chris Church
d6d468633f
Task refactoring, updates to support ssh-agent and responding to password prompts. Needs test for using credentials.
2013-04-24 11:35:30 -04:00
Michael DeHaan
3a9533ffa0
more related resources!
2013-04-23 19:44:18 -04:00
Michael DeHaan
fdb0dd29a9
Fix organization lookup ID.
2013-04-23 19:36:00 -04:00
Michael DeHaan
3162f62fa9
Add more related resources.
2013-04-23 19:18:58 -04:00
Michael DeHaan
fc0fc43f63
Add inventory related resource.
2013-04-23 19:01:05 -04:00
Michael DeHaan
c81de8f7b9
Add modified_by to audit trail
2013-04-23 18:54:27 -04:00
Michael DeHaan
69f8f1e70d
Add created_by related resource only if set.
2013-04-23 18:51:47 -04:00
Michael DeHaan
82ef8ca0f3
Working on exposing more related fields.
2013-04-23 18:08:38 -04:00
Michael DeHaan
c661c0bbf2
Add organizations related resource to projects.
2013-04-23 11:13:33 -04:00
Michael DeHaan
069d16a1ae
Add teams related resource to org.
2013-04-23 10:25:12 -04:00
Chris Church
bc1f3e320e
Changed how Project local_path is configured, added option to specify playbook on JobTemplate and Job, updated admin and tests.
2013-04-19 15:40:13 -04:00
Michael DeHaan
0ed275c3c8
Pass request data to various functions to allow for extra validation to be implemented on top of what is there now.
2013-04-19 12:10:30 -04:00
Michael DeHaan
4cd7405a37
update TODO
2013-04-19 11:15:02 -04:00
Michael DeHaan
7d224d8cf3
Ability to list job templates. Related resources are not added.
2013-04-18 20:52:54 -04:00
Michael DeHaan
09cca99c69
Just use plain GPL.
2013-04-09 01:05:55 -04:00
Michael DeHaan
26cff59ef0
Use of validate() method on serializer to implement write-once fields.
2013-04-07 22:17:33 -04:00
Michael DeHaan
b20a29b458
Working on surfacing credentials via REST.
2013-04-02 15:00:16 -04:00
Michael DeHaan
0489762a02
Working on credentials endpoints, added migration (no credentials directly on projects)
2013-04-01 20:38:03 -04:00
Michael DeHaan
5deaa5c2fa
Ability to list teams on an organization.
2013-04-01 17:44:30 -04:00
Michael DeHaan
184a68b0f9
License change. GPLv3 -> Affero GPLv3.
2013-04-01 17:44:30 -04:00
Michael DeHaan
6e15d7a913
Ability to add child groups to groups.
2013-03-27 18:17:21 -04:00
Michael DeHaan
ce7112e08a
Update variable schema to use a 1:1 resource, and allow access via GET/PUT. GET if object does not exist will create the resource.
2013-03-26 22:24:03 -04:00
Michael DeHaan
5e91e0a43c
Working on Hosts and Groups
2013-03-26 14:44:12 -04:00
Michael DeHaan
dbfd764acd
Improve the can_user_add model hook to allow it to pre-examine data for context.
2013-03-25 19:00:07 -04:00
Michael DeHaan
77695bd959
Working on surfacing inventory objects.
2013-03-25 16:41:21 -04:00
Michael DeHaan
18eaec143c
Add related resources from a user object, as a rapid way to list what organizations or projects they belong to.
2013-03-24 15:00:01 -04:00
Michael DeHaan
f02aad42c0
User deletion modification, and overriding the URL for the user objects.
2013-03-24 14:14:59 -04:00
Michael DeHaan
a071ff65e4
Add copyright headers.
2013-03-23 18:43:11 -04:00
Chris Church
c592c3c392
Hide fields not needed for the user admin.
2013-03-22 12:02:16 -04:00
Michael DeHaan
5a03fdf841
Simplify user model by just using the Django user object.
2013-03-22 11:35:26 -04:00
Michael DeHaan
eeb0dfd9ba
Add a lot of basic serializers for some of the other object types. These may evolve.
2013-03-21 15:28:40 -04:00
Michael DeHaan
0fa9255ab1
Add support for related resources, and all present related resources on the organization object.
...
Implementation of sub services still on deck.
2013-03-21 15:11:47 -04:00
Michael DeHaan
c189cfcddb
Deletes are operational plus access control hooks for deletes.
2013-03-21 11:06:47 -04:00
Michael DeHaan
843164ba04
PUT is operational.
2013-03-21 10:44:01 -04:00