wei-juncheng commented on code in PR #46053:
URL: https://github.com/apache/airflow/pull/46053#discussion_r1939657756


##########
airflow/www/utils.py:
##########
@@ -779,6 +779,80 @@ class 
UtcAwareFilterConverter(fab_sqlafilters.SQLAFilterConverter):
     """Retrieve conversion tables for UTC-Aware filters."""
 
 
+class XComFilterStartsWith(fab_sqlafilters.FilterStartsWith):
+    """Starts With filter for XCom values."""
+
+    def apply(self, query, value):
+        query, field = get_field_setup_query(query, self.model, 
self.column_name)

Review Comment:
   I centralized the code for handling value filtering in the `apply()` method 
into the `get_trimmed_field()` function to reduce code duplication. 
Additionally, I added type annotations for `apply()` and `get_trimmed_field()` 



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