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:
Evan Rusackas
2026-08-11 19:35:40 -07:00
committed by GitHub
co-authored by Amin Ghadersohi Claude Opus 4.8
parent a0099af88f
commit d570335f67
8 changed files with 434 additions and 20 deletions
@@ -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