AlanCoding
fa08c8d4bb
wrap up some more implementation, and get caching seriously working
2016-08-31 16:53:47 -04:00
AlanCoding
23791cb91e
Merge branch 'devel' of https://github.com/ansible/ansible-tower into can_CRUD
2016-08-29 14:01:18 -04:00
AlanCoding
eddc1a8ed2
implement two methods for can_edit field for testing
2016-08-22 14:43:04 -04:00
Aaron Tan
0991e213cc
Merge pull request #3252 from jangsutsr/2955_update_system_job_start_access
...
Update system job start access
2016-08-22 12:35:48 -04:00
Matthew Jones
8893f8278a
Merge branch 'release_3.0.2' into devel
...
* release_3.0.2: (126 commits)
Disable permissions tab in Credential > Edit form if Credential is private (#3288 )
Tweaked the popover text for job and skip tags on JT add/edit
Workaround a cascade setnull polymorphic issue
flake8
Fixed old test expectations
Made it so the credential organization field can't be changed
Skip some unit tests
Fixed org auditor visibility of team credentials
Fix sosreport
fix credential kind options for list
interpret any code below 300 as success
bail when status code is over 300
Make CloudForms inventory_script work
Use no_log when handling passwords
Prevent ignored task from being displayed as failing.
making ec2 cred optional on group->edit
making ec2 credential optional for ec2 inventory
Revert "Fix to ensure org auditors can see team credentials"
Fixed team credential list to work with corrected permissions
Making the username and password fields optional
...
2016-08-18 22:52:55 -04:00
Akita Noek
30451f230b
Fixed org auditor visibility of team credentials
...
And by fix, I mean prevent us from getting into the situation that was
causing the asymetric visiblity by brining us into alignment with the
original intention and spec for how credentials were supposed behave.
#3081
2016-08-16 14:02:09 -04:00
Akita Noek
db87e3cb30
Merge branch 'release_3.0.2' into 3081
2016-08-16 13:52:57 -04:00
jangsutsr
0c854dde43
remove redundant permission checks in start views.
2016-08-15 12:02:35 -04:00
jangsutsr
d3968fd080
Enable user for starting system management jobs.
2016-08-15 11:34:17 -04:00
Aaron Tan
f90b244fe6
Prevent ignored task from being displayed as failing.
2016-08-11 17:34:35 -04:00
Akita Noek
f81d6afe83
Fixed team credential list to work with corrected permissions
2016-08-11 10:17:33 -04:00
Aaron Tan
bea36bd1dc
Add notifications link to ad_hoc command details.
2016-08-08 17:17:45 -04:00
Aaron Tan
01588af5ac
Merge pull request #3219 from jangsutsr/typo_fix
...
Fix a minor typo in job events model and restructure a bit to fix 500 error.
2016-08-08 14:29:48 -04:00
Aaron Tan
a2093e3e13
Fix a minor typo in job events model and restructure a bit to fix 500 error.
2016-08-08 13:41:59 -04:00
Chris Church
3bb14e2f72
Clear cache between tests or when license is updated.
2016-08-08 11:59:55 -04:00
Wayne Witzel III
f30292c7f1
Merge pull request #3192 from wwitzel3/test-refactoring
...
Update some tests and refactor some code.
2016-08-04 11:17:42 -04:00
Wayne Witzel III
c5b005fd35
refactor start_event_queryset into model
2016-08-03 15:37:40 -04:00
Chris Church
3850b96da2
Re-enable API settings URLs.
2016-08-03 14:56:09 -04:00
Alan Rominger
1352fe822d
Merge pull request #3172 from AlanCoding/3118_role_read
...
Drop in visible_roles to RoleAccess can_read
2016-08-01 15:40:21 -04:00
Matthew Jones
3e1c0111f5
Merge branch 'api_release_3.0.1' into release_3.0.2
...
* api_release_3.0.1:
add code to HostAccess can_add so the browsable API will work
update unit tetsts
use get_object_or_400 to fetch Role
refactor to unit tests
restrict User.admin_role membership changes through RoleUsersList
fix test
do not allow membership changes to User.admin_role
RoleTeam and TeamRole sublist NotFound exception handling and test update
add system job templates to the unified JT list
Reorganize activity stream around org admin/auditors
Allow instant cancel for new jobs
orphan project protection in job delete access
pass context into Job and JobList serializer classes
pass context to unified job template subclasses
Allow auditors to see same /api/v1/config information as admins
2016-08-01 13:23:37 -04:00
Wayne Witzel III
9baa9594c7
use get_object_or_400 to fetch Role
2016-07-29 11:29:49 -04:00
Wayne Witzel III
b127e74ae4
refactor to unit tests
2016-07-29 11:29:43 -04:00
Wayne Witzel III
52865eea6a
restrict User.admin_role membership changes through RoleUsersList
2016-07-29 11:29:41 -04:00
Wayne Witzel III
06bb8871d7
do not allow membership changes to User.admin_role
2016-07-29 11:29:36 -04:00
AlanCoding
1fb173b2e5
RoleTeam and TeamRole sublist NotFound exception handling and test update
2016-07-28 16:01:42 -04:00
AlanCoding
1d951a7eff
use same model method to determine read permission as we do in the views
2016-07-27 12:13:38 -04:00
Chris Meyers
4cf7344dc4
check license permission on host create
2016-07-21 16:53:25 -04:00
Akita Noek
38f03ea32f
Allow auditors to see same /api/v1/config information as admins
2016-07-17 08:04:06 -04:00
Alan Rominger
94e39b0cee
Merge pull request #3015 from AlanCoding/org_read_role
...
Add read_role to organization select_related
2016-07-15 15:32:04 -04:00
Matthew Jones
eb97b8c916
Switch disallowed object delete to 409
...
In the case of running job conflicts
2016-07-15 11:47:02 -04:00
AlanCoding
df940f811c
add read_role to organization select_related
2016-07-14 16:11:29 -04:00
Matthew Jones
c852503163
Fix up some flake8 issues
2016-07-14 12:40:37 -04:00
AlanCoding
646f848cfb
fix incorrect error message
2016-07-12 15:46:48 -04:00
Alan Rominger
feb94139c4
Merge pull request #2924 from AlanCoding/leftover_related
...
Add missing roles to select_related
2016-07-11 17:06:03 -04:00
AlanCoding
1b613d919b
include all roles in the select_related
2016-07-11 16:51:29 -04:00
Akita Noek
6de5cceb8f
More is_system_auditor checks in views.py
2016-07-11 14:28:26 -04:00
Matthew Jones
6a1973c873
Disallow deleting job templates when there are jobs running
2016-07-07 12:03:41 -04:00
AlanCoding
25c177cdcd
M2M fix for project activity stream
2016-07-07 10:24:50 -04:00
Wayne Witzel III
16bc0cdf0b
add helper decorator to ensure signleton roles see the proper role list
2016-07-01 10:38:02 -04:00
Wayne Witzel III
47893613a2
ensure the singleton roles show up for sys auditor / sys admins
2016-06-30 10:55:54 -04:00
Chris Meyers
a57dca9786
fix delete last label disassociate
...
* Inherit from mixin first in order to overwrite next inherited class
method, unattach.
* Also, fix up test and add test to ensure correct inheritance
2016-06-29 17:19:08 -04:00
Akita Noek
8ad505c9cc
Fixed notification template deleting
...
#2674
2016-06-28 12:27:13 -04:00
Wayne Witzel III
4f534122c5
Merge pull request #2675 from wwitzel3/issue-2244
...
Do not show the read_role child for Teams
2016-06-28 11:43:05 -04:00
Wayne Witzel III
8e89edc27f
Do not show the read_role child for Teams
2016-06-28 10:56:08 -04:00
Akita Noek
9f43b6e60c
Use SubListAPIView for RoleTeamsList
2016-06-28 10:32:36 -04:00
Akita Noek
831c4c2fef
Cleaned up some more stale TODO's and FIXME's (or did / fixed the things)
2016-06-27 15:12:37 -04:00
Akita Noek
4bf50b2d6a
Dead code removal
2016-06-27 15:12:37 -04:00
Akita Noek
bf6767786e
Stale comment cleanup
2016-06-27 15:12:37 -04:00
Akita Noek
b57739a800
Converted except T,e expressions to except T as e
2016-06-27 15:12:37 -04:00
Akita Noek
7839db0c23
Dead code removal
2016-06-27 15:12:37 -04:00