[AIRFLOW-3971] Add Google Cloud Natural Language operators#4980
Conversation
3873ac6 to
b66ea5b
Compare
There was a problem hiding this comment.
Please use the full name of the API: Google Cloud Natural Language API.
There was a problem hiding this comment.
I will do it.
Do you think it's worth updating the google-cloud-python library to use the correct name?
https://github.com/googleapis/google-cloud-python/blob/master/docs/index.rst
There was a problem hiding this comment.
Good point, yes, I think that would make sense.
There was a problem hiding this comment.
I'm not sure if this is just a rendering problem during review, but all of these autoclass:: entries don't seem to be rendering correctly for me here:
https://github.com/apache/airflow/blob/b66ea5b2a1dd87572e2ac5626fce9ea164bd8097/docs/code.rst
They just show up as text literals in a code-style text box.
There was a problem hiding this comment.
Github does not support additional directives provided by Sphinx. Ever since I made this PR, the format of the documentation has also changed.
|
@wwlian If you are interested, I will prepare you preview of the built-in documentation in HTML format. |
979aa0c to
49b98ab
Compare
|
PTAL @kaxil I considered all the suggestions of the community. |
There was a problem hiding this comment.
| Example Airflow DAG for Google Natural Language service | |
| Example Airflow DAG for Google Cloud Natural Language service |
There was a problem hiding this comment.
Can we add gcp here... as other cloud providers might have similar services and can conflict in future?
| # [START howto_operator_natural_language_analyze_entities] | |
| # [START howto_gcp_operator_natural_language_analyze_entities] |
There was a problem hiding this comment.
And same in all the comments below
There was a problem hiding this comment.
Conflict will never happen because the tags are always associated with the file. Prefixes are completely unnecessary. However, I will introduce your suggestion in a moment.
There was a problem hiding this comment.
aah.. yes you right. :-) Probably I shouldn't be reviewing so late... brain-fade moment 😄
There was a problem hiding this comment.
I prefer to use 'howto_operator_gcp_natural_language_analyze_entities` to mark the file that contains these sections. I did not add the word "GCP" earlier because I thought it was a sufficient level of depth to easily find a file.
There was a problem hiding this comment.
yea agree.. Can you resolve conflicts with docs/conf.py
There was a problem hiding this comment.
Yes. I'm working on it now.
49b98ab to
7d4f7ca
Compare
There was a problem hiding this comment.
| pip install airflow[gcp] | |
| pip install apache-airflow[gcp] |
There was a problem hiding this comment.
Can we update this to httplib2~=0.9.2, so that the major version update doesn't break Airflow.
|
@kaxil Do you have any comments about the documentation? In this PR I introduce a new structure of documentation, which will be a lot user-friendly. It contains more information, and information that already exists is presented in a different form. I would like the documentation to be understandable for a novice user. The previous form did not meet my expectations. While creating this documentation, I tried to enter all the suggestions that were reported to the previous documentation from my client. I will be grateful for your comments and opinions.. Preview of latest version is available: http://two-pain.surge.sh/howto/operator/gcp/natural_language.html |
7d4f7ca to
447de8a
Compare
|
I don't know why CI has not been triggered for this PR. 🤔 |
|
@kaxil I do not understand it either. I can run the task on my forks if it helps you. |
447de8a to
4868ad6
Compare
|
A trigger a new build on my Travis. Status is available: PolideaInternal#74 |
37db3a8 to
0e1f0d6
Compare
|
the CI is failing @mik-laj |
|
@kaxil Thanks. I working on it now. |
0e1f0d6 to
81b9ce2
Compare
Codecov Report
@@ Coverage Diff @@
## master #4980 +/- ##
==========================================
+ Coverage 76.23% 76.24% +<.01%
==========================================
Files 466 469 +3
Lines 30101 30225 +124
==========================================
+ Hits 22949 23045 +96
- Misses 7152 7180 +28
Continue to review full report at Codecov.
|
|
@kaxil it's green now. I replace a method import_module with a method from autodoc sphinx extension (it's part of core) and add a mock support based on autodoc code. |
81b9ce2 to
d04c780
Compare
Make sure you have checked all steps below.
Jira
Description
Hello,
I would like to create operators for Google Natural Language:
Tests
Commits
Documentation
Code Quality
flake8