-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIRFLOW-3811][3/3] Add automatic generation of API Reference #4788
Conversation
Co-authored-by: Jarek Potiuk <jarek.potiuk@polidea.com>
f467bb9
to
92d3266
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be super helpful to get the API reference fully automatically generated
The CI tells us |
@Fokko This is fixed, but in another PR from series. I have divided all the changes into a few PRs to make easiter to review of changes and to make history easier to read. |
I prepared a build with all changes: https://travis-ci.org/PolideaInternal/airflow/jobs/499332426 |
92d3266
to
5837352
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With my naming changes it should be fine
beb5e3c
to
42ac76e
Compare
42ac76e
to
0aeff60
Compare
It would be great to get it merged :). I think it's quite a good one to decrease friction of using Airflow by first time developers. I remember how I missed it the first time I started to use the project. Currently I am pretty OK in looking at the code, but having reference fully automatically genereated from Docstrings - especially that Airflow is so well documented - is a big + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice overall - and a much better approach!
Couple of comments/questions
0aeff60
to
35e8f30
Compare
Looking good @mik-laj Can you fix the merge conflict? |
airflow/models/index | ||
|
||
|
||
Core and community package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this fragment in this PR.
35e8f30
to
07cf720
Compare
@Fokko i updated a PR. |
95be58c
to
eaecc3b
Compare
Thanks @mik-laj Lets wait for the CI |
@Fokko Travis have unreleased errors on one job. Can you run it again?
|
Codecov Report
@@ Coverage Diff @@
## master #4788 +/- ##
==========================================
+ Coverage 75.67% 75.75% +0.07%
==========================================
Files 458 458
Lines 29856 31072 +1216
==========================================
+ Hits 22594 23539 +945
- Misses 7262 7533 +271
Continue to review full report at Codecov.
|
@mik-laj Trying to pull this in to 1.10.3 and I'm getting some odd warnings (which we treat as errors):
I turned on keep files, and bigquery_hook/index.rst:276 maps to this line in my source Lines 119 to 120 in da224b9
Comparing to master: /~https://github.com/apache/airflow/blob/master/airflow/www/utils.py#L91-L92 The issue here is a the lack of a new line - I'm just not sure how this didn't fail CI as a result? Edit: Ah, becaue _api/airflow/www is ignored right now. I'll just need to ignore www_rbac too. |
…4788) Co-authored-by: Jarek Potiuk <jarek.potiuk@polidea.com>
Awesome, Thanks @mik-laj . |
…4788) Co-authored-by: Jarek Potiuk <jarek.potiuk@polidea.com>
This PR will try to import snakebite here which is not compatible with python3. I encountered this error
It worked when using Airflow 1.10.2 |
…4788) Co-authored-by: Jarek Potiuk <jarek.potiuk@polidea.com>
…4788) Co-authored-by: Jarek Potiuk <jarek.potiuk@polidea.com>
Make sure you have checked all steps below.
Jira
https://issues.apache.org/jira/browse/AIRFLOW-3811?filter=-1
Description
This is one of the PR series aimed to add automatically API Reference.
I would ask you to accept changes in order.
Documentation preview with all changes is available:
http://neighborly-sun.surge.sh/autoapi/index.html
The library of autoapi was used to build it.
Tests
No applicable
Commits
Documentation
Code Quality
flake8