[ 
https://issues.apache.org/jira/browse/AIRFLOW-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16788659#comment-16788659
 ] 

ASF GitHub Bot commented on AIRFLOW-4015:
-----------------------------------------

ashb commented on pull request #4884: [AIRFLOW-4015] Add get_dag_runs GET 
endpoint to "classic" API
URL: https://github.com/apache/airflow/pull/4884
 
 
   
   Make sure you have checked _all_ steps below.
   
   ### Jira
   https://issues.apache.org/jira/browse/AIRFLOW-4015
   
   
   ### Description
   We documented it as being present in 1.10.2, but we only actually made
   it available in under the RBAC mode of the webserver. This adds it to the 
classic mode too (hence targeting the release branch, not master)
   
   > ```GET /api/experimental/dags/<DAG_ID>/dag_runs```
   
   ### Tests
   
   - [x] Copied/ported rbac tests to non rbac
   
   ### Commits
   
   - [x] My commits all reference Jira issues in their subject lines, and I 
have squashed multiple commits if they address the same issue. In addition, my 
commits follow the guidelines from "[How to write a good git commit 
message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [x] In case of new functionality, my PR adds documentation that describes 
how to use it.
     - When adding new operators/hooks/sensors, the autoclass documentation 
generation needs to be added.
     - All the public functions and the classes in the PR contain docstrings 
that explain what it does
     - If you implement backwards incompatible changes, please leave a note in 
the [Updating.md](https://github.com/apache/airflow/blob/master/UPDATING.md) so 
we can assign it to a appropriate release
   
   ### Code Quality
   
   - [x] Passes `flake8`
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> GET dag_runs endpoint of experimental API only in RBAC UI
> ---------------------------------------------------------
>
>                 Key: AIRFLOW-4015
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4015
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: api, Documentation
>    Affects Versions: 1.10.2
>            Reporter: Dmytro Kulyk
>            Assignee: Ash Berlin-Taylor
>            Priority: Major
>             Fix For: 1.10.3
>
>
> when i try to get dag_runs over experimental api ( dags/<DAG_ID>/dag_runs ) 
> it throws 405 response:
> http://airflow01.cluster.prod:8080/api/experimental/dags/analytics_prod/dag_runs
> {code}
> curl 
> http://airflow01.betlab.prod:8080/api/experimental/dags/analytics_prod/dag_runs
>  -vvvvv
> *   Trying 192.168.48.163...
> * TCP_NODELAY set
> * Connected to airflow01.betlab.prod (192.168.48.163) port 8080 (#0)
> > GET /api/experimental/dags/analytics_prod/dag_runs HTTP/1.1
> > Host: airflow01.betlab.prod:8080
> > User-Agent: curl/7.55.1
> > Accept: */*
> >
> < HTTP/1.1 405 METHOD NOT ALLOWED
> < Server: gunicorn/19.9.0
> < Date: Tue, 05 Mar 2019 12:33:15 GMT
> < Connection: close
> < Content-Type: text/html
> < Allow: POST, OPTIONS
> < Content-Length: 178
> <
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> <title>405 Method Not Allowed</title>
> <h1>Method Not Allowed</h1>
> <p>The method is not allowed for the requested URL.</p>
> * Closing connection 0
> {code}
> Howewer, other ones works perfectly
> * GET: pools
> * GET: dags/<DAG_ID>/tasks/<TASK_ID>
> * POST: dags/<DAG_ID>/dag_runs
> * GET: test
> * GET: latest_runs 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to