Add Endpoint to fetch DAG jobs
We are working on implementing a tab on the pipeline page to visualize DAG relationship with a graph. #215517 (closed)
To build this graph, we would need an endpoint that we can call that returns all DAG jobs with their needs. Also, we would need to receive jobs that are needed by DAG that aren't necessarily DAGs themselves. The structure that we currently receives for pipelines would work fine. Here is an example of a response:
{
"details": {
"stages": [
{
"name": "prepare",
"title": "build: passed",
"groups": [
"jobs": [ { "name": "setup-test-env pg11" },{ "name": "compile-assets pull-cache" }]
]
},
{
"name": "fixtures",
"title": "build: passed",
"groups": [
"jobs": [{
"name": "frontend-fixtures",
"needs": ["setup-test-env pg11", "compile-assets pull-cache"]
},
{
"name": "frontend-fixtures-as-if-foss",
"needs": ["setup-test-env pg11", "compile-assets pull-cache"]
}]
]
},
}
Tasks
-
Create Entity that serializes DAG pipeline -
Generate different JSON response bodies for frontend to be used for testing
Edited by Fabio Pitino