mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(dao): Replace save/overwrite with create/update respectively (#24467)
This commit is contained in:
@@ -39,13 +39,11 @@ class CreateRLSRuleCommand(BaseCommand):
|
||||
def run(self) -> Any:
|
||||
self.validate()
|
||||
try:
|
||||
rule = RLSDAO.create(self._properties)
|
||||
return RLSDAO.create(attributes=self._properties)
|
||||
except DAOCreateFailedError as ex:
|
||||
logger.exception(ex.exception)
|
||||
raise ex
|
||||
|
||||
return rule
|
||||
|
||||
def validate(self) -> None:
|
||||
roles = populate_roles(self._roles)
|
||||
tables = (
|
||||
|
||||
Reference in New Issue
Block a user