Skip to content

Commit

Permalink
fix(chore): dashboard requests to database equal the number of slices…
Browse files Browse the repository at this point in the history
… it has (#24709)

(cherry picked from commit 75a7431)
  • Loading branch information
Always-prog authored and michael-s-molina committed Oct 31, 2023
1 parent 315e758 commit 8483ab6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions superset/daos/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def get_by_id_or_slug(cls, id_or_slug: int | str) -> Dashboard:
query = (
db.session.query(Dashboard)
.filter(id_or_slug_filter(id_or_slug))
.outerjoin(Slice, Dashboard.slices)
.outerjoin(Slice.table)
.outerjoin(Dashboard.owners)
.outerjoin(Dashboard.roles)
)
Expand Down

0 comments on commit 8483ab6

Please sign in to comment.