Skip to content

Conversation

alexandrusoare
Copy link
Contributor

SUMMARY

  • Added new "Per user caching" checkbox in the Database modal (Security section)
  • Reordered fields in the Security section: checkboxes appear at the top, text fields at the bottom
  • Introduced new per_user_caching flag at the database level
  • Effective per-user caching now uses OR logic with the global feature flag CACHE_QUERY_BY_USER

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE

image

AFTER

image

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

korbit-ai bot commented Aug 25, 2025

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 /korbit-review.

Your admin can change your review schedule in the Korbit Console

Copy link

codecov bot commented Aug 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.91%. Comparing base (4130b92) to head (758625d).
⚠️ Report is 2 commits behind head on master.

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     
Flag Coverage Δ
hive 46.29% <50.00%> (?)
mysql 70.94% <100.00%> (?)
postgres 70.99% <100.00%> (?)
presto 49.98% <100.00%> (?)
python 71.88% <100.00%> (?)
sqlite 70.59% <100.00%> (?)
unit 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexandrusoare alexandrusoare marked this pull request as ready for review September 15, 2025 08:13
@dosubot dosubot bot added change:frontend Requires changing the frontend data:databases Related to database configurations and connections labels Sep 15, 2025
Copy link

@korbit-ai korbit-ai bot left a 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
Performance 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.

Loving Korbit!? Share us on LinkedIn Reddit and X

# the database
try:
database = self.datasource.database # type: ignore
extra = json.loads(database.extra or "{}")

This comment was marked as resolved.

Copy link
Member

@msyavuz msyavuz left a 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

@msyavuz msyavuz added the 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR label Sep 16, 2025
@github-actions github-actions bot added 🎪 e5fd71c 🚦 building Environment e5fd71c status: building 🎪 e5fd71c 📅 2025-09-16T14-27 Environment e5fd71c created at 2025-09-16T14-27 🎪 e5fd71c ⌛ 24h Environment e5fd71c expires after 24h 🎪 e5fd71c 🤡 msyavuz Environment e5fd71c requested by msyavuz and removed 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR labels Sep 16, 2025
Copy link
Contributor

🎪 Showtime is building environment on GHA for e5fd71c

@github-actions github-actions bot added 🎪 e5fd71c 🚦 deploying Environment e5fd71c status: deploying 🎪 e5fd71c 🚦 running Environment e5fd71c status: running 🎪 🎯 e5fd71c Active environment pointer - e5fd71c is receiving traffic 🎪 e5fd71c 🌐 34.220.167.212:8080 Environment e5fd71c URL: http://34.220.167.212:8080 (click to visit) and removed 🎪 e5fd71c 🚦 building Environment e5fd71c status: building 🎪 e5fd71c 🚦 deploying Environment e5fd71c status: deploying 🎪 e5fd71c 🚦 running Environment e5fd71c status: running 🎪 🎯 e5fd71c Active environment pointer - e5fd71c is receiving traffic labels Sep 16, 2025
Copy link
Contributor

🎪 Showtime deployed environment on GHA for e5fd71c

Environment: http://34.220.167.212:8080 (admin/admin)
Lifetime: 24h auto-cleanup
Updates: New commits create fresh environments automatically

@msyavuz msyavuz self-requested a review September 16, 2025 17:30
Copy link
Member

@msyavuz msyavuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mistercrunch mistercrunch added the 🎪 🎯 e5fd71c Active environment pointer - e5fd71c is receiving traffic label Sep 18, 2025
@github-actions github-actions bot added 🎪 3f98bce 🚦 building Environment 3f98bce status: building 🎪 3f98bce 📅 2025-09-18T05-36 Environment 3f98bce created at 2025-09-18T05-36 🎪 3f98bce ⌛ 24h Environment 3f98bce expires after 24h 🎪 3f98bce 🤡 mistercrunch Environment 3f98bce requested by mistercrunch labels Sep 18, 2025
Copy link
Contributor

🎪 Showtime is building environment on GHA for 3f98bce

@github-actions github-actions bot added 🎪 3f98bce 🚦 deploying Environment 3f98bce status: deploying 🎪 3f98bce 🚦 running Environment 3f98bce status: running 🎪 🎯 3f98bce Active environment pointer - 3f98bce is receiving traffic 🎪 3f98bce 📅 2025-09-18T05-37 Environment 3f98bce created at 2025-09-18T05-37 🎪 3f98bce 🌐 54.190.191.133:8080 Environment 3f98bce URL: http://54.190.191.133:8080 (click to visit) and removed 🎪 3f98bce 🚦 building Environment 3f98bce status: building 🎪 3f98bce 🚦 deploying Environment 3f98bce status: deploying 🎪 🎯 e5fd71c Active environment pointer - e5fd71c is receiving traffic 🎪 3f98bce 🚦 running Environment 3f98bce status: running 🎪 🎯 3f98bce Active environment pointer - 3f98bce is receiving traffic 🎪 3f98bce 📅 2025-09-18T05-36 Environment 3f98bce created at 2025-09-18T05-36 🎪 e5fd71c 🚦 running Environment e5fd71c status: running 🎪 e5fd71c 🌐 34.220.167.212:8080 Environment e5fd71c URL: http://34.220.167.212:8080 (click to visit) 🎪 e5fd71c ⌛ 24h Environment e5fd71c expires after 24h 🎪 e5fd71c 🤡 msyavuz Environment e5fd71c requested by msyavuz 🎪 e5fd71c 📅 2025-09-16T14-27 Environment e5fd71c created at 2025-09-16T14-27 labels Sep 18, 2025
Copy link
Contributor

🎪 Showtime deployed environment on GHA for 3f98bce

Environment: http://54.190.191.133:8080 (admin/admin)
Lifetime: 24h auto-cleanup
Updates: New commits create fresh environments automatically

@msyavuz msyavuz merged commit 5901320 into apache:master Sep 19, 2025
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:frontend Requires changing the frontend data:databases Related to database configurations and connections 🎪 🔒 showtime-blocked size/L 🎪 3f98bce 🤡 mistercrunch Environment 3f98bce requested by mistercrunch 🎪 3f98bce 🚦 running Environment 3f98bce status: running 🎪 3f98bce ⌛ 24h Environment 3f98bce expires after 24h 🎪 3f98bce 🌐 54.190.191.133:8080 Environment 3f98bce URL: http://54.190.191.133:8080 (click to visit) 🎪 3f98bce 📅 2025-09-18T05-37 Environment 3f98bce created at 2025-09-18T05-37
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants