Skip to content

Table View Editor for Creating View instead of table #2393

Closed

Description

@sandbox-apps

Feature request

Right now we only have Table Editor for concrete tables so we can directly view the data in supabase

Is your feature request related to a problem? Please describe.

Problem is we do not have table view editor for VIEWS.
Typically we want to create complex table query like relationship, but doesn't scale well in the frontend code where you will add this complex queries to your code. So the solution is to create a custom view and add that SQL query so in the client side the complexity has been abstract.

Describe the solution you'd like

Add a view editor page like table editor so we can view the output and navigate with paginate just like the table editor page.
We can also add a form page to create a view so we don't bloat the SQL page with different kinds of SQL Commands

Activity

  1. added
    enhancement
    on Jul 16, 2021
  2. sandbox-apps commented on Jul 16, 2021

    @sandbox-apps
    Author

    And add a snippet for client side just like the snippet suggested for normal tables :D

  3. awalias commented on Jul 16, 2021

    @awalias
    Member

    Add a view editor page like table editor so we can view the output and navigate with paginate just like the table editor page.

    this one we already have

    image

    however as you mention, it is not yet possible to edit the view from the table editor, only read

  4. sandbox-apps commented on Jul 16, 2021

    @sandbox-apps
    Author

    Supabase is ultra fine even for beta <3

  5. nuurcodes commented on Feb 27, 2022

    @nuurcodes

    Would be nice to be able to add RLS on views through the UI

  6. added
    frontend
    on Sep 26, 2022
  7. activenode commented on Oct 23, 2022

    @activenode
    Contributor

    @nuurcodes RLS cannot be addet to Views as to my knowledge - within supabase ATM.

    I tried the proposed one here but it doesn't let me apply it https://www.cybertec-postgresql.com/en/view-permissions-and-row-level-security-in-postgresql/

    That means any View will be public even if it is using protected data.

  8. dxrsz commented on Jan 29, 2023

    @dxrsz

    Short of a full view editor, it would be cool if there was just a pane when you open a view that displayed the output from:

    SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS
       WHERE TABLE_NAME = '$current_view'
    
  9. MildTomato commented on Jun 14, 2023

    @MildTomato
    Member

    We've discussed this a few times and I think we ultimately figured that it would not make sense to have a GUI for editing/creating a view, but rather you write SQL for it.

    We could still provide some UI to help do this though, and make it easy, give prompts/hints on how to create and edit views.

  10. locked and limited conversation to collaborators on Aug 28, 2023
  11. converted this issue into a discussion #16919 on Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions