Commit Graph

568 Commits

Author SHA1 Message Date
Alan Rominger
64944393d3 Merge pull request #3505 from AlanCoding/can_CRUD
Copy/edit rework
2016-09-22 11:30:10 -04:00
Aaron Tan
f68baadc39 Add can_start to notification template access 2016-09-20 23:38:05 -04:00
AlanCoding
7ff5c40564 Merge branch 'devel' of https://github.com/ansible/ansible-tower into can_CRUD 2016-09-15 17:19:38 -04:00
Matthew Jones
f5d2c5c18a Merge branch 'ramparts_and_ha' into devel
* ramparts_and_ha: (21 commits)
  Rename database migrations for devel integration
  Integrate callback receiver refactoring
  Fix an issue running jobs in the cluster
  Implement a more dynamic celery queue system
  Purge old munin monitors and tools
  Refactor Tower HA Instance logic and models
  Docker compose improvements
  Initial Docker Compose workflow for Tower cluster
  Add memcached role for setup playbook
  Removing qpid from deb packaging
  Refactor rabbitmq role
  Integrate memcached into setup playbook
  Remove mongodb shutdown task
  Remove dependency on erlang_sd_notify
  Add initial rabbitmq role
  Initial rabbitmq setup playbook integration
  Update development environment for rabbit
  Replace qpid with rabbitmq
  Remove redis role from setup playbook
  Update qpid packaging, remove migrations
  ...
2016-09-15 10:19:57 -04:00
Chris Meyers
c3bb7521de Merge pull request #3474 from chrismeyersfsu/feature-workflows
workflows
2016-09-15 10:12:58 -04:00
Chris Meyers
32461574ae add unit tests 2016-09-13 15:24:20 -04:00
Chris Meyers
cea5ebadb7 split Node in job and job template node 2016-09-12 11:04:20 -04:00
AlanCoding
0933a91174 Merge branch 'devel' into can_CRUD 2016-09-12 08:56:47 -04:00
AlanCoding
d77dc271d8 copy/edit display test refactor, copy prefetch added 2016-09-09 15:13:48 -04:00
AlanCoding
507ba6a778 add new case in prefetch method for foreign-key roles 2016-09-08 15:03:55 -04:00
Chris Meyers
e4025a7eff flake8 fixes 2016-09-08 14:26:30 -04:00
Matthew Jones
0c1e1fa2fb Refactor Tower HA Instance logic and models
* Gut the HA middleware
* Purge concept of primary and secondary.
* UUID is not the primary host identifier, now it's based mostly on the
  username.  Some work probably still left to do to make sure this is
  legit.  Also removed unique constraint from the uuid field.  This
  might become the cluster ident now... or it may just deprecate
* No more secondary -> primary redirection
* Initial revision of /api/v1/ping
* Revise and gut tower-manage register_instance
* Rename awx/main/socket.py to awx/main/socket_queue.py to prevent
  conflict with the "socket" module from python base
* Revist/gut the Instance manager... not sure if this manager is really
  needed anymore
2016-09-08 13:37:53 -04:00
AlanCoding
6b0df43f3b add unattach field to user and team roles list 2016-09-08 11:09:17 -04:00
AlanCoding
0406431337 refactor step 2, move cacher to utils, generics ListView 2016-09-01 17:20:58 -04:00
AlanCoding
398e9466f8 refactor step 1, get access_class within method 2016-09-01 15:05:33 -04:00
Chris Meyers
39ac2c047b launch workflows 2016-09-01 14:11:20 -04:00
AlanCoding
fa08c8d4bb wrap up some more implementation, and get caching seriously working 2016-08-31 16:53:47 -04:00
Matthew Jones
95563c7637 Add Inventory and Project Update list endpoints 2016-08-31 16:17:22 -04:00
Matthew Jones
f988877bae Merge branch 'stable' into devel
* stable: (24 commits)
  Updating changelogs for 3.0.2 release
  fixing deprecated_team.organization credential migration
  Fix issue when installing bundled ansible on el6
  fixed localed date stuff
  update test to check org_auditor access
  ensure team organizations are assigned to credentials
  temporarily pin the pytest version until the ldap error can be fixed
  fixed locale
  fix date locale angular scheduler
  Make sure org admins can see credential after migration, comment updates on related tests add clause in test to verify automatic setting of org of new team credential
  Update team admin credential migration test to current state-of-knowledge
  fix ng-toast rel, resolves #3197 (#3316)
  allow users to edit their first and last name
  Revert "Prevent ignored task from being displayed as failing."
  Revert "Modify job event save behavior"
  fixing old tests for new user creation permissions
  Clean venv on 'make clean'
  Resolve KeyError by coercing instance_id to a str
  Update cloudforms dynamic inventory
  Update foreman inventory script
  ...
