pierrejeambrun opened a new pull request, #72896: URL: https://github.com/apache/airflow/pull/72896
Adds a reparse action next to each file in the Dag import errors modal, so a file that failed to parse can be retried in place, instead of waiting for the next scheduled parse or reparsing the file from elsewhere after fixing it. A file with an import error has no registered Dags, so the reparse endpoint had no per-Dag key to authorize the request against and returned `404`. Reparsing an errored file is now gated on the same `IMPORT_ERRORS` view permission that already governs viewing import errors, and `ImportErrorResponse` exposes the `file_token` the button needs to call the existing reparse endpoint. closes: #72038 related: #72039 — an earlier, still-open draft for the same issue. Opening this as a fresh, self-contained take rather than reworking that branch. ## Screenshots <!-- Drag the two PNGs in here: reparse button in the modal, and its tooltip. --> --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
