Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use RLS clause instead of ID for cache key #25229

Merged
Prev Previous commit
Oops
  • Loading branch information
jfrag1 committed Sep 18, 2023
commit 1db0ae68033090feea390effaa656003d93cabed
2 changes: 1 addition & 1 deletion superset/security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@ def get_guest_rls_filters_str(self, table: "BaseDatasource") -> list[str]:
return [f.get("clause", "") for f in self.get_guest_rls_filters(table)]

def get_rls_cache_key(self, datasource: "BaseDatasource") -> list[str]:
rls_clauses = []
rls_clauses_with_group_key = []
if datasource.is_rls_supported:
rls_clauses_with_group_key = [
f"{f.clause}-{f.group_key or ''}"
Expand Down