uranusjr commented on code in PR #57808:
URL: https://github.com/apache/airflow/pull/57808#discussion_r2493009338
##########
airflow-core/src/airflow/api_fastapi/execution_api/datamodels/hitl.py:
##########
@@ -79,6 +79,6 @@ def from_hitl_detail_orm(cls, hitl_detail: HITLDetail) ->
HITLDetailResponse:
response_received=hitl_detail.response_received,
responded_at=hitl_detail.responded_at,
responded_by_user=hitl_user,
- chosen_options=hitl_detail.chosen_options,
+ chosen_options=(list(hitl_detail.chosen_options.keys()) if
hitl_detail.chosen_options else None),
Review Comment:
If you change chosen_options to an Iterable, this can just be
`chosen_options=hitl_detail.chosen_options or ()`
--
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]