Commit Graph
229 Commits
Author SHA1 Message Date
Akita Noek c3144dc4d3 benign 0008 migration change to make makemigrations happy 2016-04-18 16:26:11 -04:00
Akita Noek 07eccbe3e4 Migration for dropping implicit host inventory,name ordering 2016-04-18 16:22:14 -04:00
AlanCoding 9c75ced9f8 Merge branch 'devel' of https://github.com/ansible/ansible-tower into 11th-hour 2016-04-18 14:12:13 -04:00
Akita Noek 878455187f Optimized viewable user list, fixed up some project readability bugs 2016-04-18 11:28:46 -04:00
Akita Noek 8b67f1d1c6 Removed team<->org role cycle 2016-04-18 11:27:22 -04:00
Akita Noek 85843cc6ad Fixed up some RBAC indexing 2016-04-17 10:20:38 -04:00
Akita Noek 5d0c6cc044 Switch to custom ancestry table for some optimized queries
Now we can stuff some more data in this table so we can take advantage
of some multi-column indexing and avoid another to join for our
accessible objects and permissions queries.
2016-04-16 18:27:57 -04:00
Akita Noek 2c45f79298 Migration updates for RolePermission removal 2016-04-16 08:47:51 -04:00
Akita Noek c440aefd85 fix jt tests 2016-04-15 16:08:14 -04:00
Wayne Witzel III d9538b200a fix User.accessible_objects 2016-04-15 14:57:01 -04:00
Wayne Witzel III d508254742 updater_role -> update_role 2016-04-15 11:01:35 -04:00
Wayne Witzel III 7098ef8da5 usage_role -> use_role 2016-04-15 11:01:08 -04:00
Wayne Witzel III 5bca1283b2 executor_role -> execute_role 2016-04-15 11:00:33 -04:00
AlanCoding 6fc51e2d85 preparing for new incoming migrations 2016-04-12 17:09:25 -04:00
AlanCoding b0bbeb2ca8 move credential to prompt-for mechanism 2016-04-12 17:09:25 -04:00
AlanCoding f471f9b072 change migration to allow blank inventory field 2016-04-12 17:09:24 -04:00
AlanCoding bea15021b3 ask_for_inventory permissions and runtime tests finished
cleanup prompt-for additions

update migration after rebase
2016-04-12 17:09:24 -04:00
AlanCoding cc84ed51d6 Add ability to prompt for several variable types on launch 2016-04-12 17:09:24 -04:00
Akita Noek 1d27ddc7d2 Fix bad migration from #1496 2016-04-12 16:50:54 -04:00
Akita Noek ad89491a07 Fixed bad merge 2016-04-12 16:31:11 -04:00
Akita Noek ea3a7ef227 Merge branch 'devel' of github.com:ansible/ansible-tower into migration 2016-04-12 16:30:09 -04:00
Wayne Witzel III 6bc765d1b5 Merge pull request #1507 from wwitzel3/rbac-bug-1422
RBAC Job Fixes
2016-04-12 16:22:47 -04:00
Akita Noek 29c7ecf6a8 Merge branch 'devel' into migration 2016-04-12 15:12:43 -04:00
Akita Noek 7b4e7ec5b3 Switch to explicitly stored implicit role parents
Completes #1496
2016-04-12 14:50:52 -04:00
Wayne Witzel III e5b9766c8f Update Job start / access permissions 2016-04-12 13:28:03 -04:00
Akita Noek e9aff8d67d Moved necessary add field migration to exist prior to dependent implicit role field which references the field 2016-04-12 11:40:17 -04:00
Akita Noek 74d86859f1 Fix project migration when project has exactly one org 2016-04-12 11:40:17 -04:00
Akita Noek 5f8e7bbf55 Replace user.admin_role usage with manual version that works in migrations 2016-04-12 11:40:17 -04:00
Akita Noek 86e29221d5 Fixed missing orgfunc usage to resolve organization during credential migration 2016-04-12 11:40:17 -04:00
Akita Noek 59b6ed3b9c Update rbac schema migrations so we have all parameters we need to operate during a migration
We need all those rbac fields definied in the migration in order for the
current apps to have access to them during a migration.
2016-04-12 11:40:17 -04:00
Akita Noek e3a45235a6 Do an initial save on all resources during amigration to force the creation of RBAC role objects. 2016-04-12 11:40:17 -04:00
Akita Noek 7d2e660749 Make use of 'current' apps so RBAC ImplicitRoleField can work during migrations
While a migration is taking place, we can't juse use normal model
references like Role and RolePermission, nor can we use generic foreign
keys without manually referring to the content type and object id
fields.
2016-04-12 11:40:17 -04:00
Akita Noek 274744b4c1 Replaced Role.singleton usage in migrations as it doesn't exist here apparently 2016-04-12 11:40:17 -04:00
Akita Noek ec439126e0 Added created/modified and another content_object fix in our migrations
#1380 #1425
2016-04-12 11:40:17 -04:00
Akita Noek b1c568e4d9 Fix invalid usage of content_object during migrations
#1380
 #1425
2016-04-12 11:40:17 -04:00
Chris Meyers 0d0115ef5e include migration 2016-04-12 10:23:43 -04:00
Wayne Witzel III 992521e040 add migrations for invsource and credentials 2016-04-11 15:00:58 -04:00
Wayne Witzel III 4a41c0f3b4 make CustomInvetoryScript a resource. 2016-04-07 11:53:21 -04:00
Chris Meyers 68c14976db label cleanup periodic job 2016-04-05 15:25:01 -04:00
Akita Noek 28acc9516d Hopefully fix ContentType problem hit during 2.4 -> 3.0 upgrade migration
#1380
2016-04-01 15:20:18 -04:00
Wayne Witzel III d7a81c62d3 fixup inventory migration from PR feedback 2016-04-01 09:21:45 -04:00
Wayne Witzel III 1d2d043c29 fixes:#1371 - migration log write permissions 2016-04-01 09:06:40 -04:00
Wayne Witzel III ed17be242d more unicode fixes 2016-03-31 14:20:16 -04:00
Akita Noek 219c09728d Merge branch 'devel' of github.com:ansible/ansible-tower into rbac 2016-03-31 11:32:02 -04:00
Wayne Witzel III 24e20abb1b more unicode safety 2016-03-31 11:20:19 -04:00
Akita Noek 2bb9b8a6fe Merge pull request #1352 from wwitzel3/rbac
RBAC PR Fixes
2016-03-31 10:06:20 -04:00
Wayne Witzel III e84008fe51 use len instead of count to take advantage of cache 2016-03-31 09:58:05 -04:00
Akita Noek 728c41f03a Split active flag removal migration into two migrations
Re #1344

https://docs.djangoproject.com/en/1.8/ref/migration-operations/#runpython
2016-03-31 09:39:50 -04:00
Wayne Witzel III 097bd805fa make migrations unicode safe, fixes #1345 2016-03-30 16:40:43 -04:00
Wayne Witzel III 82b72f99ca add rbac migration logging and reduce memory consumption 2016-03-29 17:16:26 -04:00