You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/12 02:34:28 UTC

[GitHub] XD-DENG commented on issue #4376: [AIRFLOW-XXX] Fix/complete example code in plugins.rst

XD-DENG commented on issue #4376: [AIRFLOW-XXX] Fix/complete example code in plugins.rst
URL: https://github.com/apache/airflow/pull/4376#issuecomment-453712511
 
 
   **Notes of the local tests I have done (commits will be updated later):**
   - For the plugin view for RBAC, `default_view` in the class MUST be specified, and it should be the name of the method user creates inside the class. Otherwise there will be error when we try to open the UI (default `default_view` is `list`):
   
   ```
   werkzeug.routing.BuildError: Could not build url for endpoint 'thisisatest.list'. Did you mean 'thisisatest.test' instead?
   ```
   
   - The URL to be exposed is decided by the plugin class name. Let's say the plugin class (for RBAC) is:
   
   ```python
   class TestAppBuilderBaseView(AppBuilderBaseView):
       ......
   ```
   the plugin view will be exposed with URL https://<airflow_host>/testappbuilderbaseview`

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


With regards,
Apache Git Services