-
Notifications
You must be signed in to change notification settings - Fork 15.8k
feat(database): Adding per-user caching option in Security tab #34842
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
feat(database): Adding per-user caching option in Security tab #34842
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #34842 +/- ##
===========================================
+ Coverage 0 71.91% +71.91%
===========================================
Files 0 587 +587
Lines 0 43464 +43464
Branches 0 4698 +4698
===========================================
+ Hits 0 31259 +31259
- Misses 0 10978 +10978
- Partials 0 1227 +1227
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…andrusoare/feat/cache-per-user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Repeated JSON parsing in cache_key method ▹ view | 🧠 Not in scope |
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/features/databases/types.ts | ✅ |
superset/common/query_object.py | ✅ |
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx | ✅ |
superset/databases/schemas.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
# the database | ||
try: | ||
database = self.datasource.database # type: ignore | ||
extra = json.loads(database.extra or "{}") |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a database migration? I guess not since this is for json validation only
🎪 Showtime deployed environment on GHA for e5fd71c • Environment: http://34.220.167.212:8080 (admin/admin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…andrusoare/feat/cache-per-user
🎪 Showtime deployed environment on GHA for 3f98bce • Environment: http://54.190.191.133:8080 (admin/admin) |
…andrusoare/feat/cache-per-user
SUMMARY
per_user_caching
flag at the database levelCACHE_QUERY_BY_USER
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE
AFTER
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION