Skip to content

Commit

Permalink
fix(dashboard): make to show the correct owned objects (#19372)
Browse files Browse the repository at this point in the history
* fix(dashboard): make to show the correct owned objects

* fix(dashboard): make to filter is reusable

* fix(homepage): make sure the type Array<Filters>

* fix(homepage): make to display dashboard correctly by owners

(cherry picked from commit 6d89ffb)
  • Loading branch information
prosdev0107 authored and villebro committed Apr 4, 2022
1 parent 3c09690 commit e93d64d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/views/CRUD/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export const getUserOwnedObjects = (
resource: string,
filters: Array<Filters> = [
{
col: 'created_by',
opr: 'rel_o_m',
col: 'owners',
opr: 'rel_m_m',
value: `${userId}`,
},
],
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/views/CRUD/welcome/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ function Welcome({ user, addDangerToast }: WelcomeProps) {
// Sets other activity data in parallel with recents api call
const ownSavedQueryFilters = [
{
col: 'owners',
opr: 'rel_m_m',
col: 'created_by',
opr: 'rel_o_m',
value: `${id}`,
},
];
Expand Down

0 comments on commit e93d64d

Please sign in to comment.