You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by dp...@apache.org on 2023/06/16 14:14:40 UTC
[superset] branch master updated: fix: FE call to changed recent_activity endpoint (#24420)
This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 62364a4b15 fix: FE call to changed recent_activity endpoint (#24420)
62364a4b15 is described below
commit 62364a4b1506d2a51f5b266dffee9e19b6becfb1
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Fri Jun 16 15:14:32 2023 +0100
fix: FE call to changed recent_activity endpoint (#24420)
---
superset-frontend/src/features/home/ActivityTable.tsx | 2 +-
superset-frontend/src/pages/Home/index.tsx | 2 +-
superset-frontend/src/profile/components/RecentActivity.tsx | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/superset-frontend/src/features/home/ActivityTable.tsx b/superset-frontend/src/features/home/ActivityTable.tsx
index 22a6f597c6..cd38c021f8 100644
--- a/superset-frontend/src/features/home/ActivityTable.tsx
+++ b/superset-frontend/src/features/home/ActivityTable.tsx
@@ -36,7 +36,7 @@ import EmptyState from './EmptyState';
import { WelcomeTable } from './types';
/**
- * Return result from /api/v1/log/recent_activity/{user_id}/
+ * Return result from /api/v1/log/recent_activity/
*/
interface RecentActivity {
action: string;
diff --git a/superset-frontend/src/pages/Home/index.tsx b/superset-frontend/src/pages/Home/index.tsx
index 21217ae3b1..00124eac7c 100644
--- a/superset-frontend/src/pages/Home/index.tsx
+++ b/superset-frontend/src/pages/Home/index.tsx
@@ -160,7 +160,7 @@ function Welcome({ user, addDangerToast }: WelcomeProps) {
const userid = user.userId;
const id = userid!.toString(); // confident that user is not a guest user
const params = rison.encode({ page_size: 6 });
- const recent = `/api/v1/log/recent_activity/${user.userId}/?q=${params}`;
+ const recent = `/api/v1/log/recent_activity/?q=${params}`;
const [activeChild, setActiveChild] = useState('Loading');
const userKey = dangerouslyGetItemDoNotUse(id, null);
let defaultChecked = false;
diff --git a/superset-frontend/src/profile/components/RecentActivity.tsx b/superset-frontend/src/profile/components/RecentActivity.tsx
index 975d8cb3dd..2810fb3544 100644
--- a/superset-frontend/src/profile/components/RecentActivity.tsx
+++ b/superset-frontend/src/profile/components/RecentActivity.tsx
@@ -48,7 +48,7 @@ export default function RecentActivity({ user }: RecentActivityProps) {
className="table-condensed"
mutator={mutator}
sortable
- dataEndpoint={`/api/v1/log/recent_activity/${user?.userId}/?q=${params}`}
+ dataEndpoint={`/api/v1/log/recent_activity/?q=${params}`}
noDataText={t('No Data')}
/>
</div>