Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configures survey messages and telemetry #6793

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/init/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Release History
===============

0.2.0
++++++
* Adds support for core.survey_message
* Adds support for core.collect_telemetry
* Adds support for auto-upgrade.enable=false for automation

0.1.0
++++++
* Initial release.
30 changes: 30 additions & 0 deletions src/init/azext_init/_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@
"brief": "Display a progress bar for long running commands",
"configuration": "core.disable_progress_bar",
"value": "false",
},
{
"brief": "Enable the survey prompts",
"configuration": "core.survey_message",
"value": "true",
},
{
"brief": "Collect telemetry",
"configuration": "core.collect_telemetry",
"value": "true",
},
{
"brief": "Enable auto-upgrade",
"configuration": "auto-upgrade.enable",
"value": "true",
}
]

Expand Down Expand Up @@ -56,5 +71,20 @@
"brief": "Display progress bar for long running commands",
"configuration": "core.disable_progress_bar",
"value": "true",
},
{
"brief": "Disable the survey prompts",
"configuration": "core.survey_message",
"value": "false",
},
{
"brief": "Do not collect telemetry",
"configuration": "core.collect_telemetry",
"value": "false",
},
{
"brief": "Disable auto-upgrade",
"configuration": "auto-upgrade.enable",
"value": "false",
}
]
54 changes: 54 additions & 0 deletions src/init/azext_init/_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,59 @@
"desc": "Disable the progress bar during long running commands"
}
]
},
{
"configuration": "core.survey_message",
"brief": "Survey Message",
"description": "This option is used to enable/disable the survey message",
"options": [
{
"option": "On",
"value": "true",
"desc": "The survey link will be shown",
"tag": "default"
},
{
"option": "Off",
"value": "false",
"desc": "Survey links will never be shown"
}
]
},
{
"configuration": "core.collect_telemetry",
"brief": "Collect Telemetry",
"description": "This option is used to enable/disable telemetry",
"options": [
{
"option": "On",
"value": "true",
"desc": "Telemetry will be colected",
"tag": "default"
},
{
"option": "Off",
"value": "false",
"desc": "Telemetry will not be collected"
}
]
},
{
"configuration": "auto-upgrade.enable",
"brief": "Automaticaly upgrade",
"description": "This option is used to enable/disable auto-upgrade",
"options": [
{
"option": "enable",
"value": "true",
"desc": "Auto-upgrade enabled",
"tag": "default"
},
{
"option": "disable",
"value": "false",
"desc": "Auto-upgrade disabled"
}
]
}
]
2 changes: 1 addition & 1 deletion src/init/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.
VERSION = '0.1.0'
VERSION = '0.2.0'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down