8427 Commits

Author SHA1 Message Date
Akita Noek
70229076d2 Removed unnecessary ResourceHierarchy model 2016-02-05 17:03:59 -05:00
Akita Noek
fe29486d7b Removed unnecessary save() 2016-02-05 17:01:19 -05:00
Akita Noek
619e5797d4 RBAC inventory migration tests 2016-02-05 16:59:38 -05:00
Akita Noek
d5740408e9 Addd inventory fixture 2016-02-05 16:59:22 -05:00
Akita Noek
9f33835582 Added RBAC migration code 2016-02-05 16:58:41 -05:00
Akita Noek
332b8b3b49 Added Role.is_ancestor_of predicate 2016-02-05 16:58:16 -05:00
Akita Noek
4540eb0079 Updated role hierarchy cache rebuilder to handle adds to .children as well as .parents 2016-02-05 16:46:00 -05:00
Wayne Witzel III
737fad8c5a Merge pull request #805 from wwitzel3/rbac
Added Credential migration tests and extended organization tests.
2016-02-05 10:26:13 -05:00
Wayne Witzel III
5ed766ed35 Added Team.migrate_to_rbac and tests 2016-02-05 09:57:15 -05:00
Matthew Jones
a2cf365325 Merge pull request #804 from cchurch/allow-null-or-blank-for-project-booleans
Allow null/blank input for boolean fields on projects.
2016-02-05 09:55:15 -05:00
Matthew Jones
b8dfa3df16 Merge pull request #803 from cchurch/remove-fields-for-ad-hoc-commands
Remove unified_job_template and description fields for ad hoc commands
2016-02-05 09:55:06 -05:00
Matthew Jones
38b1d13edc Merge pull request #802 from cchurch/metadata-check-if-view-has-serializer
Check if view has a get_serializer method before trying to call it.
2016-02-05 09:54:59 -05:00
Matthew Jones
a20fa59b9c Merge pull request #801 from cchurch/include-api-css-js
Include api.css and api.js under awx/static/.
2016-02-05 09:54:48 -05:00
Matthew Jones
e890f23d00 Merge pull request #799 from cchurch/quick-fix-select-related
Quick fix for select related error with unified job templates and jobs
2016-02-05 09:54:37 -05:00
Matthew Jones
71cd77c3e0 Merge pull request #798 from cchurch/fix-792
Don't show playbooks under project detail.
2016-02-05 09:54:26 -05:00
Wayne Witzel III
7b3f3675f8 flake8 fixes 2016-02-05 09:18:52 -05:00
Wayne Witzel III
89236a1fe6 extended test_rbac_organization tests 2016-02-05 08:50:27 -05:00
Wayne Witzel III
58a603bac1 added Credential.migrate_to_rbac and tests 2016-02-05 08:47:15 -05:00
Chris Church
abc8da4531 Allow null/blank input for boolean fields on projects. Fixes #791. 2016-02-05 05:14:48 -05:00
Chris Church
da0f87c325 Remove unified_job_template and description fields for ad hoc commands. Fixes #789. 2016-02-05 04:55:40 -05:00
Chris Church
23feccdbf3 Check if view has a get_serializer method before trying to call it. Fixes OPTIONS issue in #788. 2016-02-05 04:45:14 -05:00
Chris Church
da7d4f4c67 Include api.css and api.js under awx/static/. Fixes #788. 2016-02-05 04:41:10 -05:00
Chris Church
7a0574e6f3 Quick fix for select related error with unified job templates and jobs. Fixes #793 and #795. 2016-02-05 04:30:08 -05:00
Chris Church
217fd383b3 Don't show playbooks under project detail. Fixes #792. 2016-02-05 04:09:17 -05:00
Michael Abashian
8b5e8be2e3 Merge pull request #787 from mabashian/activity-stream-subtitle
Added subtitle to the activity stream
2016-02-04 19:24:41 -05:00
Wayne Witzel III
b903726ddb updated organization rbac tests 2016-02-04 16:53:06 -05:00
Matthew Jones
319deffc18 Implement notification serializer and validations 2016-02-04 15:52:23 -05:00
Matthew Jones
172207cd4b Notification endpoints and url expositions
Also some changes to the footprint of the notification handler classes
2016-02-04 15:52:23 -05:00
Matthew Jones
96b0fb168f Updating makefile migration generator 2016-02-04 15:52:23 -05:00
Matthew Jones
805514990b Changes to celery tasks to support success signals
Linking in a success callback that will be invoked by our UnifiedJobs in
the case they terminate normally.  This is where we'll hook in the
success notification type.
2016-02-04 15:52:23 -05:00
Matthew Jones
7385efef35 Adding some early Notifications stubs
* A basic NotificationTemplate model class with early notification type
  definitions
