Lee-W commented on code in PR #55463:
URL: https://github.com/apache/airflow/pull/55463#discussion_r2341120318


##########
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:
   yes, the latest commit should resolve it, it also took me sometime to get it 
through



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