-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Add external logs link #49475
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
Add external logs link #49475
Conversation
jason810496
left a comment
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.
Thanks @guan404ming for the PR! Looks good overall.
I’ve left comments for some missing detailsL
airflow-core/src/airflow/api_fastapi/core_api/routes/public/log.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/routes/public/log.py
Outdated
Show resolved
Hide resolved
|
Thanks for your reviewing, I've updated the loss data model and test~ |
jason810496
left a comment
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.
Thanks for the change! Looks good to me, only left some nits for route definition and the testing part.
airflow-core/src/airflow/api_fastapi/core_api/routes/public/log.py
Outdated
Show resolved
Hide resolved
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_log.py
Outdated
Show resolved
Hide resolved
|
Thanks for help out, it did make sense to make the structure better! |
d41d97b to
8fb2b59
Compare
fa4b2e9 to
60efdb6
Compare
pierrejeambrun
left a comment
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.
Nice work.
Just a few nits / suggestion.
airflow-core/src/airflow/api_fastapi/core_api/routes/public/log.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/ExternalLogLink.tsx
Outdated
Show resolved
Hide resolved
|
Thanks for reviewing, I've updated my PR~ |
pierrejeambrun
left a comment
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.
Small nits
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/ExternalLogLink.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx
Outdated
Show resolved
Hide resolved
23c8727 to
c530390
Compare
jason810496
left a comment
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.
Thanks!
bbovenzi
left a comment
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.
A few small comments:
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/ExternalLogLink.tsx
Outdated
Show resolved
Hide resolved
|
PR updated. Thanks for your reviewing~ |
b3f0707 to
cebab02
Compare
cebab02 to
049417f
Compare
|
UI is good with me. But it looks like some python tests are failing |
Co-Authored-By: LIU ZHE YOU <[email protected]>
Co-Authored-By: LIU ZHE YOU <[email protected]>
Co-authored-by: pierrejeambrun <[email protected]>
Co-authored-by: Brent Bovenzi <[email protected]>
35746ed to
e645c4d
Compare
* feat: support external log * test: add test and dataModel Co-Authored-By: LIU ZHE YOU <[email protected]> * refactor: test structure Co-Authored-By: LIU ZHE YOU <[email protected]> * fix: airflowctl type in static check * fix: api and ui Co-authored-by: pierrejeambrun <[email protected]> * fix: miss rel and coding style * fix: replace a with `Link` Co-authored-by: Brent Bovenzi <[email protected]> --------- Co-authored-by: LIU ZHE YOU <[email protected]> Co-authored-by: pierrejeambrun <[email protected]> Co-authored-by: Brent Bovenzi <[email protected]>
Related Issue
Closes #47100
How
show_external_log_redirectandexternal_log_name(fromtask_log_reader) through ui config endpointExternalLogLinkin Log to handle redirect like AF2show_external_log_redirectandexternal_log_nameto determine whether to renderExternalLogLink^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.