potiuk commented on a change in pull request #17578:
URL: https://github.com/apache/airflow/pull/17578#discussion_r688603265



##########
File path: airflow/utils/task_group.py
##########
@@ -94,10 +95,15 @@ def __init__(
             self.used_group_ids: Set[Optional[str]] = set()
             self._parent_group = None
         else:
-            if not isinstance(group_id, str):
-                raise ValueError("group_id must be str")
-            if not group_id:
-                raise ValueError("group_id must not be empty")
+            if prefix_group_id:

Review comment:
       Yeah, Removal is a bad word here. We should SLUGIFY them. We could for 
example use mozilla slugifier: https://github.com/mozilla/unicode-slugify which 
can do such magic as converting Chinese to basically - ascii:
   
   ```
   # Replace non ascii chars with their "best" representation
   slugify(u'北京 (capital of China)', only_ascii=True)
   # u'bei-jing-capital-of-china'
   ```




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