rusackas commented on a change in pull request #16176:
URL: https://github.com/apache/superset/pull/16176#discussion_r686386748
##########
File path: superset-frontend/src/views/CRUD/utils.tsx
##########
@@ -132,10 +132,21 @@ export const getRecentAcitivtyObjs = (
) =>
SupersetClient.get({ endpoint: recent }).then(recentsRes => {
const res: any = {};
+ const filters = {
+ examples: [
+ {
+ col: 'created_by',
+ opr: 'rel_o_m',
+ value: 0,
+ },
+ ],
+ };
Review comment:
```suggestion
const filters = [
{
col: 'created_by',
opr: 'rel_o_m',
value: 0,
},
];
```
##########
File path: superset-frontend/src/views/CRUD/utils.tsx
##########
@@ -132,10 +132,21 @@ export const getRecentAcitivtyObjs = (
) =>
SupersetClient.get({ endpoint: recent }).then(recentsRes => {
const res: any = {};
+ const filters = {
+ examples: [
+ {
+ 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.examples)}`,
+ }),
+ SupersetClient.get({
+ endpoint: `/api/v1/dashboard/?q=${getParams(filters.examples)}`,
Review comment:
```suggestion
endpoint: `/api/v1/dashboard/?q=${getParams(filters)}`,
```
##########
File path: superset-frontend/src/views/CRUD/utils.tsx
##########
@@ -132,10 +132,21 @@ export const getRecentAcitivtyObjs = (
) =>
SupersetClient.get({ endpoint: recent }).then(recentsRes => {
const res: any = {};
+ const filters = {
+ examples: [
+ {
+ 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.examples)}`,
Review comment:
```suggestion
endpoint: `/api/v1/chart/?q=${getParams(filters)}`,
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]