jayachandrakasarla commented on code in PR #68378:
URL: https://github.com/apache/airflow/pull/68378#discussion_r3395296858
##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Details.tsx:
##########
@@ -84,6 +84,34 @@ export const Details = () => {
},
);
+ const renderValue = (value: unknown): string => {
+ if (value === null || value === undefined || value === "") {
+ return translate("common:none", { defaultValue: "None" });
+ }
+
+ if (typeof value === "string") {
+ return value;
+ }
+
+ if (typeof value === "number" || typeof value === "boolean" || typeof
value === "bigint") {
+ return value.toString();
+ }
+
+ if (typeof value === "object") {
+ return JSON.stringify(value, undefined, 2);
+ }
+
+ return "";
+ };
+
+ const rawTaskInstanceDetails: Array<{ label: string; value: unknown }> = [
Review Comment:
I have added the Task Instance Id field as follows, is this okay or do you
want me to change it to something else:
<img width="432" height="137" alt="image"
src="https://github.com/user-attachments/assets/db59f9b7-d4cd-4b2e-a801-ad2b15ba040a"
/>
--
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]