You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ms...@apache.org on 2025/08/13 12:13:34 UTC

(superset) branch msyavuz/fix/code-for-rls-update created (now df225e3943)

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

msyavuz pushed a change to branch msyavuz/fix/code-for-rls-update
in repository https://gitbox.apache.org/repos/asf/superset.git


      at df225e3943 fix(row_level_security): Correct api response code for update

This branch includes the following new commits:

     new df225e3943 fix(row_level_security): Correct api response code for update

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: fix(row_level_security): Correct api response code for update

Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

msyavuz pushed a commit to branch msyavuz/fix/code-for-rls-update
in repository https://gitbox.apache.org/repos/asf/superset.git

commit df225e39435e8cdbb2cff6d533a05a6f325e78ca
Author: Mehmet Salih Yavuz <sa...@proton.me>
AuthorDate: Wed Aug 13 15:12:19 2025 +0300

    fix(row_level_security): Correct api response code for update
---
 superset/row_level_security/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/row_level_security/api.py b/superset/row_level_security/api.py
index 24e9dd4935..6d9c2e1d05 100644
--- a/superset/row_level_security/api.py
+++ b/superset/row_level_security/api.py
@@ -285,7 +285,7 @@ class RLSRestApi(BaseSupersetModelRestApi):
 
         try:
             new_model = UpdateRLSRuleCommand(pk, item).run()
-            return self.response(201, id=new_model.id, result=item)
+            return self.response(200, id=new_model.id, result=item)
         except RolesNotFoundValidationError as ex:
             logger.error(
                 "Role not found while updating RLS rule %s: %s",