Commit Graph

1483 Commits

Author SHA1 Message Date
Chris Meyers
44618d4956 flake8 fix 2016-03-03 11:45:40 -05:00
Chris Meyers
60484267e7 Merge pull request #1088 from chrismeyersfsu/mongoectomy_cleanup
postgres fact cleanup
2016-03-03 08:31:43 -05:00
Chris Meyers
b0d228579a add test case to verify delete logic 2016-03-02 12:57:52 -05:00
Chris Meyers
4fc7fea2b8 follow up and finish option request test 2016-03-01 17:28:29 -05:00
Chris Meyers
4b56ea3d07 postgres fact cleanup 2016-03-01 16:57:22 -05:00
Chris Meyers
88865a2203 flake8 fix 2016-03-01 16:57:00 -05:00
Chris Meyers
67d1aa6c86 migration with correct help_text 2016-03-01 10:39:51 -05:00
Chris Meyers
b5d8aa52c9 get accepts data param, use it 2016-03-01 10:08:08 -05:00
Chris Meyers
5340af2335 updated api tests to use new get fixture format 2016-03-01 09:48:58 -05:00
Chris Meyers
f6fa11e383 fix Fact migration 2016-03-01 09:16:48 -05:00
Chris Meyers
356b9c99b3 Merge branch 'mongoectomy_implementation' into devel 2016-03-01 08:22:40 -05:00
Matthew Jones
99ec07b8a5 Merge branch 'notifications_work' into devel
* notifications_work: (23 commits)
  Updates to notification unit tests after @wwitzel3's feedback
  Fix some notifications issues and write some tests
  Add notification system documentation
  Clean up flake8 related issues
  Fixing up some unicode issues
  Implement tower ui view url on models
  Sanity check and force proper types in admin check
  Proper type for in check
  Adding migration and base notification type
  Add a periodic administrative notification
  Refactor message generator
  Support notification password field encryption
  Notification configuration type checking
  Refactor NotificationTemplate to Notifier
  Implement irc notification backend
  Add webhook notification backend
  Pagerduty and Hipchat backends plus some cleanup
  Notification serializers, views, and tasks
  Implement notification serializer and validations
  Notification endpoints and url expositions
  ...
2016-02-29 16:50:33 -05:00
Matthew Jones
b892ee5f96 Updates to notification unit tests after @wwitzel3's feedback 2016-02-29 13:25:49 -05:00
Matthew Jones
0ee12901fe Fix some notifications issues and write some tests
* Fixes some notifier merging issues
* Fixes some more unicode problems
* Implements unit tests
2016-02-29 12:30:00 -05:00
Chris Church
3228b41eea Merge pull request #1020 from cchurch/ad-hoc-check-mode-fixes
Fix error with ad hoc command events when running in check mode.
2016-02-25 16:45:25 -05:00
Chris Church
a2595dcf12 API fixes for 500 errors. 2016-02-24 18:38:04 -05:00
Chris Meyers
7ffe46fc74 add postgres Fact model, update views, tests
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00
Chris Church
2f763d0ff5 Fix error with ad hoc command events when running in check mode. 2016-02-23 18:26:38 -05:00
Matthew Jones
41d5393af0 Clean up flake8 related issues 2016-02-23 15:30:07 -05:00
Matthew Jones
4b1493f456 Fixing up some unicode issues 2016-02-23 15:26:29 -05:00
Matthew Jones
75ef0dd395 Implement tower ui view url on models 2016-02-23 14:19:42 -05:00
Chris Meyers
cad54a43a1 Merge pull request #1001 from chrismeyersfsu/fix-options_choices
bring back meta choice options lost in upgrade
2016-02-23 13:55:53 -05:00
Matthew Jones
b88892be49 Sanity check and force proper types in admin check 2016-02-23 12:33:30 -05:00
Chris Church
6f988452c3 Merge pull request #977 from cchurch/api-raw-data-form-fixes
API Raw Data Form & Validation Fixes
2016-02-23 12:23:14 -05:00
Matthew Jones
050ed8a200 Proper type for in check
Still an __in for when we need to add another trigger obj
2016-02-23 12:18:31 -05:00
Chris Church
9f44888c00 Update existing settings migration with minor field change. 2016-02-23 12:15:39 -05:00
Matthew Jones
39c942e98b Adding migration and base notification type 2016-02-23 11:20:08 -05:00
Matthew Jones
4928badd3f Add a periodic administrative notification 2016-02-23 10:59:08 -05:00
Matthew Jones
ab3669efa9 Refactor message generator
* Job object can now control the output and generate K:V output for
  notification types that can support it
