This is an automated email from the ASF dual-hosted git repository. villebro pushed a commit to branch 1.3 in repository https://gitbox.apache.org/repos/asf/superset.git
commit a9298ecb9ea9d077866753a8f418bfb2207e32b6 Author: Phillip Kelley-Dotson <[email protected]> AuthorDate: Tue Aug 10 19:53:47 2021 -0700 fix: ensure created user entities do not show inside examples (#16176) * initial commit * fix lint * Update superset-frontend/src/views/CRUD/utils.tsx Co-authored-by: Evan Rusackas <[email protected]> * Update superset-frontend/src/views/CRUD/utils.tsx Co-authored-by: Evan Rusackas <[email protected]> * Update superset-frontend/src/views/CRUD/utils.tsx Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> (cherry picked from commit a0c9b9d9c2f617b638e29b8611c4cb9b3ca3d3a9) --- superset-frontend/src/views/CRUD/types.ts | 2 +- superset-frontend/src/views/CRUD/utils.tsx | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/views/CRUD/types.ts b/superset-frontend/src/views/CRUD/types.ts index c7e47dd..d08ca46 100644 --- a/superset-frontend/src/views/CRUD/types.ts +++ b/superset-frontend/src/views/CRUD/types.ts @@ -32,7 +32,7 @@ export enum TableTabTypes { export type Filters = { col: string; opr: string; - value: string; + value: string | number; }; export interface DashboardTableProps { diff --git a/superset-frontend/src/views/CRUD/utils.tsx b/superset-frontend/src/views/CRUD/utils.tsx index 123a44d..54d10e7 100644 --- a/superset-frontend/src/views/CRUD/utils.tsx +++ b/superset-frontend/src/views/CRUD/utils.tsx @@ -132,10 +132,19 @@ export const getRecentAcitivtyObjs = ( ) => SupersetClient.get({ endpoint: recent }).then(recentsRes => { const res: any = {}; + const filters = [ + { + col: 'created_by', + opr: 'rel_o_m', + value: 0, + }, + ]; const newBatch = [ - SupersetClient.get({ endpoint: `/api/v1/chart/?q=${getParams()}` }), SupersetClient.get({ - endpoint: `/api/v1/dashboard/?q=${getParams()}`, + endpoint: `/api/v1/chart/?q=${getParams(filters)}`, + }), + SupersetClient.get({ + endpoint: `/api/v1/dashboard/?q=${getParams(filters)}`, }), ]; return Promise.all(newBatch)
