Alan Rominger
a078254508
Merge pull request #3157 from AlanCoding/3129
...
Protect NotFound error in POST to TeamRoles
2016-07-28 20:20:00 -04:00
AlanCoding
1fb173b2e5
RoleTeam and TeamRole sublist NotFound exception handling and test update
2016-07-28 16:01:42 -04:00
Alan Rominger
0c8946702c
Merge pull request #3139 from AlanCoding/3096_show_sys_JT
...
Show system JTs in the UJT list
2016-07-27 14:21:24 -04:00
AlanCoding
e27ce600c5
add system job templates to the unified JT list
2016-07-27 10:28:53 -04:00
AlanCoding
6fee46fb66
Reorganize activity stream around org admin/auditors
2016-07-22 12:50:14 -04:00
Alan Rominger
07a1f4bee2
Merge pull request #3062 from AlanCoding/3037_orphan_proj
...
orphan project protection in job delete access (API 3.0.1)
2016-07-21 11:57:58 -04:00
AlanCoding
7e49a428e6
Allow instant cancel for new jobs
2016-07-21 09:05:32 -04:00
AlanCoding
fc96952084
orphan project protection in job delete access
2016-07-20 10:21:38 -04:00
Wayne Witzel III
03c3ac074c
Merge pull request #3022 from wwitzel3/issue-2979
...
Fix sysadmin and sysauditor viewing orphan inventory script.
2016-07-15 15:26:33 -04:00
Matthew Jones
c36080e149
Explicit super user check for JT can_delete
2016-07-15 13:48:42 -04:00
Matthew Jones
df1c1ae473
Fix up flake8
2016-07-15 12:50:59 -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
Wayne Witzel III
b9de0b196d
add test for CustomInventoryScript serializer
2016-07-15 10:35:44 -04:00
AlanCoding
2876bb169b
switch order in migration
2016-07-14 15:49:24 -04:00
Akita Noek
6eb63285d2
Merge pull request #3010 from anoek/3006
...
Don't let normal users create orgless projects
2016-07-14 15:25:45 -04:00
Alan Rominger
7f168c7fe4
Merge pull request #3003 from AlanCoding/2988_team_cascade
...
Cascade delete teams from organization
2016-07-14 15:13:46 -04:00
Akita Noek
41d6d19bcb
Added patch tests for updating project organizations
2016-07-14 15:02:00 -04:00
AlanCoding
68d5a702af
Team organization field made non-null
2016-07-14 14:38:43 -04:00
Akita Noek
e18d142533
Don't let normal users create orgless projects
...
#3006
2016-07-14 14:29:34 -04:00
Matthew Jones
c852503163
Fix up some flake8 issues
2016-07-14 12:40:37 -04:00
Matthew Jones
00e55e3813
Add delete protection from certain objects
...
Certain objects can be sensitive to being deleted while jobs are
running, this protects those objects
2016-07-14 12:22:33 -04:00
AlanCoding
994a72967d
Cascade delete teams when their organization is deleted
2016-07-14 11:44:43 -04:00
Akita Noek
d39b9ff84f
Merge pull request #3001 from anoek/misc-fixes
...
Minor migration fixes
2016-07-14 11:23:22 -04:00
Akita Noek
6da6f48521
Updated tests to reflect credential access after migrations
2016-07-14 11:04:06 -04:00
Akita Noek
353e6100b9
Fix team credential role access in rbac migration
2016-07-14 09:54:41 -04:00
Akita Noek
bb14c9003d
Orphan handling in _old_access.py
2016-07-14 09:54:06 -04:00
Akita Noek
7b8c2f5b74
Normalized CustomInventoryScriptAccess.can_admin
2016-07-14 09:53:20 -04:00
AlanCoding
15f06ec9d3
allow system auditors to see orphan inventory scripts
2016-07-12 15:03:33 -04:00
AlanCoding
36286bcda2
notifier rbac test made consistent with others
2016-07-12 11:16:55 -04:00
AlanCoding
0fcc9abd69
allow org auditors to see notifications
2016-07-12 10:30:44 -04:00
AlanCoding
f68495cf58
allow org auditors to view notification templates
2016-07-12 09:18:04 -04:00
Wayne Witzel III
f9707c0ca1
Merge pull request #2922 from wwitzel3/issue-2508
...
ensure CustomInventoryScripts render correctly in the ActivityStream
2016-07-12 08:28:43 -04:00
Wayne Witzel III
f7e9d07dad
ensure CustomInventoryScripts render correctly in the ActivityStream
2016-07-11 15:25:35 -04:00
Akita Noek
1aeca1bebb
Merge pull request #2919 from anoek/2918
...
Several system auditor fixes to allow SA's to read and see things
2016-07-11 15:23:36 -04:00
Akita Noek
fd461a9768
Remove redundant check
2016-07-11 15:05:35 -04:00
Matthew Jones
2f843d15e0
Also forcefully kill the main process
2016-07-11 14:45:41 -04:00
Akita Noek
ec37703ce8
Allow SA's to read all notification templates
2016-07-11 14:44:36 -04:00
Matthew Jones
43c5105a57
No more Mr. Nice Tower
...
or how I learned to stop worrying and use SIGKILL.
Ansible has a bug that could potentially leave tower's jobs hanging
around indefinitely requiring manual shell intervention. I'm going to
put this here and until Ansible can get to the bottom of it.
2016-07-11 14:37:09 -04:00
Akita Noek
134b60dbed
Switch to explicit checks for system auditor for all applicable get_queryset calls
...
Solves #2918 and probably a couple other corner cases where orphan
situations could happen
2016-07-11 14:06:40 -04:00
Matthew Jones
6447434aa1
Hanele credential in notifications when deleted
2016-07-11 10:16:33 -04:00
Akita Noek
8bad695d26
Merge pull request #2886 from anoek/2804
...
Allow anyone who can read an inventory to see adhoc commands run on that inventory
2016-07-08 16:57:37 -04:00
Akita Noek
7733167693
Updated tests to reflect new expected behavior
2016-07-08 16:29:14 -04:00
AlanCoding
5027027aba
update behavior of access.py to newer DRF, display POST box for most list endpoints
2016-07-08 15:18:40 -04:00
Matthew Jones
ae9b4d3e58
Revert "Fix up hook conditions for rbac activity stream"
...
This reverts commit 36c14f83bcb11fcdbd31140ce182ab87e3db4644.
2016-07-08 13:13:22 -04:00
Matthew Jones
26b0d345f8
Notification guarding for deleted inventory
2016-07-08 13:04:42 -04:00
Matthew Jones
1c860b81ac
Fix up hook conditions for rbac activity stream
2016-07-08 13:03:34 -04:00
Matthew Jones
4c7f54cf72
Fix an activity stream associate with deleted obj
...
In some scenarios the activity stream associate could be invoked where
obj2 doesn't exist... the .get() will fail and tank the caller
preventing the save. This guards that and blocks the activity stream
event, saving the save (whew!)
2016-07-08 12:56:52 -04:00
Akita Noek
a0017eb074
Skip troublesome old job tests
...
These are actively being worked on by matburt and cmeyers, merging these
skips because the otherwise unrelated test failures are causing
headaches for the UI team.
2016-07-08 12:33:32 -04:00
Akita Noek
ee3d4dc42d
Allow anyone who can read an inventory to see adhoc commands run on that inventory
...
This implicitly solves one of the issues with #2804 , but is in general a
better behavior in general we believe.
2016-07-08 12:09:39 -04:00
Akita Noek
33547259e2
Merge pull request #2840 from anoek/test-porting
...
Ported several old tests to our new test system
2016-07-08 09:25:35 -04:00