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 2021/10/22 09:16:00 UTC

[GitHub] [airflow] ephraimbuddy opened a new issue #19154: Add Release date for when an endpoint/field was added in the REST API

ephraimbuddy opened a new issue #19154:
URL: https://github.com/apache/airflow/issues/19154


   ### Description
   
   This will help users to know the airflow version a field or an endpoint was added. 
   
   We could do this by checking the changelogs of previous airflow versions and adding a release date to new fields/endpoints corresponding to that version.
   
   Take a look at the dag_run_id below
   
   ![openapi](https://user-images.githubusercontent.com/4122866/138428156-e2690c7b-1c17-453c-9086-e6f6a13ac529.PNG)
   
   
   ### Use case/motivation
   
   We recently added the feature here: https://github.com/apache/airflow/pull/19105/files#diff-191056f40fba6bf5886956aa281e0e0d2bb4ddaa380beb012d922a25f5c65750R2305 
   
   If you decided to do this, take the opportunity to update the above to 2.3.0
   
   
   
   ### Related issues
   
   Here is an issue a user created that could have been avoided: https://github.com/apache/airflow/issues/19101
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949456415


   > Do you prefer I add it as part of this issue?
   
   I think both work, but it's probably best to split if we want to keep this a *good first issue* since it's significantly more work to implement that hook.
   
   > Creating pre-commit checks for this is difficult because when merging a change, it is not known in which version a given change will be released.
   
   I think it's enough to check that all new fields have a line starting with _New in version_ if added or _Changed in version_ if changed. The version specified in the PR should always default to the next feature release (it's not a good idea to add/change a field in a bugfix release unless in extreme circumstances) and can be manually reviewed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ephraimbuddy commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
ephraimbuddy commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949445077


   > Also I feel we probably need some kind of pre-commit hooks to enforce this?
   
   Correct. I will create an issue for that


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949872687


   To start, I think you can manually check back when all existing fields in `airflow/api_connexion/openapi/v1.yaml` were added to Airflow. Let's start with classes defined in `components -> schemas`. Since the OpenAPI endpoints are only added in Airflow 2.0, you should only need to check all versions until 2.0.1; everything else was added from the beginnning and don't need to be annotated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk closed issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #19154:
URL: https://github.com/apache/airflow/issues/19154


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj edited a comment on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mik-laj edited a comment on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-950043189


   Each release has a separate tag, so when you switch to a specific tag, you can see the code from a specific version.
   <img width="421" alt="Screenshot 2021-10-23 at 04 24 27" src="https://user-images.githubusercontent.com/12058428/138539113-51494607-08b5-4798-867e-039d2086afb0.png">
   Next, you have to go to the file and find the "Raw" button to see the plain file.
   <img width="432" alt="Screenshot 2021-10-23 at 04 25 00" src="https://user-images.githubusercontent.com/12058428/138539282-baaa84bb-0f96-4d16-bf3d-c8a2a652e30d.png">
   
   ```
   https://github.com/apache/airflow/blob/2.0.2/airflow/api_connexion/openapi/v1.yaml
   ```
   When you have one link, you can generate the rest with a simple Bash script. Information about Airflow versions can be downloaded most easily from pypi.
   The code below fetch all 2.* versions:
   ```shell
   $ curl -s 'https://pypi.org/pypi/apache-airflow/json' | jq '.releases|to_entries|.[]|.key' -r | grep "^2." | grep -v "b\|rc"
   2.0.0
   2.0.1
   2.0.2
   2.1.0
   2.1.1
   2.1.2
   2.1.3
   2.1.4
   2.2.0
   ```
   To generate link, run:
   ```shell
   $ curl -s 'https://pypi.org/pypi/apache-airflow/json' | jq '.releases|to_entries|.[]|.key' -r | grep "^2." | grep -v "b\|rc" | xargs -I {} -n 1 echo https://raw.githubusercontent.com/apache/airflow/\{\}/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.0/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.1/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.2/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.0/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.1/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.2/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.3/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.4/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.2.0/airflow/api_connexion/openapi/v1.yaml
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj edited a comment on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mik-laj edited a comment on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949449539


   Creating pre-commit checks for this is difficult because when merging a change, it is not known in which version a given change will be released. A similar problem exists in (airflow/config_templates/config.yml)[https://github.com/apache/airflow/blob/205219c522b77abe9d36d51807c32189c900cfd4/airflow/config_templates/config.yml#L41] file.  The release manager decides whether a given change can be released sooner or later, and therefore what version it will be. For conifg.yaml, we have a post-release script to validate config - https://github.com/apache/airflow/blob/main/dev/README_RELEASE_AIRFLOW.md#update-airflowconfig_templatesconfigyml-file


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949449539


   Creating pre-commit checks for this is difficult because when merging a change, it is not known in which version a given change will be released. A similar problem exists in (airflow/config_templates/config.yml)[https://github.com/apache/airflow/blob/205219c522b77abe9d36d51807c32189c900cfd4/airflow/config_templates/config.yml#L41] file.  The issue manager decides whether a given change can be released sooner or later, and therefore what version it will be.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ephraimbuddy commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
ephraimbuddy commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-951701052


   Now that we are working on this, what are your thoughts about removing https://github.com/apache/airflow/blob/cdbb481338f8a93290e9ca308bf111c3a30fa6ce/airflow/api_connexion/openapi/v1.yaml#L130-L136
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mrbazzan commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mrbazzan commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949867510


   @uranusjr I'm interested in this issue.
   @ephraimbuddy How do I get started?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mrbazzan commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mrbazzan commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949969326


   > Here all spec:
   > 
   > ```
   > https://raw.githubusercontent.com/apache/airflow/2.0.0/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.0.1/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.0.2/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.1.0/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.1.1/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.1.2/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.1.3/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.1.4/airflow/api_connexion/openapi/v1.yaml
   > https://raw.githubusercontent.com/apache/airflow/2.2.0/airflow/api_connexion/openapi/v1.yaml
   > ```
   
   Thanks @mik-laj. I'm curious, how did you get the links?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr edited a comment on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
uranusjr edited a comment on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949456415






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949887443


   Here all spec:
   ```
   https://raw.githubusercontent.com/apache/airflow/2.0.0/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.1/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.2/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.0/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.1/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.2/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.3/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.4/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.2.0/airflow/api_connexion/openapi/v1.yaml
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-950043189


   Each release has a separate tag, so when you switch to a specific tag, you can see the code from a specific version.
   <img width="421" alt="Screenshot 2021-10-23 at 04 24 27" src="https://user-images.githubusercontent.com/12058428/138539113-51494607-08b5-4798-867e-039d2086afb0.png">
   Next, you have to go to the file and find the "Raw" button to see the plain file.
   <img width="432" alt="Screenshot 2021-10-23 at 04 25 00" src="https://user-images.githubusercontent.com/12058428/138539282-baaa84bb-0f96-4d16-bf3d-c8a2a652e30d.png">
   
   ```
   https://github.com/apache/airflow/blob/2.0.2/airflow/api_connexion/openapi/v1.yaml
   ```
   When you have one link, you can generate the rest with a simple Bash script. Information about Airflow versions can be downloaded most easily from pypi.
   The code below fetch all 2.* versions:
   ```shell
   $ curl -s 'https://pypi.org/pypi/apache-airflow/json' | jq '.releases|to_entries|.[]|.key' -r | grep "^2." | grep -v "b\|rc"
   2.0.0
   2.0.1
   2.0.2
   2.1.0
   2.1.1
   2.1.2
   2.1.3
   2.1.4
   2.2.0
   ```
   To generate link, run:
   ```shell
   $ curl -s 'https://pypi.org/pypi/apache-airflow/json' | jq '.releases|to_entries|.[]|.key' -r | grep "^2." | grep -v "b\|rc" | xargs -I {} -n 1 echo https://raw.githubusercontent.com/apache/airflow/\{\}/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.0/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.1/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.0.2/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.0/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.1/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.2/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.3/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.1.4/airflow/api_connexion/openapi/v1.yaml
   https://raw.githubusercontent.com/apache/airflow/2.2.0/airflow/api_connexion/openapi/v1.yaml```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ephraimbuddy commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
ephraimbuddy commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949447156


   > > Also I feel we probably need some kind of pre-commit hooks to enforce this?
   > 
   > Correct. I will create an issue for that
   
   Do you prefer I add it as part of this issue?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj edited a comment on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mik-laj edited a comment on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949449539


   Creating pre-commit checks for this is difficult because when merging a change, it is not known in which version a given change will be released. A similar problem exists in (airflow/config_templates/config.yml)[https://github.com/apache/airflow/blob/205219c522b77abe9d36d51807c32189c900cfd4/airflow/config_templates/config.yml#L41] file.  The release manager decides whether a given change can be released sooner or later, and therefore what version it will be.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] uranusjr commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949443240


   Also I feel we probably need some kind of pre-commit hooks to enforce this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mrbazzan commented on issue #19154: Add Release date for when an endpoint/field was added in the REST API

Posted by GitBox <gi...@apache.org>.
mrbazzan commented on issue #19154:
URL: https://github.com/apache/airflow/issues/19154#issuecomment-949944078


   > To start, I think you can manually check back when all existing fields in `airflow/api_connexion/openapi/v1.yaml` were added to Airflow. Let's start with classes defined in `components -> schemas`. Since the OpenAPI endpoints are only added in Airflow 2.0, you should only need to check all versions until 2.0.1; everything else was added from the beginnning and don't need to be annotated.
   
   Thanks @uranusjr 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org