-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Fix OpenAPI schema for get_log
API
#50547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix OpenAPI schema for get_log
API
#50547
Conversation
Thanks to @guan404ming for raising this issue during our offline discussion. |
Lightning speed ⚡️ Thanks for the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks.
I guess we need to wait for #49470 before merging.
83e53e9
to
9217985
Compare
This PR does not depend on #49470 (the log reading refactor). |
* Fix openapi schema for get_log API * Fix test_log (cherry picked from commit 08cc57d)
Backport pr #51357 |
…50746) (#51202) * Fix OpenAPI schema for `get_log` API (#50547) * Fix openapi schema for get_log API * Fix test_log (cherry picked from commit 08cc57d) * [v3-0-test] Update `TaskLogContent` to support virtualized rendering (#50746) * Update TaskLogContent to support virtualized rendering * Update TaskLogPreview and Logs to handle undefined parsedLogs (cherry picked from commit 813f3e3) Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com> --------- Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com> Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
…50746) (#51202) * Fix OpenAPI schema for `get_log` API (#50547) * Fix openapi schema for get_log API * Fix test_log (cherry picked from commit 08cc57d) * [v3-0-test] Update `TaskLogContent` to support virtualized rendering (#50746) * Update TaskLogContent to support virtualized rendering * Update TaskLogPreview and Logs to handle undefined parsedLogs (cherry picked from commit 813f3e3) Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com> --------- Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com> Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
* Fix openapi schema for get_log API * Fix test_log
related: #50333, #49470
Why
The #50333 PR require the
Content-Type
to beapplication/x-ndjson
for theget_log
endpoint to generate correct frontend query.airflow/airflow-core/src/airflow/ui/openapi-gen/queries/queries.ts
Line 770 in 51a84ce
What
Since PR #46827 sets the
Content-Type
toapplication/x-ndjson
, this change explicitly aligns with that behavior by usingapplication/x-ndjson
to ensure consistency and correctness:https://github.com/apache/airflow/pull/46827/files#diff-18e153220119c0579d8b8030d13daaa04a623b38f9854ffff8702a2bbe68f4f8R123-R130