Commit Graph

2368 Commits

Author SHA1 Message Date
Akita Noek
b21c7e1d15 Fix inventory update permission so update_role is enough to update 2016-06-30 14:58:44 -04:00
Chris Meyers
c0ef749c64 Merge pull request #2707 from chrismeyersfsu/fix-label_mixin_ordering
fix delete last label disassociate
2016-06-30 09:59:37 -04:00
Wayne Witzel III
eb0fc15742 Merge pull request #2690 from wwitzel3/test-refactoring
Adding some coverage for task helpers.
2016-06-29 21:11:30 -04:00
Wayne Witzel III
5ef385db20 add extra parametrize test and fix indent error 2016-06-29 20:17:59 -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
Matthew Jones
9bd05abcf3 Derive ad-hoc - inventory source notification templates 2016-06-29 13:48:00 -04:00
Wayne Witzel III
32d781175d add and update task unit tests 2016-06-29 12:09:15 -04:00
Wayne Witzel III
479119f3ce add more task unit tests 2016-06-29 12:09:14 -04:00
Chris Meyers
8825bc7075 Merge pull request #2681 from chrismeyersfsu/enhancement-log_fact_migration
add logging to system tracking migration
2016-06-28 17:12:24 -04:00
Chris Meyers
0cb00c1554 add logging to system tracking migration 2016-06-28 16:02:33 -04:00
Alan Rominger
513e6c993f Merge pull request #2647 from AlanCoding/jt_can_add_betterment
A route around get_object_or_400 in JT can_add calcs
2016-06-28 14:31:44 -04:00
Chris Meyers
741ed4b904 allow members of an org to create labels for orgs that they are members of 2016-06-28 13:41:04 -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
994065d495 removing test (already had coverage), fixing test 2016-06-28 11:19:18 -04:00
Akita Noek
5043ff45c2 Removed active_roles
The UI isn't using this feature at the moment so we're going to remove
it for 3.0, and probably bring it back in 3.1, potentially in different
ways depending on UI needs then.
2016-06-28 11:02:28 -04:00
Akita Noek
5ed36624a3 Merge pull request #2664 from anoek/todo-cleanup
API todo/fixme addressing and cleanup
2016-06-28 11:01:41 -04:00
Wayne Witzel III
4d3d38c4ac ensure read_role is not being returned 2016-06-28 10:56:36 -04:00
AlanCoding
7b0f20e90d job template serializer can_add calc to avoid lookups of known related objects 2016-06-28 10:18:30 -04:00
Matthew Jones
8055bcc94e Create activity stream event on group delete
Normally this is bypassed for recursive deletes, this manually creates
one beyond the bypass
2016-06-27 16:53:47 -04:00
Wayne Witzel III
5456b209ac Merge pull request #2654 from wwitzel3/issue-2485
reduce activity stream noise
2016-06-27 15:47:59 -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
b57739a800 Converted except T,e expressions to except T as e 2016-06-27 15:12:37 -04:00
Matthew Jones
80b044580d Fix up flake8 for notification tests 2016-06-27 15:12:10 -04:00
Wayne Witzel III
3697ddc2d0 fixing Role is None exception 2016-06-27 13:40:50 -04:00
Wayne Witzel III
e1853372f7 Adding comments to signals for rbac activity stream 2016-06-27 11:41:00 -04:00
Matthew Jones
78e10241da Disallow DELETE on a notification_template
When there are pending notifications
2016-06-27 11:36:29 -04:00
Wayne Witzel III
f0418d8841 Merge pull request #2634 from wwitzel3/issue-2560
Disallow non-admin of a user to add a user to Roles
2016-06-27 11:28:38 -04:00
Wayne Witzel III
5e2a3b3ef2 reduce activity stream noise by not including implicit role dis/associations 2016-06-27 11:28:06 -04:00
Wayne Witzel III
ce3ce8d930 enforce read access for team/child roles 2016-06-27 11:02:07 -04:00
Akita Noek
db02b446e5 Merge pull request #2646 from anoek/2628
Better handle missing notification_type in patches to notification template
2016-06-27 10:47:04 -04:00
Akita Noek
7979ad3bc8 Merge pull request #2641 from anoek/2515
Don't update computed fields while mass group deleting until the end
2016-06-27 10:46:13 -04:00
Alan Rominger
9923728797 Merge pull request #2635 from AlanCoding/AS_test_pagination
Activity Stream update prefetched fields, avoid a .distinct().count()
2016-06-27 10:29:10 -04:00
Akita Noek
2b323fc24e Better handle notification template patches for notification_type
This makes it so patches don't require the notification_type to be present
2016-06-27 09:40:39 -04:00
Wayne Witzel III
fca4e75e03 missed org.auditor_role in credential read_role 2016-06-24 17:01:11 -04:00
Wayne Witzel III
089065bed1 RoleAccess.can_unattach ensures you have read access member 2016-06-24 16:55:50 -04:00
Wayne Witzel III
87ffded774 renaming Credential.owner_role -> Credential.admin_role 2016-06-24 16:55:07 -04:00
Akita Noek
9494db583d Better handle missing notification_type in patches to notification template
Addresses #2628
2016-06-24 16:50:27 -04:00
Akita Noek
198daf762e Don't update computed fields while mass group deleting until the end
Significantly reduces the time it takes to delete bulk groups, re #2515
2016-06-24 15:28:49 -04:00
Akita Noek
152675d610 Merge pull request #2632 from anoek/2631
Removed some missed things from our Group role removal work
2016-06-24 14:48:38 -04:00
AlanCoding
02dac5299c Activity Stream prefetch update to new fields, avoid distinct.count repeated queries 2016-06-24 14:19:41 -04:00
Akita Noek
ca2b4766a5 Removed some missed things from our Group role removal work
* Removed `groups/n/object_roles`
* Removed `groups/n/access_list`
* `active_roles` from the Group `summary_fields`

 #2631
2016-06-24 14:17:20 -04:00
Akita Noek
291c8126d7 Fixed inventory edit editablity from update_role users
Now you'll need the expected admin_role access to do things like edit
inventory, groups, and hosts.

 Resolves #2561
2016-06-24 11:03:54 -04:00
Akita Noek
20ba96ae84 Description update
With our role removal from inventory groups this description needed some
updating
2016-06-24 09:49:14 -04:00
Akita Noek
feaaac94a2 Merge pull request #2603 from anoek/2579
Removed roles per inventory group
2016-06-24 09:23:06 -04:00
Matthew Jones
288ecc1c5b Ignore management jobs on activity stream 2016-06-23 16:14:56 -04:00
Akita Noek
f6ebf80eba Fixed Group queryset 2016-06-23 11:57:03 -04:00
Akita Noek
7aa31bb51b Updated old test case to allow org admins to create inventory scripts
This was added in e9fe45389d
2016-06-23 11:15:56 -04:00
Akita Noek
ee8215dc52 Removed InventoryGroup roles 2016-06-23 11:01:22 -04:00
AlanCoding
2bebb76881 restrict editing of orphan notification templates to superusers 2016-06-23 09:51:58 -04:00
Wayne Witzel III
68d47cfc93 Merge pull request #2574 from wwitzel3/fix-race
Ensure teams cannot have org roles as children.
2016-06-22 17:31:27 -04:00