Commit Graph

139 Commits

Author SHA1 Message Date
Matthew Jones
6e6a709165 Fixing up some pep8 issues 2015-02-03 13:46:58 -05:00
Matthew Jones
0eaf2dc00c Protect the system from when one attempts to start a job without an inventory 2015-01-08 14:55:58 -05:00
Matthew Jones
4e1b9760c9 Put the job event websocket emitter back in as a database signal from
the JobEvent model.  Was erroneously removed during the 1.4.11 merge
2014-05-16 12:30:38 -04:00
Matthew Jones
d27d8845ea Fix merge conflict from 1.4.11 release branch related to signal normalization 2014-05-14 22:21:26 -04:00
Matthew Jones
f49805db0b Make sure we recognize when a model changes state from active to inactive and back
Conflicts:
	awx/main/signals.py
2014-05-14 16:04:32 -04:00
Matthew Jones
93c2a5e31c Improve update computed field signaling so that we only emit signals when a host is added or deleted, or if it is associated or disassociated, or if a job runs
Conflicts:
	awx/main/signals.py
2014-05-14 14:19:31 -04:00
Matthew Jones
0a18816cf5 Include job event detail emitter 2014-04-30 14:48:24 -04:00
Matthew Jones
ac94c11fd7 Adjust inventory computed field calculations to happen in the celery context 2014-04-30 14:38:08 -04:00
Matthew Jones
74463f8945 Make sure we include the instance id when emitting the event 2014-04-28 14:29:00 -04:00
Matthew Jones
5904d2e1ee Switch back to serializer for event emissions and convert datetimes prior to json serialization 2014-04-22 15:08:43 -04:00
Matthew Jones
be3996b9be Add the job event id to the socket emitter payload 2014-04-21 23:35:44 -04:00
Matthew Jones
2177d6feab Fix up event emission to send the right thigns 2014-04-18 14:42:23 -04:00
Matthew Jones
007df8c5a6 Fix up some minor issues so we can display job events 2014-04-18 13:58:06 -04:00
Matthew Jones
210b1dce2e Be more specific on the model 2014-04-18 13:51:36 -04:00
Matthew Jones
003104cbdb Add a post-save hook for emitting job event notifications over the websocket channel 2014-04-18 13:38:43 -04:00
Matthew Jones
064dd6dc08 Fix up unit tests where we no longer allow posting a schedule to an
inventory source that is not a cloud source
2014-04-07 14:18:59 -04:00
Chris Church
118ddf97f6 Get created_by and modified_by updating automatically. 2014-04-01 21:27:32 -04:00
Chris Church
ae4743724a AC-982 Added configuration options to disable activity stream logging entirely, or disable only when running inventory import. 2014-02-06 15:25:58 -05:00
Chris Church
a115988a4b AC-982 Fix typo (missing @) from earlier commit. 2014-02-04 23:56:29 -05:00
Chris Church
ce56f1c17d AC-982 Fixes for inventory import speed when deleting groups. 2014-02-04 22:55:53 -05:00
Chris Church
27fb54b2a7 AC-984 Prevent signal handlers from being run unnecessarily when deleting inventory, remove unnecessary extra queries, use update_fields when possible. 2014-01-27 18:37:51 -05:00
Chris Church
d17f58743e AC-982 Work on eliminating unnecessary queries from inventory import and activity stream logging. 2014-01-27 15:27:27 -05:00
Matthew Jones
2712643c62 Implement AC-667... user serializer to determine read-only fields and use those to decide what to populate in activity stream create instances AND when to create active stream update instances 2014-01-23 15:44:36 -05:00
Chris Church
2b7af0a2ec Happy new year!!! 2014-01-02 11:51:43 -05:00
Chris Church
509b476e09 AC-847 Fix for inventory import performance. 2013-12-18 16:35:32 -05:00
Matthew Jones
61059fa1a4 Work to complete AC-673, mass refactoring of the activity stream. Some work towards AC-664/662 but will complete on those issues. This also fixes issue AC-743 (Adding help text for OPTIONS requests) and AC-675 (updates where active changes to False will now be treated as deletes) 2013-12-10 16:08:35 -05:00
Chris Church
061f293b6c AC-620 Better use of update_fields on job-related models, restrict post_save signal on jobs to only operate on inactive jobs. 2013-11-20 22:12:33 -05:00
Matthew Jones
8448c5b4d5 Add a field to the activity stream model that more closely identifies the api object type for aid in api querying 2013-11-14 23:24:00 -05:00
Matthew Jones
1a27c75de4 Make sure we show relative object information in the api 2013-11-12 17:01:16 -05:00
Matthew Jones
f1de300fd7 Fix up some bugs with signal handling related to association/disassociation 2013-11-12 17:01:15 -05:00
Matthew Jones
710b01c333 Fix an issue with the Activity Stream where we weren't performing the right type conversion to track object types 2013-11-12 17:01:15 -05:00
Matthew Jones
3a02c17d2a Initial backend implementation for AC-25, activity stream/audit love 2013-11-12 17:01:15 -05:00
Chris Church
04824c8477 AC-569 Fix signal handler for updating computed fields on inventory models. 2013-10-23 22:22:59 -04:00
Chris Church
1ffb40458c AC-505 Work in progress on cloud inventory sync. 2013-10-07 23:21:44 -04:00
Chris Church
dfc687dfae Implements AC-363. Authentication tokens now expire after a configurable timeout. 2013-09-06 00:36:45 -04:00
Chris Church
45b7c44c09 Fixes AC-361. Host last_job is updated whenever job is marked inactive or deleted. 2013-08-29 17:15:31 -04:00
Chris Church
fce1a04a76 Fix for AC-284. Delete groups when they are disassociated and have no more parents. Remove all group and host associations from a group when it is marked inactive. 2013-07-27 23:00:07 -04:00
Chris Church
764d2ff94d Implemented AC-22, hosts and child groups are migrated to a group's parent when the group is deleted or marked inactive. 2013-07-27 01:06:09 -04:00
Chris Church
2c166e501e Implemented AC-166, added signal handlers to update has_active_failures flag whenever host/group/job are changed/deleted and whenever group-host and group-group relationships change. 2013-07-26 23:49:49 -04:00