Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
gseva 7c6ce873f2 [AIRFLOW-XXX] Fixed note in plugins.rst (#4649)
Changing it to rst notation, so it stands out in read the docs.
2019-02-05 10:30:04 -08:00
Kamil Breguła 1ab659f4cb [AIRFLOW-XXX] Remove almost all warnings from building docs (#4588) 2019-01-27 11:32:10 +00:00
Kamil Breguła 993779f93d [AIRFLOW-XXX] Reduction of the number of warnings in the documentation (#4585) 2019-01-25 09:59:40 +00:00
Xiaodong e54775045d [AIRFLOW-XXX] Fix/complete example code in plugins.rst (#4376)
[ci skip]

Based on
- https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/baseviews.py#L76
- tests/plugins/test_plugin.py

We need to specify `default_view` for the plugin class  from `AppBuilderBaseView`.
2019-01-11 23:19:40 -08:00
Drew J. Sonne d108d8d2aa [AIRFLOW-3605] Load plugins from entry_points (#4412)
* [AIRFLOW-3605] Add entrypoint plugin docs

This documentation came from https://github.com/apache/incubator-airflow/pull/730 which had already started work on a PR for this functionality.

* [AIRFLOW-3605] Extend plugin loading functionality

Added business logic to import AirflowPlugin classes through entry_points.
This means we don’t have to interact with the file system directly to install plugins, and can manage them via `pip`.
2019-01-10 15:03:59 -08:00
Tao Feng 67572025cc [AIRFLOW-3612] Remove incubation/incubator mention (#4419) 2019-01-05 14:05:25 +00:00
Jimmy Cao 9266c0fb60 [AIRFLOW-2548] Output plugin import errors to web UI (#3930) 2019-01-02 14:11:15 +01:00
Joshua Carp 456d955953 [AIRFLOW-XXX] Fix typo in plugin docs (#4183) 2018-11-14 16:26:56 +05:30
Ash Berlin-Taylor b9fc03ea1a [AIRFLOW-2779] Add license headers to doc files (#4178)
This adds ASF license headers to all the .rst and .md files with the
exception of the Pull Request template (as that is included verbatim
when opening a Pull Request on Github which would be messy)
2018-11-13 15:01:44 +01:00
Olivier Morissette 1c76e8a9a5 [AIRFLOW-2744] Allow RBAC to accept plugins for views and links. (#4036)
Airflow Users that wish to create plugins for the new www_rbac UI
can not add plugin views or links. This PR fixes that by letting
a user specify their plugins for www_rbac and maintains backwards
compatibility with the existing plugins system.
2018-10-23 17:21:30 +01:00
Xiaodong 3157287e8c [AIRFLOW-2821] Refine Doc "Plugins" (#3664) 2018-08-05 19:24:20 +01:00
Charles Caygill 817296a7be [AIRFLOW-XXX] Fix doc typos
Closes #3459 from ccayg-sainsburys/master
2018-06-04 11:15:38 -07:00
Edward Wells fedc5a092c [AIRFLOW-2147] Plugin manager: added 'sensors' attribute
AirflowPlugin required both BaseOperator and BaseSensorOperator
to be included in its `operators` attribute. Add a `sensors`
attribute and updated import logic so that anything added to
the new attribute can be imported from `airflow.sensors.{plugin_name}`

The integration/`make_module` calls in `airflow.plugins_manager`
for operators is also updated to maintain the ability to import
sensors from `operators` to avoid breaking existing plugins

- Update unit tests and documentation to reflect this
- Added exclusion for flake8 module level import not at top of file

Closes #3075 from arcward/AIRFLOW-2147
2018-03-02 09:29:14 +01:00
Kaxil Naik 1c76e1b63a [AIRFLOW-2115] Fix doc links to PythonHosted
Replaced `http://pythonhosted.org/airflow/` links
to `https://airflow.incubator.apache.org/` in:
- Airflow Web UI
- `default_airflow.cfg` file
- Tutorial
- `CONTRIBUTING.md`

Closes #3050 from kaxil/AIRFLOW-2115
2018-02-16 12:38:54 +01:00
William Pursell 15b8a36b90 [AIRFLOW-2083] Docs: Use "its" instead of "it's" where appropriate
Closes #3020 from wrp/spelling
2018-02-09 10:08:06 +01:00
George Leslie-Waksman eb5982d4aa [AIRFLOW-333][AIRFLOW-258] Fix non-module plugin components
* Distinguish between module and non-module plugin
components
* Fix handling of non-module plugin components

  * admin views, flask blueprints, and menu links
need to not be
    wrapped in modules

* Fix improper use of zope.deprecation.deprecated

  * zope.deprecation.deprecated does NOT support
classes as
    first parameter
  * deprecating classes must be handled by calling
the deprecate
    function on the class name

* Added tests for plugin loading
* Updated plugin documentation to match test
plugin
* Updated executors to always load plugins
* More logging

Closes #1738 from gwax/plugin_module_fixes
2016-10-01 23:43:20 -07:00
Sean McIntyre cab436a69a Update plugins.rst for clarity on the example (#1309)
The plugins tutorial was lacking in the following ways:

1. I wasn't sure where my template should live
2. I wasn't aware that both the TestView and Blueprint were necessary

In lieu of a code refactor, here's my suggestion on how to make the documentation more helpful from the perspective of someone who doesn't have experience with Flask Blueprints and Flask Admin, which can prevent the deep-dive into the code and supporting libs that I just did!
2016-04-10 22:40:03 -07:00
Jeff Widman a810d3e136 Replace deprecated flask.ext.* with flask_*
https://github.com/mitsuhiko/flask/issues/1135
2016-02-25 11:14:01 -08:00
Josh Marlow 1c8d657787 Fixed typo in plugins.rst 2016-02-01 16:25:56 -05:00
Marty Woodlee 219803924a Various documentation spelling and grammar edits 2015-06-28 17:57:13 -05:00
Gregory Foster 8fc792228e Added missing import in the plugins doc example 2015-06-22 16:21:10 -07:00
Maxime Beauchemin 84dcc17cf2 Take 2 on more explicit plugins 2015-06-18 20:57:13 -07:00
Maxime Beauchemin 22ac771af1 A simple plugin system for Airflow 2015-06-17 00:00:54 +00:00