mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
Merge pull request #440 from matburt/pendo_apiside
API Side Pendo Tracking Work
This commit is contained in:
@@ -186,12 +186,15 @@ class ApiV1ConfigView(APIView):
|
|||||||
license_reader = TaskSerializer()
|
license_reader = TaskSerializer()
|
||||||
license_data = license_reader.from_file(show_key=request.user.is_superuser)
|
license_data = license_reader.from_file(show_key=request.user.is_superuser)
|
||||||
|
|
||||||
|
pendo_state = settings.PENDO_TRACKING_STATE if settings.PENDO_TRACKING_STATE in ('off', 'anonymous', 'detailed') else 'off'
|
||||||
|
|
||||||
data = dict(
|
data = dict(
|
||||||
time_zone=settings.TIME_ZONE,
|
time_zone=settings.TIME_ZONE,
|
||||||
license_info=license_data,
|
license_info=license_data,
|
||||||
version=get_awx_version(),
|
version=get_awx_version(),
|
||||||
ansible_version=get_ansible_version(),
|
ansible_version=get_ansible_version(),
|
||||||
eula=render_to_string("eula.md"),
|
eula=render_to_string("eula.md"),
|
||||||
|
analytics_status=pendo_state
|
||||||
)
|
)
|
||||||
|
|
||||||
# If LDAP is enabled, user_ldap_fields will return a list of field
|
# If LDAP is enabled, user_ldap_fields will return a list of field
|
||||||
|
|||||||
@@ -356,6 +356,9 @@ AWX_JOB_TEMPLATE_HISTORY = 10
|
|||||||
# The directory in which proot will create new temporary directories for its root
|
# The directory in which proot will create new temporary directories for its root
|
||||||
AWX_PROOT_BASE_PATH = "/tmp"
|
AWX_PROOT_BASE_PATH = "/tmp"
|
||||||
|
|
||||||
|
# Enable Pendo on the UI, possible values are 'off', 'anonymous', and 'detailed'
|
||||||
|
PENDO_TRACKING_STATE = "off"
|
||||||
|
|
||||||
# Default list of modules allowed for ad hoc commands.
|
# Default list of modules allowed for ad hoc commands.
|
||||||
AD_HOC_COMMANDS = [
|
AD_HOC_COMMANDS = [
|
||||||
'command',
|
'command',
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ CALLBACK_QUEUE_PORT = "ipc:///tmp/callback_receiver_dev.ipc"
|
|||||||
# Enable PROOT for tower-qa integration tests
|
# Enable PROOT for tower-qa integration tests
|
||||||
AWX_PROOT_ENABLED = True
|
AWX_PROOT_ENABLED = True
|
||||||
|
|
||||||
|
PENDO_TRACKING_STATE = "off"
|
||||||
|
|
||||||
# Use Django-Jenkins if installed. Only run tests for awx.main app.
|
# Use Django-Jenkins if installed. Only run tests for awx.main app.
|
||||||
try:
|
try:
|
||||||
import django_jenkins
|
import django_jenkins
|
||||||
|
|||||||
Reference in New Issue
Block a user