dstandish commented on code in PR #26730:
URL: https://github.com/apache/airflow/pull/26730#discussion_r1013346332


##########
airflow/providers/microsoft/mssql/hooks/mssql.py:
##########
@@ -51,6 +51,15 @@ def __init__(
         self.schema = kwargs.pop("schema", None)
         self._sqlalchemy_scheme = sqlalchemy_scheme
 
+    @staticmethod
+    def get_ui_field_behaviour() -> Dict[str, Any]:
+        """Returns custom UI field behaviour for MSSQL Connection."""
+        return {
+            "relabeling": {
+                "schema": "Database",
+            },

Review Comment:
   inheritance doesn't work for these methods though unfortunately.
   
   aside... one thing that's unfortunate about relabeling is it doesn't help 
much when defining creds in env vars.  for that case it's a bit nicer to have 
them named properly as extras... though not much to do about that now i guess.



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