Conversation
|
after some tesitng, I feel we might need to revert part of the #55952 implementation 🤔 (related to ti history) |
bb30a01 to
5a2dc8e
Compare
5a2dc8e to
91848f8
Compare
91848f8 to
3ed2c75
Compare
guan404ming
left a comment
There was a problem hiding this comment.
Thanks for the PR, UI wise looks good.
I found a minor cache issue in my local test.
Screen.Recording.2025-10-29.at.12.39.54.AM.mov
We need to invalidate the cache when submitting a reply by adding:
[useTaskInstanceServiceGetHitlDetailTryKey, { dagId, dagRunId, mapIndex, taskId }],
to the mutation's onSuccess callback at
Feel free to let me know if anything's unclear or if you'd like me to explain further!
airflow-core/src/airflow/ui/src/pages/TaskInstance/HITLResponse.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/datamodels/hitl.py
Outdated
Show resolved
Hide resolved
pierrejeambrun
left a comment
There was a problem hiding this comment.
Maybe rebase this PR because the backend part was merged and typo was fixed, this will make the changelog limited to the front-end part and make it easier to review I believe.
airflow-core/src/airflow/api_fastapi/core_api/routes/public/hitl.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/routes/public/hitl.py
Outdated
Show resolved
Hide resolved
|
Mark it as a draft. I'll get back to it if bandwidth allow |
45f398c to
248367b
Compare
…te hitl_try endpoint instead
248367b to
c558d5a
Compare
bbovenzi
left a comment
There was a problem hiding this comment.
This is a good start. I want to make some other UX changes to improve HITL but thats separate from this functionality
|
Got it. Thanks @bbovenzi ! |
* feat(hitl): hitl history ui * fix(hitl): remove hitl from task_instance_history but create a separate hitl_try endpoint instead * feat(hitl): use HITLHistory in the frontend * feat(hitl): add auto refresh * fix: fix ci failure * fix(hitl): fix typo * refactor: rename local variable * refactor(hitl): remove -1 from try Number * fix(HITL): fix missing diabled in the UI
* feat(hitl): hitl history ui * fix(hitl): remove hitl from task_instance_history but create a separate hitl_try endpoint instead * feat(hitl): use HITLHistory in the frontend * feat(hitl): add auto refresh * fix: fix ci failure * fix(hitl): fix typo * refactor: rename local variable * refactor(hitl): remove -1 from try Number * fix(HITL): fix missing diabled in the UI
* feat(hitl): hitl history ui * fix(hitl): remove hitl from task_instance_history but create a separate hitl_try endpoint instead * feat(hitl): use HITLHistory in the frontend * feat(hitl): add auto refresh * fix: fix ci failure * fix(hitl): fix typo * refactor: rename local variable * refactor(hitl): remove -1 from try Number * fix(HITL): fix missing diabled in the UI
Why
The backend side of HITLHistory was added in #55952, but the UI part wasn't.
Closes: #54956
What
Screenshot
try 1
try 2
^ 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.