7407 Commits

Author SHA1 Message Date
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
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
Michael Abashian
e9d99592cf Added the ability to pass the listTitleBadge parameter to the list generator. Passing a false flag will hide the badge in the title. This is desired on the Activity Stream. 2016-02-03 11:10:22 -05:00
Alan Rominger
1e7d734b50 Merge pull request #760 from AlanCoding/parse_fix_ubuntu
Fix scan_services parsing error with Ubuntu14.04
2016-02-03 08:35:16 -05:00
Chris Church
b08a2d1d88 Update default error pages. 2016-02-02 23:00:07 -05:00
Chris Church
4f3dea92fe Remove dev dependency on django-devserver. 2016-02-02 22:55:58 -05:00
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
AlanCoding
44295c06b1 fix parsing error with Ubuntu14.04 2016-02-02 16:14:50 -05:00
Michael Abashian
6242df1a07 Merge pull request #766 from mabashian/activity-stream
Added activity stream route and view
2016-02-02 16:12:31 -05:00
Michael Abashian
f70cf7d2f6 Changed activitystream in the url to activity_stream to match up with the api 2016-02-02 16:01:52 -05:00
AlanCoding
dd927c97fa change to warning behavior 2016-02-02 14:38:15 -05:00
Matthew Jones
7ab839c17f Fix up another statsd formatting error 2016-02-02 14:26:17 -05:00
Alan Rominger
fb4cad9838 Merge pull request #756 from AlanCoding/624_fix2_exit_codes
Change case of partial failure to warning
2016-02-02 13:42:00 -05:00
James Laska
cced99f75d Resolve bug when building with /bin/sh on Ubuntu
Ubuntu uses /bin/sh by default.  This change properly compares strings in a
POSIX compliant manner.
2016-02-02 12:45:08 -05:00
Wayne Witzel III
cd13083ea2 Merge pull request #720 from wwitzel3/issue/616
Set GCE_ZONE source_regions
2016-02-02 10:21:37 -05:00
Matthew Jones
5d21ad5ae6 Fix up statsd work to support python 2.6
Format specifiers must include field specifier
2016-02-02 09:58:19 -05:00