villebro commented on code in PR #22328:
URL: https://github.com/apache/superset/pull/22328#discussion_r1039682385


##########
superset/models/slice.py:
##########
@@ -344,6 +341,12 @@ def get_query_context_factory(self) -> QueryContextFactory:
             self.query_context_factory = QueryContextFactory()
         return self.query_context_factory
 
+    @classmethod
+    def get(cls, id_: int) -> Slice:
+        session = db.session()
+        qry = session.query(Slice).filter_by(id=id_)
+        return qry.one_or_none()

Review Comment:
   There is a similar method in `Dashboard` that bypasses the base filter



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