You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by la...@apache.org on 2026/01/14 11:39:11 UTC

(gravitino) branch antdUI-gravitino-base1.1.0 updated: [#9644] support update role

This is an automated email from the ASF dual-hosted git repository.

lauraxia pushed a commit to branch antdUI-gravitino-base1.1.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/antdUI-gravitino-base1.1.0 by this push:
     new 69c71c83a6 [#9644] support update role
69c71c83a6 is described below

commit 69c71c83a6dda0e409360e84ffab289e6a256330
Author: Qian Xia <qi...@datastrato.com>
AuthorDate: Wed Jan 14 19:38:53 2026 +0800

    [#9644] support update role
---
 web/web/src/app/access/roles/CreateRoleDialog.js | 2 +-
 web/web/src/lib/api/roles/index.js               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/web/src/app/access/roles/CreateRoleDialog.js b/web/web/src/app/access/roles/CreateRoleDialog.js
index 03ac8872de..cb40eb365b 100644
--- a/web/web/src/app/access/roles/CreateRoleDialog.js
+++ b/web/web/src/app/access/roles/CreateRoleDialog.js
@@ -175,7 +175,7 @@ export default function CreateRoleDialog({ ...props }) {
             })
         }
         if (editRole) {
-          const reqData = { updates: submitData.securableObjects }
+          const reqData = { overrides: submitData.securableObjects }
           await dispatch(updateRolePrivileges({ metalake, role: editRole, data: reqData }))
         } else {
           await dispatch(createRole({ metalake, data: submitData }))
diff --git a/web/web/src/lib/api/roles/index.js b/web/web/src/lib/api/roles/index.js
index 38f07faed2..a8b170fb29 100644
--- a/web/web/src/lib/api/roles/index.js
+++ b/web/web/src/lib/api/roles/index.js
@@ -25,7 +25,7 @@ const Apis = {
     `/api/metalakes/${encodeURIComponent(metalake)}/roles/${encodeURIComponent(role)}`,
   CREATE: ({ metalake }) => `/api/metalakes/${encodeURIComponent(metalake)}/roles`,
   UPDATE: ({ metalake, role }) =>
-    `/api/web/security/metalakes/${encodeURIComponent(metalake)}/roles/${encodeURIComponent(role)}`,
+    `/api/metalakes/${encodeURIComponent(metalake)}/permissions/roles/${encodeURIComponent(role)}`,
   DELETE: ({ metalake, role }) => `/api/metalakes/${encodeURIComponent(metalake)}/roles/${encodeURIComponent(role)}`,
   GRANT_PRIVILEGE: ({ metalake, role, metadataObjectType, metadataObjectFullName }) =>
     `/api/metalakes/${encodeURIComponent(metalake)}/permissions/roles/${encodeURIComponent(role)}/${encodeURIComponent(metadataObjectType)}/${encodeURIComponent(metadataObjectFullName)}/grant`,