Skip to content

Conversation

@rawwar
Copy link
Contributor

@rawwar rawwar commented Mar 17, 2025

related to #42360

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Mar 17, 2025
@rawwar
Copy link
Contributor Author

rawwar commented Mar 17, 2025

One issue here. So, DagBag will read all files in the DAG_DIR and also example dags(because we set config include example dags in the test) . But, it does not sync to DB. Because of this, readable_dags_filter(which queries DagModel to fetch dag_id's) will be empty.

I am trying to figure out how to update DB with the example_dags + available dags in the test.

Also, code needs some refactoring. Which I'll do once I figure out above issue.

@rawwar
Copy link
Contributor Author

rawwar commented Mar 17, 2025

I found tests_common.test_utils.db.parse_and_sync_to_db method. Trying to use it

EDIT: This worked.

@Lee-W Lee-W self-requested a review March 17, 2025 06:32
@rawwar rawwar marked this pull request as ready for review March 17, 2025 07:01
@Lee-W Lee-W force-pushed the kalyan/AIP-84/auth/dag_report branch from f748335 to 00c7ad7 Compare March 17, 2025 11:44
@Lee-W Lee-W mentioned this pull request Mar 17, 2025
47 tasks
@pierrejeambrun pierrejeambrun merged commit 62cc9ae into apache:main Mar 17, 2025
89 checks passed
agupta01 pushed a commit to agupta01/airflow that referenced this pull request Mar 21, 2025
* add auth to dag report

* sync dags to DB

* refactor

* refactor(api_fastapi): rewrite dag_report filtering

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
* add auth to dag report

* sync dags to DB

* refactor

* refactor(api_fastapi): rewrite dag_report filtering

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants