mik-laj commented on a change in pull request #12108:
URL: https://github.com/apache/airflow/pull/12108#discussion_r518636232



##########
File path: docs/plugins.rst
##########
@@ -24,8 +24,7 @@ Airflow has a simple plugin manager built-in that can 
integrate external
 features to its core by simply dropping files in your
 ``$AIRFLOW_HOME/plugins`` folder.
 
-The python modules in the ``plugins`` folder get imported,

Review comment:
       > .. versionchanged:: 2.0
   > 
   >    Importing operators, sensors, hooks added in plugins via 
`airflow.{operators,sensors,hooks}.<plugin_name>` is no longer supported, and 
these extensions should just be imported as regular python modules.
   > 
   >    ```
   >    from airflow.hooks.my_plugin import MyHook
   >    ```
   > 
   >    You should instead import it as:
   > 
   >    ```
   >    from my_plugin import MyHook
   >    ```
   > 
   >    It is still possible (but not required) to "register" hooks in plugins. 
This is to allow future support    for dynamically populating the Connections 
form in the UI.
   > 
   >    For more information, see: :doc:`/modules_management.html` and 
:doc:`/howto/custom-operator.html`
   




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


Reply via email to