From 537bcedc5a7476fccbc60bb28c23df5d7e99d171 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Thu, 17 Oct 2013 10:43:37 -0400 Subject: [PATCH] AC-548 AC-560 Added new fields to summary fields for inventory/group. --- awx/main/serializers.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/awx/main/serializers.py b/awx/main/serializers.py index 6bce730752..6c320875d8 100644 --- a/awx/main/serializers.py +++ b/awx/main/serializers.py @@ -43,12 +43,20 @@ SUMMARIZABLE_FK_FIELDS = { 'user': ('username', 'first_name', 'last_name'), 'team': DEFAULT_SUMMARY_FIELDS, 'inventory': DEFAULT_SUMMARY_FIELDS + ('has_active_failures', + 'total_hosts', 'hosts_with_active_failures', - 'has_inventory_sources'), + 'total_groups', + 'groups_with_active_failures', + 'has_inventory_sources', + 'total_inventory_sources', + 'inventory_sources_with_failures'), 'host': DEFAULT_SUMMARY_FIELDS + ('has_active_failures', 'has_inventory_sources'), 'group': DEFAULT_SUMMARY_FIELDS + ('has_active_failures', + 'total_hosts', 'hosts_with_active_failures', + 'total_groups', + 'groups_with_active_failures', 'has_inventory_sources'), 'project': DEFAULT_SUMMARY_FIELDS + ('status',), 'credential': DEFAULT_SUMMARY_FIELDS,