2016-08-31 14:34:52 -04:00
Chris Meyers
2cfdee3b21 turn job templates in jobs via launch 2016-08-31 09:00:25 -04:00
Chris Meyers
4c876b40e4 initial models and endpoints added for workflows 2016-08-30 15:05:28 -04:00
AlanCoding
23791cb91e Merge branch 'devel' of https://github.com/ansible/ansible-tower into can_CRUD 2016-08-29 14:01:18 -04:00
Wayne Witzel III
efa8496407 Merge pull request #3301 from wwitzel3/release_3.0.2
remove last_name and first_name from admin_only fields
2016-08-23 15:17:35 -04:00
Wayne Witzel III
c963035178 Merge pull request #3302 from wwitzel3/fix-3153
prevent non-superusers from adding orphan users
2016-08-23 15:16:57 -04:00
Wayne Witzel III
2fb386b23c allow users to edit their first and last name 2016-08-23 09:55:00 -04:00
AlanCoding
eddc1a8ed2 implement two methods for can_edit field for testing 2016-08-22 14:43:04 -04:00
Matthew Jones
6cf567e4fd Revert "Prevent ignored task from being displayed as failing." 2016-08-22 13:34:52 -04:00
Aaron Tan
0991e213cc Merge pull request #3252 from jangsutsr/2955_update_system_job_start_access
Update system job start access
2016-08-22 12:35:48 -04:00
Matthew Jones
8893f8278a Merge branch 'release_3.0.2' into devel
* release_3.0.2: (126 commits)
  Disable permissions tab in Credential > Edit form if Credential is private (#3288)
  Tweaked the popover text for job and skip tags on JT add/edit
  Workaround a cascade setnull polymorphic issue
  flake8
  Fixed old test expectations
  Made it so the credential organization field can't be changed
  Skip some unit tests
  Fixed org auditor visibility of team credentials
  Fix sosreport
  fix credential kind options for list
  interpret any code below 300 as success
  bail when status code is over 300
  Make CloudForms inventory_script work
  Use no_log when handling passwords
  Prevent ignored task from being displayed as failing.
  making ec2 cred optional on group->edit
  making ec2 credential optional for ec2 inventory
  Revert "Fix to ensure org auditors can see team credentials"
  Fixed team credential list to work with corrected permissions
  Making the username and password fields optional
  ...
2016-08-18 22:52:55 -04:00
Wayne Witzel III
cef7f5a165 prevent non-superusers from adding orphan users 2016-08-18 09:55:20 -04:00
Akita Noek
30451f230b Fixed org auditor visibility of team credentials
And by fix, I mean prevent us from getting into the situation that was
causing the asymetric visiblity by brining us into alignment with the
original intention and spec for how credentials were supposed behave.

 #3081
2016-08-16 14:02:09 -04:00
Akita Noek
db87e3cb30 Merge branch 'release_3.0.2' into 3081 2016-08-16 13:52:57 -04:00
jangsutsr
0c854dde43 remove redundant permission checks in start views. 2016-08-15 12:02:35 -04:00
jangsutsr
d3968fd080 Enable user for starting system management jobs. 2016-08-15 11:34:17 -04:00
Aaron Tan
f90b244fe6 Prevent ignored task from being displayed as failing. 2016-08-11 17:34:35 -04:00
Akita Noek
f81d6afe83 Fixed team credential list to work with corrected permissions 2016-08-11 10:17:33 -04:00
Aaron Tan
bea36bd1dc Add notifications link to ad_hoc command details. 2016-08-08 17:17:45 -04:00
Aaron Tan
01588af5ac Merge pull request #3219 from jangsutsr/typo_fix
Fix a minor typo in job events model and restructure a bit to fix 500 error.
2016-08-08 14:29:48 -04:00
Aaron Tan
a2093e3e13 Fix a minor typo in job events model and restructure a bit to fix 500 error. 2016-08-08 13:41:59 -04:00
Chris Church
3bb14e2f72 Clear cache between tests or when license is updated. 2016-08-08 11:59:55 -04:00
Wayne Witzel III
f30292c7f1 Merge pull request #3192 from wwitzel3/test-refactoring
Update some tests and refactor some code.
2016-08-04 11:17:42 -04:00
Wayne Witzel III
c5b005fd35 refactor start_event_queryset into model 2016-08-03 15:37:40 -04:00
Chris Church
3850b96da2 Re-enable API settings URLs. 2016-08-03 14:56:09 -04:00
Alan Rominger
1352fe822d Merge pull request #3172 from AlanCoding/3118_role_read
Drop in visible_roles to RoleAccess can_read
2016-08-01 15:40:21 -04:00
Matthew Jones
3e1c0111f5 Merge branch 'api_release_3.0.1' into release_3.0.2
* api_release_3.0.1:
  add code to HostAccess can_add so the browsable API will work
  update unit tetsts
  use get_object_or_400 to fetch Role
  refactor to unit tests
  restrict User.admin_role membership changes through RoleUsersList
  fix test
  do not allow membership changes to User.admin_role
  RoleTeam and TeamRole sublist NotFound exception handling and test update
  add system job templates to the unified JT list
  Reorganize activity stream around org admin/auditors
  Allow instant cancel for new jobs
  orphan project protection in job delete access
  pass context into Job and JobList serializer classes
  pass context to unified job template subclasses
  Allow auditors to see same /api/v1/config information as admins
2016-08-01 13:23:37 -04:00
Wayne Witzel III
9baa9594c7 use get_object_or_400 to fetch Role 2016-07-29 11:29:49 -04:00
Wayne Witzel III
b127e74ae4 refactor to unit tests 2016-07-29 11:29:43 -04:00
Wayne Witzel III
52865eea6a restrict User.admin_role membership changes through RoleUsersList 2016-07-29 11:29:41 -04:00
Wayne Witzel III
06bb8871d7 do not allow membership changes to User.admin_role 2016-07-29 11:29:36 -04:00
AlanCoding
1fb173b2e5 RoleTeam and TeamRole sublist NotFound exception handling and test update 2016-07-28 16:01:42 -04:00