vincbeck commented on code in PR #34051:
URL: https://github.com/apache/airflow/pull/34051#discussion_r1316043015


##########
airflow/models/log.py:
##########
@@ -37,6 +37,7 @@ class Log(Base):
     event = Column(String(30))
     execution_date = Column(UtcDateTime)
     owner = Column(String(500))
+    friendly_owner = Column(String(500))

Review Comment:
   I agree with @uranusjr



##########
airflow/auth/managers/fab/fab_auth_manager.py:
##########
@@ -61,17 +61,27 @@ def get_cli_commands() -> list[CLICommand]:
             SYNC_PERM_COMMAND,  # not in a command group
         ]
 
+    def get_user_display_name(self) -> str:
+        """Return the user's display name associated to the user in session."""
+        user = self.get_user()
+        first_name = user.first_name or ""
+        last_name = user.last_name or ""
+        return f"{first_name} {last_name}".strip()

Review Comment:
   I like the current code better because if no first name and last name are 
set, then it returns a empty string which is Falsy. On the UI, the 
`get_user_display_name` is Falsy, we do something specific. This use case is 
real and happened not a long time ago. See #33586



-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to