sjyangkevin commented on code in PR #55463:
URL: https://github.com/apache/airflow/pull/55463#discussion_r2338386668


##########
airflow-core/src/airflow/models/hitl.py:
##########
@@ -80,4 +88,44 @@ def response_received(self) -> bool:
     def response_received(cls):
         return cls.response_at.is_not(None)
 
-    DEFAULT_USER_NAME = "Fallback to defaults"
+    @hybrid_property
+    def responded_by_user_id(self) -> str | None:
+        return self.responded_by["id"] if self.responded_by else None
+
+    @responded_by_user_id.expression  # type: ignore[no-redef]
+    def responded_by_user_id(cls):
+        return func.json_extract(cls.responded_by, "$.id")

Review Comment:
   seems like this is the part causes the error in test, and probably only for 
postgres. I wasn't able to find a good reference for this, but wondering if it 
is only valid in MySQL.



-- 
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]

Reply via email to