This is an automated email from the ASF dual-hosted git repository.
diegopucci 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 31ac3898ad fix(list roles): dont send invalid querystrings (#33060)
31ac3898ad is described below
commit 31ac3898ad3026886fa124ad378775984d8b2658
Author: Landry Breuil <[email protected]>
AuthorDate: Wed Apr 9 22:25:20 2025 +0200
fix(list roles): dont send invalid querystrings (#33060)
---
superset-frontend/src/pages/RolesList/index.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/src/pages/RolesList/index.tsx
b/superset-frontend/src/pages/RolesList/index.tsx
index be97427bd2..cc2bcc3a4d 100644
--- a/superset-frontend/src/pages/RolesList/index.tsx
+++ b/superset-frontend/src/pages/RolesList/index.tsx
@@ -114,7 +114,7 @@ function RolesList({ addDangerToast, addSuccessToast, user
}: RolesListProps) {
const fetchPage = async (pageIndex: number) => {
const response = await SupersetClient.get({
- endpoint:
`api/v1/security/permissions-resources/?q={"page_size":${pageSize},
"page":${pageIndex}}`,
+ endpoint:
`api/v1/security/permissions-resources/?q=(page_size:${pageSize},page:${pageIndex})`,
});
return {
@@ -163,7 +163,7 @@ function RolesList({ addDangerToast, addSuccessToast, user
}: RolesListProps) {
const fetchPage = async (pageIndex: number) => {
const response = await SupersetClient.get({
- endpoint:
`api/v1/security/users/?q={"page_size":${pageSize},"page":${pageIndex}}`,
+ endpoint:
`api/v1/security/users/?q=(page_size:${pageSize},page:${pageIndex})`,
});
return response.json;
};