Hello community,

here is the log from the commit of package azure-cli-feedback for 
openSUSE:Factory checked in at 2018-05-13 16:02:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-feedback (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-feedback.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-feedback"

Sun May 13 16:02:25 2018 rev:3 rq:600051 version:2.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-feedback/azure-cli-feedback.changes    
2018-02-14 09:30:57.044939436 +0100
+++ 
/work/SRC/openSUSE:Factory/.azure-cli-feedback.new/azure-cli-feedback.changes   
    2018-05-13 16:02:27.252047015 +0200
@@ -1,0 +2,7 @@
+Wed Apr 18 13:38:36 UTC 2018 - adrian.glaub...@suse.com
+
+- New upstream release
+  + Version 2.1.1
+- Move LICENSE.txt from %doc to %license section
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-feedback-2.0.8.tar.gz

New:
----
  azure-cli-feedback-2.1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ azure-cli-feedback.spec ++++++
--- /var/tmp/diff_new_pack.4I47Zm/_old  2018-05-13 16:02:27.972020747 +0200
+++ /var/tmp/diff_new_pack.4I47Zm/_new  2018-05-13 16:02:27.976020601 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           azure-cli-feedback
-Version:        2.0.8
+Version:        2.1.1
 Release:        0
 Summary:        Microsoft Azure CLI 'feedback' Command Module
 License:        MIT
@@ -64,7 +64,8 @@
 
 %files
 %defattr(-,root,root,-)
-%doc HISTORY.rst LICENSE.txt README.rst
+%doc HISTORY.rst README.rst
+%license LICENSE.txt
 %{python3_sitelib}/azure/cli/command_modules/feedback
 %{python3_sitelib}/azure_cli_feedback-*.egg-info
 

++++++ azure-cli-feedback-2.0.8.tar.gz -> azure-cli-feedback-2.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-feedback-2.0.8/HISTORY.rst 
new/azure-cli-feedback-2.1.1/HISTORY.rst
--- old/azure-cli-feedback-2.0.8/HISTORY.rst    2018-01-12 18:25:22.000000000 
+0100
+++ new/azure-cli-feedback-2.1.1/HISTORY.rst    2018-04-06 19:33:13.000000000 
+0200
@@ -3,6 +3,16 @@
 Release History
 ===============
 
+2.1.1
++++++
+
+* `sdist` is now compatible with wheel 0.31.0
+
+2.1.0
++++++
+* Switch AI upstream feed
+* Introduce extension management property to telemetry data.
+
 2.0.8
 +++++
 * Minor fixes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-feedback-2.0.8/PKG-INFO 
new/azure-cli-feedback-2.1.1/PKG-INFO
--- old/azure-cli-feedback-2.0.8/PKG-INFO       2018-01-12 18:25:33.000000000 
+0100
+++ new/azure-cli-feedback-2.1.1/PKG-INFO       2018-04-06 19:33:35.000000000 
+0200
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: azure-cli-feedback
-Version: 2.0.8
+Version: 2.1.1
 Summary: Microsoft Azure Command-Line Tools Feedback Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
 Author-email: azpy...@microsoft.com
 License: MIT
+Description-Content-Type: UNKNOWN
 Description: Microsoft Azure CLI 'feedback' Command Module
         =============================================
         
@@ -20,6 +21,16 @@
         Release History
         ===============
         
+        2.1.1
+        +++++
+        
+        * `sdist` is now compatible with wheel 0.31.0
+        
+        2.1.0
+        +++++
+        * Switch AI upstream feed
+        * Introduce extension management property to telemetry data.
+        
         2.0.8
         +++++
         * Minor fixes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-feedback-2.0.8/azure/cli/command_modules/feedback/__init__.py 
new/azure-cli-feedback-2.1.1/azure/cli/command_modules/feedback/__init__.py
--- old/azure-cli-feedback-2.0.8/azure/cli/command_modules/feedback/__init__.py 
2018-01-12 18:25:22.000000000 +0100
+++ new/azure-cli-feedback-2.1.1/azure/cli/command_modules/feedback/__init__.py 
2018-04-06 19:33:13.000000000 +0200
@@ -15,7 +15,6 @@
         super(FeedbackCommandsLoader, self).__init__(cli_ctx=cli_ctx)
 
     def load_command_table(self, args):
-
         custom_feedback = 
CliCommandType(operations_tmpl='azure.cli.command_modules.feedback.custom#{}')
 
         with self.command_group('', custom_feedback) as g:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-feedback-2.0.8/azure/cli/command_modules/feedback/custom.py 
new/azure-cli-feedback-2.1.1/azure/cli/command_modules/feedback/custom.py
--- old/azure-cli-feedback-2.0.8/azure/cli/command_modules/feedback/custom.py   
2018-01-12 18:25:22.000000000 +0100
+++ new/azure-cli-feedback-2.1.1/azure/cli/command_modules/feedback/custom.py   
2018-04-06 19:33:13.000000000 +0200
@@ -10,40 +10,30 @@
 from knack.prompting import prompt, NoTTYException
 from knack.util import CLIError
 
-from azure.cli.core import __version__ as core_version
 from azure.cli.core.util import COMPONENT_PREFIX, 
get_installed_cli_distributions
+from azure.cli.core.telemetry import set_feedback
 
 logger = get_logger(__name__)
 
+MSG_RATE = '\nHow likely is it you would recommend our Azure CLI to a friend 
or colleague? [0 to 10]: '
+MSG_INTR = 'We appreciate your feedback! This survey is only two questions and 
should take less than a minute.'
+MSG_BAD = '\nWhat changes would we have to make for you to give us a higher 
rating? '
+MSG_GOOD = '\nWhat do we do really well? '
+MSG_EMIL = '\nIf you would like to join our insiders program and receive tips, 
tricks, and early access to new ' \
+           'features, let us know by leaving your email address (leave blank 
to skip): '
+MSG_THNK = '\nThanks for your feedback!'
 
-MESSAGES = {
-    'intro': 'We appreciate your feedback! This survey is only two questions 
and should take less '
-             'than a minute.',
-    'prompt_how_likely': '\nHow likely is it you would recommend our Azure CLI 
to a friend or '
-                         'colleague? [0 to 10]: ',
-    'prompt_what_changes': '\nWhat changes would we have to make for you to 
give us a higher '
-                           'rating? ',
-    'prompt_do_well': '\nWhat do we do really well? ',
-    'prompt_email_addr': '\nIf you would like to join our insiders program and 
receive tips, '
-                         'tricks, and early access to new features, let us 
know by leaving your '
-                         'email address (leave blank to skip): ',
-    'thanks': '\nThanks for your feedback!'
-}
 
-INSTRUMENTATION_KEY = '02b91c82-6729-4241-befc-e6d02ca4fbba'
-EVENT_NAME = 'FeedbackEvent'
-
-
-# pylint: disable=inconsistent-return-statements
 def _prompt_net_promoter_score():
-    while True:
+    score = -1
+    help_string = 'Please rate between 0 and 10'
+    while score < 0 or score > 10:
         try:
-            score = int(prompt(MESSAGES['prompt_how_likely']))
-            if 0 <= score <= 10:
-                return score
-            raise ValueError
+            score = int(prompt(MSG_RATE, help_string=help_string))
         except ValueError:
-            logger.warning('Valid values are %s', list(range(11)))
+            logger.warning(help_string)
+
+    return score
 
 
 def _get_version_info():
@@ -57,35 +47,17 @@
     return str(component_version_info), sys.version
 
 
-def _send_feedback(score, response_what_changes, response_do_well, 
email_address):
-    from applicationinsights import TelemetryClient
-    tc = TelemetryClient(INSTRUMENTATION_KEY)
-    tc.context.application.ver = core_version
-    version_components, version_python = _get_version_info()
-    tc.track_event(
-        EVENT_NAME,
-        {'response_what_changes': response_what_changes,
-         'response_do_well': response_do_well,
-         'response_email_address': email_address,
-         'version_components': version_components,
-         'version_python': version_python},
-        {'response_net_promoter_score': score})
-    tc.flush()
-
-
 def handle_feedback():
     try:
-        print(MESSAGES['intro'])
+        print(MSG_INTR)
         score = _prompt_net_promoter_score()
-        response_do_well = None
-        response_what_changes = None
         if score == 10:
-            response_do_well = prompt(MESSAGES['prompt_do_well'])
+            suggestion = prompt(MSG_GOOD)
         else:
-            response_what_changes = prompt(MESSAGES['prompt_what_changes'])
-        email_address = prompt(MESSAGES['prompt_email_addr'])
-        _send_feedback(score, response_what_changes, response_do_well, 
email_address)
-        print(MESSAGES['thanks'])
+            suggestion = prompt(MSG_BAD)
+        email_address = prompt(MSG_EMIL)
+        set_feedback('[{}]{}[{}]'.format(score, suggestion, email_address))
+        print(MSG_THNK)
     except NoTTYException:
         raise CLIError('This command is interactive and no tty available.')
     except (EOFError, KeyboardInterrupt):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-feedback-2.0.8/azure_cli_feedback.egg-info/PKG-INFO 
new/azure-cli-feedback-2.1.1/azure_cli_feedback.egg-info/PKG-INFO
--- old/azure-cli-feedback-2.0.8/azure_cli_feedback.egg-info/PKG-INFO   
2018-01-12 18:25:32.000000000 +0100
+++ new/azure-cli-feedback-2.1.1/azure_cli_feedback.egg-info/PKG-INFO   
2018-04-06 19:33:35.000000000 +0200
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: azure-cli-feedback
-Version: 2.0.8
+Version: 2.1.1
 Summary: Microsoft Azure Command-Line Tools Feedback Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
 Author-email: azpy...@microsoft.com
 License: MIT
+Description-Content-Type: UNKNOWN
 Description: Microsoft Azure CLI 'feedback' Command Module
         =============================================
         
@@ -20,6 +21,16 @@
         Release History
         ===============
         
+        2.1.1
+        +++++
+        
+        * `sdist` is now compatible with wheel 0.31.0
+        
+        2.1.0
+        +++++
+        * Switch AI upstream feed
+        * Introduce extension management property to telemetry data.
+        
         2.0.8
         +++++
         * Minor fixes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-feedback-2.0.8/setup.py 
new/azure-cli-feedback-2.1.1/setup.py
--- old/azure-cli-feedback-2.0.8/setup.py       2018-01-12 18:25:22.000000000 
+0100
+++ new/azure-cli-feedback-2.1.1/setup.py       2018-04-06 19:33:13.000000000 
+0200
@@ -15,7 +15,7 @@
     cmdclass = {}
 
 
-VERSION = "2.0.8"
+VERSION = "2.1.1"
 CLASSIFIERS = [
     'Development Status :: 5 - Production/Stable',
     'Intended Audience :: Developers',


Reply via email to