* Initial implementations of the Email, Slack, and Twilio Notification
  backends using the Django email backend system
* Some dependencies thereof
2016-02-04 15:52:23 -05:00
Wayne Witzel III
724b572a3c test_rbac_migrations -> test_rbac_organization 2016-02-04 15:52:15 -05:00
Wayne Witzel III
896ecab031 Added rbac tests and migrations for Organization 2016-02-04 15:12:25 -05:00
Wayne Witzel III
932b6a4c82 add basic Organization migration 2016-02-04 15:12:25 -05:00
Akita Noek
c6b2e509fd Fixed ImplicitRoleField and ImplicitResourceField's from being too lazy
This ensures that the role and resource fields get created and bound
automatically without having to explicitly access them a first time.
2016-02-04 15:12:25 -05:00
Akita Noek
1035a6737e Added singleton role support method and parent_role auto-binder in the ImplicitRoleField
Also fixed bug in the single object permission lookup.
2016-02-04 15:12:25 -05:00
Akita Noek
4d080497cc Updated inventory role/resource model to better match the spec 2016-02-04 15:12:25 -05:00
Akita Noek
1cd8f6f46a Moved m2m signal handler out to our common signals.py 2016-02-04 15:12:25 -05:00
Akita Noek
74163d3711 Added Role.grant method for convenient permission granting 2016-02-04 15:12:25 -05:00
Akita Noek
cf298f6803 Single permission query optimization 2016-02-04 15:12:25 -05:00
Akita Noek
5b50ebb8da Added a ResourceMixin to be added to any model that is a "Resource"
Also added initial permissions checking and accessible object methods to
the mixin
2016-02-04 15:12:25 -05:00
Akita Noek
6dad0406b8 Initial implicit role / resource field additions into models
"Completes" #731 until we find out what I missed
2016-02-04 15:12:24 -05:00
Akita Noek
68d8299689 Switched from booleans to integers for permissions flags
This is so that our permissions aggregation query can use MAX(column)
which exists and works in both postgres and sqlite, as opposed to having
some conditional aggregate function that we use depending on our
backend.
2016-02-04 15:12:24 -05:00
Akita Noek
014b970030 Automatically rebuild our role hierarchy when our m2m map is updated 2016-02-04 15:12:24 -05:00
Akita Noek
fae9ef3d65 flake8 corrections 2016-02-04 15:12:24 -05:00
Akita Noek
00619b7e36 Initial RBAC field and model definitions 2016-02-04 15:12:24 -05:00
Wayne Witzel III
6d71fe49f2 Update README.md
Added build tag to README.md
2016-02-04 14:32:40 -05:00
Wayne Witzel III
d4232eaca0 Merge pull request #534 from cchurch/django18
Django 1.8 and DRF 3.3 Support
2016-02-04 14:28:44 -05:00
Michael Abashian
6a4f374e8c Removed duplicate List-titleLockup styles that I introduced 2016-02-04 13:24:56 -05:00
Michael Abashian
f2d6d84ed2 Added subtitle to the activity stream 2016-02-04 13:18:38 -05:00