mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
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 <evan@preset.io> * Update superset-frontend/src/views/CRUD/utils.tsx Co-authored-by: Evan Rusackas <evan@preset.io> * Update superset-frontend/src/views/CRUD/utils.tsx Co-authored-by: Evan Rusackas <evan@preset.io> Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
parent
6df16c4b1f
commit
a0c9b9d9c2
@ -32,7 +32,7 @@ export enum TableTabTypes {
|
||||
export type Filters = {
|
||||
col: string;
|
||||
opr: string;
|
||||
value: string;
|
||||
value: string | number;
|
||||
};
|
||||
|
||||
export interface DashboardTableProps {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user