Ryan Petrello
b1f56df930
fix linting failures
2020-01-13 15:58:19 -05:00
Graham Mainwaring
2b111c81df
Add /login convenience URL
2019-12-11 17:21:02 -05:00
Jeff Bradberry
2ffe3d9a85
Give the 4xx error handler views the correct positional arguments
2019-07-12 15:11:22 -04:00
Ryan Petrello
eacf819caf
add a reasonable default Content Security Policy
...
ideally we'd improve this over time to remove the `unsafe-inline` lines,
but we can't due that today because Angular1 makes use of a lot of
inline <script> and <style> tag generation
see: https://github.com/ansible/awx/issues/2056
2019-06-26 10:46:26 -04:00
Jeff Bradberry
f94959d120
Remove the custom get_view_name function
...
It appeared to not be doing anything that we were making use of that
couldn't already be done, slightly differently, using DRF's built-in
one.
2019-06-12 14:12:59 -04:00
Aaron Tan
381b47201b
Allow exception view to accept all valid HTTP methods.
2017-04-25 13:35:21 -04:00
sundeep-co-in
78a8ce9479
django i18n
2016-10-18 18:10:39 +05:30
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