From 861766e5130376b174e7118c8a1f4fa22f2e74f1 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 29 Oct 2015 14:34:53 -0700 Subject: [PATCH] Adding ansible & tower versions to pendo object Adding these keys to the account_id object --- .../login/authenticationServices/authentication.service.js | 1 + .../src/login/authenticationServices/pendo.service.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/login/authenticationServices/authentication.service.js b/awx/ui/client/src/login/authenticationServices/authentication.service.js index 511cb4ab83..8ffced6d09 100644 --- a/awx/ui/client/src/login/authenticationServices/authentication.service.js +++ b/awx/ui/client/src/login/authenticationServices/authentication.service.js @@ -116,6 +116,7 @@ export default var license = data.license_info; license.analytics_status = data.analytics_status; license.version = data.version; + license.ansible_version = data.ansible_version; license.tested = false; Store('license', license); $rootScope.features = Store('license').features; diff --git a/awx/ui/client/src/login/authenticationServices/pendo.service.js b/awx/ui/client/src/login/authenticationServices/pendo.service.js index 90fbef778a..d00baf2c14 100644 --- a/awx/ui/client/src/login/authenticationServices/pendo.service.js +++ b/awx/ui/client/src/login/authenticationServices/pendo.service.js @@ -12,7 +12,8 @@ export default Store, $log) { return { setPendoOptions: function (config) { - var options = { + var tower_version = config.version.split('-')[0], + options = { visitor: { id: null, role: null, @@ -23,7 +24,9 @@ export default planLevel: config.license_type, planPrice: config.instance_count, creationDate: config.license_date, - trial: config.trial + trial: config.trial, + tower_version: tower_version, + ansible_version: config.ansible_version } }; if(config.analytics_status === 'detailed'){