mirror of
https://github.com/apache/superset.git
synced 2026-09-05 23:12:01 +00:00
fix: bind permission-sync task to user id, use per-user RLS cache sentinel on parse failure (#42938)
Co-authored-by: Amin Ghadersohi <amin.ghadersohi@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Amin Ghadersohi
Claude Opus 4.8
parent
a0099af88f
commit
d570335f67
@@ -4608,8 +4608,9 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
assert rv.status_code == 202
|
||||
response = json.loads(rv.data.decode("utf-8"))
|
||||
assert response == {"message": "Async task created to sync permissions"}
|
||||
admin_user = security_manager.find_user(username=ADMIN_USERNAME)
|
||||
mock_task.assert_called_once_with(
|
||||
test_database.id, ADMIN_USERNAME, test_database.database_name
|
||||
test_database.id, admin_user.id, test_database.database_name
|
||||
)
|
||||
|
||||
# Cleanup
|
||||
|
||||
Reference in New Issue
Block a user