You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/04/04 08:22:18 UTC

[superset] 09/24: fix(dashboard): make to show the correct owned objects (#19372)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to tag 1.5.0rc1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit e93d64d58e36763757974a1f7a66ba90803e9f7a
Author: smileydev <47...@users.noreply.github.com>
AuthorDate: Thu Mar 31 10:10:21 2022 -0400

    fix(dashboard): make to show the correct owned objects (#19372)
    
    * 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 6d89ffbcb7533dc04093a66852aab26db0b5bc11)
---
 superset-frontend/src/views/CRUD/utils.tsx           | 4 ++--
 superset-frontend/src/views/CRUD/welcome/Welcome.tsx | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/superset-frontend/src/views/CRUD/utils.tsx b/superset-frontend/src/views/CRUD/utils.tsx
index 6606fd459f..3449d764ab 100644
--- a/superset-frontend/src/views/CRUD/utils.tsx
+++ b/superset-frontend/src/views/CRUD/utils.tsx
@@ -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}`,
     },
   ],
diff --git a/superset-frontend/src/views/CRUD/welcome/Welcome.tsx b/superset-frontend/src/views/CRUD/welcome/Welcome.tsx
index a1f7707a23..056e02e8f6 100644
--- a/superset-frontend/src/views/CRUD/welcome/Welcome.tsx
+++ b/superset-frontend/src/views/CRUD/welcome/Welcome.tsx
@@ -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}`,
       },
     ];