You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2025/03/24 11:02:19 UTC

[PR] Improve XCom table [airflow]

pierrejeambrun opened a new pull request, #48189:
URL: https://github.com/apache/airflow/pull/48189

   Improve the XCom table:
   
   ## After
   ![Screenshot 2025-03-24 at 12 01 33](https://github.com/user-attachments/assets/78e9f9f1-7877-48a5-85fd-6a3f91d3693a)
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #48189:
URL: https://github.com/apache/airflow/pull/48189#discussion_r2010241604


##########
airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx:
##########
@@ -34,6 +36,49 @@ const columns: Array<ColumnDef<XComResponse>> = [
     enableSorting: false,
     header: "Key",
   },
+  {
+    accessorKey: "dag_id",

Review Comment:
   dag_id, run_id, and task_id are always defined. 
   
   ```
   class XComResponse(BaseModel):
       """Serializer for a xcom item."""
   
       key: str
       timestamp: datetime
       logical_date: datetime | None
       map_index: int
       task_id: str
       dag_id: str
       run_id: str
   
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun merged PR #48189:
URL: https://github.com/apache/airflow/pull/48189


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #48189:
URL: https://github.com/apache/airflow/pull/48189#discussion_r2010241604


##########
airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx:
##########
@@ -34,6 +36,49 @@ const columns: Array<ColumnDef<XComResponse>> = [
     enableSorting: false,
     header: "Key",
   },
+  {
+    accessorKey: "dag_id",

Review Comment:
   dag_id, run_id, and task_id are always defined. (which is not the case for the Event datamodel). We don't need to handle null case here.
   
   ```
   class XComResponse(BaseModel):
       """Serializer for a xcom item."""
   
       key: str
       timestamp: datetime
       logical_date: datetime | None
       map_index: int
       task_id: str
       dag_id: str
       run_id: str
   
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on code in PR #48189:
URL: https://github.com/apache/airflow/pull/48189#discussion_r2010371997


##########
airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx:
##########
@@ -34,6 +36,49 @@ const columns: Array<ColumnDef<XComResponse>> = [
     enableSorting: false,
     header: "Key",
   },
+  {
+    accessorKey: "dag_id",

Review Comment:
   Sorry, I meant on the basis of them defined in the URL like how it's in the linked events page implementation. 
   
   ```js
   const { dagId, runId, taskId } = useParams();
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on code in PR #48189:
URL: https://github.com/apache/airflow/pull/48189#discussion_r2010069308


##########
airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx:
##########
@@ -34,6 +36,49 @@ const columns: Array<ColumnDef<XComResponse>> = [
     enableSorting: false,
     header: "Key",
   },
+  {
+    accessorKey: "dag_id",

Review Comment:
   Can dag_id, run_id and task_id be hidden similar to how they are not rendered in events page?
   
   https://github.com/apache/airflow/blob/6a703dd1f795784e446742dddf412b0fe3b4e4a0/airflow-core/src/airflow/ui/src/pages/Events/Events.tsx#L44
   



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on PR #48189:
URL: https://github.com/apache/airflow/pull/48189#issuecomment-2747925029

   Related issue https://github.com/apache/airflow/issues/48003


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve XCom table [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #48189:
URL: https://github.com/apache/airflow/pull/48189#discussion_r2009956263


##########
airflow-core/src/airflow/ui/src/components/TruncatedText.tsx:
##########
@@ -31,7 +31,6 @@ export const TruncatedText = ({ text, ...rest }: Props) => (
       WebkitLineClamp: 2,
     }}
     title={text}
-    width="200px"

Review Comment:
   This is to not impose a fixed with. If the text can expand, it will, if it cannot it will wrap and then ellipse:
   ![Screenshot 2025-03-24 at 12 03 16](https://github.com/user-attachments/assets/e4b60531-c68b-4c13-9c2e-5346ba9b1ea4)
   ![Screenshot 2025-03-24 at 12 03 26](https://github.com/user-attachments/assets/b91f29be-25bc-45be-b725-515c84e5755a)
   
   
   
   ![Screenshot 2025-03-24 at 12 03 37](https://github.com/user-attachments/assets/028e1d08-3206-4947-a878-ea20c09ae94c)
   



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org