pierrejeambrun commented on code in PR #45349:
URL: https://github.com/apache/airflow/pull/45349#discussion_r1922112677
##########
airflow/ui/src/queries/useClearTaskInstances.ts:
##########
@@ -60,6 +60,7 @@ export const useClearTaskInstances = ({
onSuccessDryRun(data);
} else {
const taskInstanceKeys = (variables.requestBody.task_ids ?? [])
+ .filter((taskId): taskId is string => typeof taskId === "string")
Review Comment:
I don't think this should be handled like this.
We should update this code to be able to clear a single mapped task
instance. Therefore the task_id could be `['task_id', mapped_index]` and we
need to handle that.
If it's a string, retrieve the task_id, if it's not a string, take it from
the `0` index.
--
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]