Update to the UI for RLS policies
We've been looking into improving the UX for the RLS policy UI after going through feedback of the community's struggles with RLS in general, and this is the next step that we're taking to streamline the UX.
What we're calling as a "hybrid" editor (for now), you'll be able to see the corresponding SQL query for creating or updating your RLS policies while you're editing the policy via the input fields. And if you'd like even greater control, there's always the "Open in SQL Editor" button as an escape hatch where you can edit the SQL query in its entirety.
Templates are now right beside the editor as well, so you no longer have to click back and forth between templates and the editor.
We've always seen the dashboard as more than just a database adminstration tool, but also potentially an educational platform for developers to pick up the SQL language as they build out their database, and we hope that the changes here will help make that even easier.
PR: https://github.com/supabase/supabase/pull/21806
Link: https://supabase.com/dashboard/project/_/auth/policies
Connection pooler on port 6543 is set to transaction mode permanently
Previously, connection pooler's port 6543 can be set to either transaction or session mode under your project's database settings. This change makes it easier to distinguish between pooler modes and ports by only enabling transaction mode on port 6543 while maintaining session mode on port 5432.
If your using port 6543 and your project's pooler mode is transaction then you won't be able to set the mode to session. You can use port 5432 for session mode.
If your using port 6543 and your project's pooler mode is session then we strongly advise that you use port 5432 for session mode and change the mode to transaction. Once this setting is saved you won't be able to set session mode on port 6543.
PR: https://github.com/supabase/supabase/pull/22150
Link: https://supabase.com/dashboard/project/_/settings/database#connection-pooler
Other improvements and bug fixes
[General]
- Home page connect modal fix broken link under pooler mode to Database Settings [PR]
- Fix toast messages to handle really long messages, and support closing them in such scenarios [PR]
[Auth]
- Fix applying table privileges to incorrect table if there any more than 1 table with the same name in different schemas [PR]
- Prevent updating RLS via GUI for tables under protected schemas [PR]
- Support updating column "is unique" when editing table in side panel [PR]
- Fix support NULL values when importing data via CSV text [PR]
- Ensure that table and column names are trimmed for whitespaces when saving [PR]
- Fix delete bucket modal styling when bucket name is long [PR]
- Fix deleting parent folder not deleting child folders despite child folders being empty [PR]
- Fix inability to manage foreign keys [PR]
- Validate enumerated types to ensure names do not conflict with native PG data type names [PR]
- Validate enumerated types to ensure names do not conflict with native PG data type names [PR]
- Fix Stripe foreign data wrapper to support selecting a rowid_column, addresses the issue of not being able to update stripe foreign tables [PR]