potiuk commented on a change in pull request #5527: [AIRFLOW-4892] Fix 
connection creation via UIs
URL: https://github.com/apache/airflow/pull/5527#discussion_r300323015
 
 

 ##########
 File path: airflow/www/views.py
 ##########
 @@ -3041,7 +3044,13 @@ class ConnectionModelView(wwwutils.SuperUserMixin, 
AirflowModelView):
         'extra__google_cloud_platform__key_path': StringField('Keyfile Path'),
         'extra__google_cloud_platform__keyfile_dict': PasswordField('Keyfile 
JSON'),
         'extra__google_cloud_platform__scope': StringField('Scopes (comma 
separated)'),
-        'extra__google_cloud_platform__num_retries': IntegerField('Number of 
Retries'),
+        'extra__google_cloud_platform__num_retries': IntegerField(
+            'Number of Retries',
+            validators=[
+                validators.Optional(strip_whitespace=True),
+                validators.NumberRange(min=0),
 
 Review comment:
   👍  -> checked that numRetries  can be 0 as well

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to