This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new d65cf77 Add description to hint if conn_type is missing (#13778)
d65cf77 is described below
commit d65cf7755235c06bdbf63edfab31ddd348565bd9
Author: Brent Bovenzi <[email protected]>
AuthorDate: Tue Jan 19 17:38:29 2021 -0600
Add description to hint if conn_type is missing (#13778)
- add plaintext description to add/edit conn_type to make sure people
remember to install necessary provider packages
---
airflow/www/views.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 1d9a8ba..c488f34 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2810,6 +2810,10 @@ def
lazy_add_provider_discovered_options_to_connection_form():
choices=sorted(_get_connection_types(), key=itemgetter(1)),
widget=Select2Widget(),
validators=[InputRequired()],
+ description="""
+ Conn Type missing?
+ Make sure you've installed the corresponding Airflow Provider
Package.
+ """,
)
for key, value in ProvidersManager().connection_form_widgets.items():
setattr(ConnectionForm, key, value.field)