You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the next step we should find the operator and check the class description for reference to the guide
>>> from airflow.operators import python
>>> ':ref:`howto/operator:PythonOperator`' in python.PythonOperator.__doc__
This test should be added to the codebase::
if you can do it without loading the python modules (text only operation), because the documentation process assumes that you don't have to have all libraries installed, then in this file: https://github.com/apache/airflow/blob/master/docs/build
mik-laj
changed the title
Detect automatically the lack of reference to the guide in the operator description
Detect automatically the lack of reference to the guide in the operator descriptions
May 17, 2020
Hello @mik-laj, I created PR to tackle this issue using the first approach you suggested (make it directly through docs/build without importing any modules). Would you mind checking and leave some comments on PR? Thanks in advance.
@ivan-afonichkin I will try to look at it on Monday. I am very happy that this has been achieved. I did not think that so many problems could be detected.
Hello,
We have a lot of guides that are fantastic.
![Screenshot 2020-05-17 at 20 07 41](https://user-images.githubusercontent.com/12058428/82156193-27d62880-987a-11ea-9332-92d2598f9d83.png)
https://airflow.readthedocs.io/en/latest/howto/operator/index.html
https://airflow.readthedocs.io/en/latest/howto/operator/gcp/index.html
However, not every person may be aware that they exist. In order to promote them, we add a reference in the class description to the guide.
Finding operators that have a guide is simple and can be based on the text pattern search.
In the next step we should find the operator and check the class description for reference to the guide
This test should be added to the codebase::
https://github.com/apache/airflow/blob/master/docs/build
https://github.com/apache/airflow/blob/master/tests/test_project_structure.py
The text was updated successfully, but these errors were encountered: