potiuk commented on issue #22392:
URL: https://github.com/apache/airflow/issues/22392#issuecomment-1084291104


   I think we shoudl simply check - whenever connection is added/updated 
whether the type is "Valid" and print a warning in the CLI. As @eladkal 
suggested, it should set the type of the connection to `generic` type if the 
connection type is not valid.
   
   And Valid means two things:
   
   * it is on the list of built-in connection tupes
   * you can query the Providers Manager to see which connection types are 
present via providers. It has "hooks" property that has list of HookInfo 
objects which contains connection_type
   
   The warning likely should print the list of valid connection types.
   
   This is important to use ProvidersManager for that, because it automatically 
discovers which providers are installed, so it will prevent (or rather warn) if 
you try to create a connection for a provider that you do not have installed.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to