Commit Graph

54 Commits

Author SHA1 Message Date
Chris Church
a2595dcf12 API fixes for 500 errors. 2016-02-24 18:38:04 -05:00
Chris Church
b08a2d1d88 Update default error pages. 2016-02-02 23:00:07 -05:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones
bb3732b2c1 Cleaning up some flake8 errors, pyflakes in this case 2015-02-10 17:00:23 -05:00
Chris Church
352197c5d2 Removed admin support (no longer used or maintained). 2014-03-28 22:04:26 -04:00
Chris Church
3a5e2f4f1e AC-996 Don't try to use admin template since admin is disabled. 2014-02-11 15:19:51 -05:00
Chris Church
2b7af0a2ec Happy new year!!! 2014-01-02 11:51:43 -05:00
Chris Church
52c0a93293 Fix error views to use base REST framework template instead of admin, since admin is disabled. 2013-11-19 23:37:19 -05:00
Chris Church
2b01cc7059 AC-612 Return appropriate status code for server errors. Catch IntegrityError via the API and return a 400 response with error message instead of server error. 2013-11-06 23:44:48 -05:00
Chris Church
98883e771f Moved API code into separate Django app. 2013-11-04 15:44:49 -05:00
Chris Church
895c908f5a AC-537 Allow creating credentials through main credentials list. 2013-11-04 10:16:55 -05:00
Chris Church
6815905882 AC-537 Even more updates following database changes. 2013-11-04 10:16:54 -05:00
Chris Church
70d8ab9af6 Fix potential children to show only groups from the same inventory. 2013-10-28 12:44:29 -04:00
Chris Church
432e379878 Disable automatic deletion of a group when it has no more parents to support new UI inventory tree changes. 2013-10-27 15:56:38 -04:00
Chris Church
85a9f2f68a AC-540 Add /api/v1/inventory_sources/ list. OPTIONS request now returns all fields under actions['GET'] and only writable fields under actions['PUT'] or actions['POST']. 2013-10-09 15:44:25 -04:00
Chris Church
a9b84d4a5c AC-505 Update inventory sources list and related permissions checks. 2013-10-08 00:37:19 -04:00
Chris Church
1ffb40458c AC-505 Work in progress on cloud inventory sync. 2013-10-07 23:21:44 -04:00
Chris Church
bb484a7520 Add /api/v1/inventories/N/inventory_sources/ API resouce. 2013-10-02 16:15:50 -04:00
Chris Church
fe42862294 AC-286. Added potential_children resource for groups. 2013-09-28 16:45:44 -04:00
Chris Church
b7d907ed49 AC-505 Initial inventory import models and API support. 2013-09-26 15:54:34 -04:00
Chris Church
c0ea2527ec AC-156. Expose user_ldap_fields via API config to indicate which fields should not be editableon LDAP users. Add ldap_dn attribute to user record, prevent changing any LDAP-managed fields on LDAP users. 2013-09-10 03:28:59 -04:00
Chris Church
eff8a6426a AC-430. Add project status and last_updated as database fields for filtering/sorting. 2013-09-10 02:06:17 -04:00
Chris Church
dfc687dfae Implements AC-363. Authentication tokens now expire after a configurable timeout. 2013-09-06 00:36:45 -04:00
Chris Church
2e03a646a5 Fixes AC-402. Fix issues arising from unit tests. 2013-09-05 07:57:49 -04:00
Chris Church
72d87fb908 AC-382, AC-352. Added status and last_updated fields for projects API. Various other updates to support projects using SCM. 2013-09-05 01:19:58 -04:00
Chris Church
67ae8effa4 AC-132 Added API support to prompt for SCM passwords when updating a project. 2013-08-30 03:08:24 -04:00
Chris Church
0129036b40 For AC-332. Added support to inventory script view, inventory script and task engine to include hostvars inline when using Ansible >= 1.3. 2013-08-27 00:09:05 -04:00
Chris Church
2bb5374685 Added inventory tree view for AC-360. 2013-08-26 12:57:41 -04:00
Chris Church
ee3ba2c0e1 More work in progress on AC-132. 2013-08-26 10:31:39 -04:00
Chris Church
49beca2b97 Fix for AC-310. Change how we unattach a group from a parent group when it has no other parents, mark it inactive instead of just removing the relationship. 2013-08-04 22:38:36 -04:00
Chris Church
057e7bad59 Update browsable API built-in documentation to use templates. 2013-08-04 20:46:26 -04:00
Michael DeHaan
9fc8c0725c Workaround for bug in Ansible core where 127.0.0.1/localhost must be explicitly in the all group
for dynamic inventory plugins.  Github has also been filed for ansible core but can't rev it for release.
2013-07-28 20:50:56 -04:00
Chris Church
4c2af3a879 Fix AC-293. Explicitly check for start/cancel permissions on job for access to job start/cancel views. 2013-07-28 13:50:25 -04:00
Chris Church
fce1a04a76 Fix for AC-284. Delete groups when they are disassociated and have no more parents. Remove all group and host associations from a group when it is marked inactive. 2013-07-27 23:00:07 -04:00
Michael DeHaan
ac3ab82cc6 When a group only has children and no hosts/vars, still return things in hash-mode, because
Ansible is not smart enough to know that 'just children' in hash mode means anything.
2013-07-27 17:36:02 -04:00
Chris Church
c3639f96eb Fix AC-263 and AC-264. Update how we check for access to item referenced via foreign key, and determining whether an immutable field has changed. 2013-07-26 15:41:09 -04:00
Chris Church
4aaeb9506f Fixed AC-261. Relaxed permission requirements on parent object needed to view sublists. 2013-07-25 21:47:43 -04:00
Chris Church
9916a5eefb Fix for AC-257. Handle setting/updating password through UserSerializer. 2013-07-25 17:12:28 -04:00
Chris Church
0c54dcef39 Finish implementing access checks for all objects, update tests to pass. 2013-07-25 11:15:12 -04:00
Chris Church
bc49627203 Permissions-related updates and fixes, more tests, better handling of any user input that would previously generate a server error. 2013-07-25 11:15:12 -04:00
Chris Church
6fda31e790 Fix imports, __all__ definition, organization/team sublists under projects. 2013-07-25 11:15:11 -04:00
Chris Church
a6c767907e Renamed some API files/classes to mimic REST framework names, moved queryset filtering for permissions alongside other permissions/access checks, cleaned up base views to handle get_queryset based on class attributes, cleaned up post to sublist to create/attach/unattach. 2013-07-25 11:15:11 -04:00
Chris Church
af751e3f38 Fixed /api/v1/projects/N/organizations to allow creating a new organization via POST. 2013-07-19 21:32:16 -04:00
Chris Church
9af163691a Allow post to /api/v1/projects/N/organizations/, add resource for /api/v1/projects/N/teams/. 2013-07-19 11:49:40 -04:00
Chris Church
d09d94bca2 Finish implementation/tests of job template callback. 2013-07-11 22:32:51 -04:00
Chris Church
ca949eb71e Initial working version of job template callback with a test. 2013-07-11 14:57:59 -04:00
Chris Church
fccf663d42 Add tests for changed flag on job events. 2013-07-02 14:41:05 -04:00
Chris Church
4762166caf Added changed flag to job events, added launch_type to jobs. 2013-07-02 12:11:32 -04:00
Chris Church
914e586150 Work in progress on empheral host callback. 2013-07-02 12:11:32 -04:00