5937 Commits

Author SHA1 Message Date
Akita Noek
d51447e158 Migration and tests for super users 2016-02-08 22:54:19 -05:00
Akita Noek
5008e3faf5 Add parent System roles to organization roles 2016-02-08 22:54:19 -05:00
Akita Noek
f7dc3c0f0d Added an explicit member role, distinct from auditor role 2016-02-08 22:54:19 -05:00
Wayne Witzel III
916dfb62cc Merge pull request #881 from wwitzel3/rbac
flake8 fixup
2016-02-08 18:19:02 -05:00
Wayne Witzel III
0ba7992004 flake8 fixup 2016-02-08 16:37:05 -05:00
Akita Noek
6df8017cb1 Merge pull request #877 from wwitzel3/rbac-port-migrations
Convert migrate_to_rbac method to Migrations
2016-02-08 16:30:35 -05:00
Wayne Witzel III
e71de34cc1 convert Inventory to django migrations 2016-02-08 16:22:41 -05:00
Wayne Witzel III
f29fdf694f convert Team to django migrations 2016-02-08 16:06:12 -05:00
Wayne Witzel III
8cf0ba0da7 convert Credential to django migration 2016-02-08 15:54:11 -05:00
Wayne Witzel III
1ed18e4561 convert Organization to django migration 2016-02-08 15:53:48 -05:00
Wayne Witzel III
b8a7ad17ea Added initial rbac migrations 2016-02-08 15:33:59 -05:00
Wayne Witzel III
0d868b702e Merge pull request #817 from wwitzel3/rbac
flake8 fixups
2016-02-08 11:33:21 -05:00
Wayne Witzel III
9ddabeff83 flake8 fixups 2016-02-08 10:32:55 -05:00
Akita Noek
1418e95155 Merge pull request #813 from anoek/rbac 2016-02-05 17:05:30 -05:00
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
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
Wayne Witzel III
b903726ddb updated organization rbac tests 2016-02-04 16:53:06 -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
John Mitchell
068b32b1b4 updates to scheduler
- form and perspective next scheduler runs are in single list form view for projects and job templates
- submit/cancel/x at top of form project panel work
2016-02-04 13:14:34 -05:00
John Mitchell
1b357d5a3e css fixes to list headers
-tags (like admin on users) are now correctly centered
-buttons on certain forms do not create header centering issues
-added lockup css for use with panel header titles
2016-02-04 13:13:28 -05:00
Wayne Witzel III
5a6dd266da Merge pull request #784 from wwitzel3/issue/616
fixing inventory bug for GCE introduced fixing #616
2016-02-03 16:04:11 -05:00
Wayne Witzel III
b82bd9404f fixing inventory bug for GCE introduced fixing #616 2016-02-03 13:25:17 -05:00
Chris Church
ab8e37eeaa Minor fixes based on comments. 2016-02-03 13:18:49 -05:00
Michael Abashian
c9ce546e4b Merge pull request #782 from mabashian/configurable-title-badge
Make title badge a configurable option in the list view
2016-02-03 11:31:23 -05:00