jfrag1 commented on code in PR #24894:
URL: https://github.com/apache/superset/pull/24894#discussion_r1286152715


##########
superset/daos/chart.py:
##########
@@ -41,16 +41,14 @@ class ChartDAO(BaseDAO[Slice]):
 
     @classmethod
     def delete(cls, items: Slice | list[Slice], commit: bool = True) -> None:
-        item_ids = [item.id for item in get_iterable(items)]

Review Comment:
   I didn't do this here because of this logic which is specific to charts:
   ```
   for item in get_iterable(items):
       item.dashboards = []
       db.session.merge(item)
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to