* Notifications store the body as json/dict now to encode more
  information
* Notification Type can further compose the message based on what is
  sensible for the notification type
* This will also allow customizing the message template in the future
* All notification types use sane defaults for the level of detail now
2016-02-22 17:09:36 -05:00
Chris Meyers
d70615efbd bring back meta choice options lost in upgrade
* status and launch_type OPTIONS choices were lost in the django + drf
upgrade. This brings them back.
2016-02-22 12:58:35 -05:00
Matthew Jones
eb3d663d18 Support notification password field encryption
Modify encrypt_field and decrypt_field to support sub-fields under a
dictionary object.  It still uses the parent key when encrypting.
2016-02-21 23:11:17 -05:00
Akita Noek
0051464525 Added put,head,options,delete, & patch test fixtures for api related tests 2016-02-18 11:23:31 -05:00
Akita Noek
6aeaec2b76 Switch to resolve in api test fixtures to automatically resolve View's and their arguments
Also changed the signature of the post/get methods to better align with
libraries like `requests`
2016-02-18 11:19:27 -05:00
Matthew Jones
dde70dafec Refactor NotificationTemplate to Notifier 2016-02-17 15:18:18 +00:00
Chris Church
d8ae1115f0 Fix extra_vars/survey handling since request.data is now an OrderedDict. 2016-02-17 00:04:28 -05:00
Chris Meyers
56b0da30f1 adds fact model 2016-02-15 15:39:22 -05:00
Chris Church
dc298daeb4 Update settings serializer to allow empty/blank values. 2016-02-11 18:11:41 -05:00
Chris Church
1f290ed940 Add custom serializer char/bool fields to accept null and coerce to appropriate type. Update validation for unique constraints so that error messages remain the same as before. Update key used in error response for non-field errors. Should address #791, #794, #809, #812 and #816. 2016-02-11 18:11:41 -05:00
Matthew Jones
9d6739045a Implement irc notification backend 2016-02-11 15:34:27 -05:00
Matthew Jones
7abcb6e306 Add webhook notification backend 2016-02-10 17:03:57 -05:00
Matthew Jones
34ebe0a848 Pagerduty and Hipchat backends plus some cleanup 2016-02-10 15:17:11 -05:00
Matthew Jones
8db2f60405 Notification serializers, views, and tasks
* Implement concrete Notification model for notification runs
* Implement NotificationTemplate and Notification serializers and views
* Implement ancillary views
* Implement NotificationTemplate trigger m2m fields on all job templates
  via a fields mixin
* Link NotificationTemplates with an org
* Link notifications with the activity stream
* Implement Notification celery tasks
* Extend Backend field parameters to identify sender and receiver as
  parameters needed by the message and not the backend itself
* Updates to backends to better fit the django email backend model as it
  relates to Messages
* Implement success job chain task + notifications
* Implement notifications in error job chain task
2016-02-09 23:12:55 -05:00
Wayne Witzel III
702ce85074 change mocking behavior to be closer to the source 2016-02-06 08:57:44 -05:00
Wayne Witzel III
0ab11e53dd refactoring activity_stream functional tests 2016-02-05 21:38:48 -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
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
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
d4232eaca0 Merge pull request #534 from cchurch/django18
Django 1.8 and DRF 3.3 Support
2016-02-04 14:28:44 -05:00
Wayne Witzel III
b82bd9404f fixing inventory bug for GCE introduced fixing #616 2016-02-03 13:25:17 -05:00