feat: add name, description and non null tables to RLS (#20432)

* feat: add name, description and non null tables to RLS

* add validation

* add and fix tests

* fix sqlite migration

* improve default value for name
This commit is contained in:
Daniel Vaz Gaspar
2022-06-20 13:52:05 +01:00
committed by GitHub
parent 8b0bee5e8b
commit 60eb1094a4
5 changed files with 215 additions and 8 deletions

View File

@@ -186,6 +186,7 @@ def test_sql_lab_insert_rls(
# now with RLS
rls = RowLevelSecurityFilter(
name="sqllab_rls1",
filter_type=RowLevelSecurityFilterType.REGULAR,
tables=[SqlaTable(database_id=1, schema=None, table_name="t")],
roles=[admin.roles[0]],