https://supabase.com/ logo
Join Discord
Powered by
# ideas-and-suggestions
  • d

    DharmaraJ

    07/30/2021, 1:38 PM
    Thank you 🙂
  • j

    jonny

    07/30/2021, 1:38 PM
    I think they'll be saved at a project level to begin with, and then we'll work in other scopes for user (private) and organization over time
  • e

    ehesp

    07/30/2021, 1:40 PM
    @User nice - yep saved scopes would be great too. Not sure if you've seen BigQuery on GCP but they have a similar setup which is quite nice.
  • j

    jonny

    07/30/2021, 2:25 PM
    nice! some of us will be familiar with it, I personally can't remember - we'll check it out again though
  • d

    Deleted User

    07/30/2021, 3:35 PM
    Looking for some inspiration on project ideas, what are y’all building with supabase ⚡️
    s
    r
    • 3
    • 4
  • g

    ganeshaha

    07/31/2021, 10:03 AM
    Hi, I would like to suggest the option of having Anonymous login for authentication guest user. It will be really helpful to have this for my project.
  • s

    Sucipto

    07/31/2021, 1:03 PM
    Already asked here https://github.com/supabase/gotrue/issues/170
  • f

    Flyken

    07/31/2021, 6:37 PM
    disable email/password login when auth providers are in use
    s
    • 2
    • 12
  • f

    Flyken

    07/31/2021, 10:10 PM
    Allow users to "link" accounts, for example, log in with google, link discord, sign in with discord, same account.
    b
    s
    • 3
    • 13
  • h

    http418

    07/31/2021, 11:04 PM
    NoSQL
    b
    • 2
    • 1
  • s

    Scott P

    07/31/2021, 11:29 PM
    CORS support - details in thread
    • 1
    • 2
  • b

    burggraf

    08/01/2021, 5:12 PM
    Link Accounts
  • k

    Khan W

    08/01/2021, 5:13 PM
    A read-only URL and Key for writing tests for packages. Similar to Stripe, which has a test key and URL you can use to initiate a test checkout. This would be useful for making more standard tests for Supabase libraries without having to create a new project for each one, and worry about security etc for keys that may be public on GitHub.
    s
    s
    • 3
    • 6
  • b

    burggraf

    08/01/2021, 5:15 PM
    NoSQL
  • c

    cdedreuille

    08/01/2021, 9:36 PM
    I wish there was a way to easily upgrade a project to the latest set up. It feels a bit as if I had to have a new iPhone every time there’s an iOS update.
  • s

    silentworks

    08/01/2021, 9:42 PM
    Supabase is still in beta and this should be expected at times, I'm sure the team is working on making this process easier in the future.
  • w

    wiverson

    08/02/2021, 12:32 AM
    I'm using a Java backend. Looks like the easier way to do auth is to use the vanilla JS example as a starting point for auth and then set cookies to send back to the Java server.
  • w

    wiverson

    08/02/2021, 12:33 AM
    Here's a gist of my adapted vanilla JS script: https://gist.github.com/wiverson/615a31b0ac9c85ee698ba164f0b30eb1
  • w

    wiverson

    08/02/2021, 12:34 AM
    If I'm reading it all right, the supabase auth JS will refresh the auth tokens as the user browses, and then I can use the cookie-sent tokens to validate on the server as needed...?
  • f

    frubalu

    08/02/2021, 2:50 PM
    Idea: I'd like to see a simpler API for accessing table relationships. Currently I have a query that looks like this:
    Copy code
    const { data: pack, error: packError } = await supabase
          .from('trip_packs')
          .select(
            `
              pack:pack_id(*, categories(*, category_items(*), items(*))) 
            `
          )
          .match({ trip_id: tripId, user_id: me.id });
    As you can see, it's a fairly complicated select method, trying to access data several relationships deep. It could be cool to do something like Prisma, which looks like this:
    Copy code
    const getUser = await prisma.user.findUnique({
      where: {
        id: 19,
      },
      include: {
        posts: true,
      },
    })
    ^ a user's posts are included. Or even better (I come from a Rails background), the ability to set up eager loading relationships. So in my first example, I would just query for a Pack, and all of the nested categories and items would automatically be included in the query. Thanks for coming to my Ted Talk!
  • k

    Kosh

    08/02/2021, 3:13 PM
    Supabase uses postgrest underneath, you could use any other PostgreSQL client that could serve you better. For me personally, I went with procedure functions to do complex queries and return only data I need.
  • f

    frubalu

    08/02/2021, 3:22 PM
    ah interesting, so the api for a
    .select()
    actually comes from Postgrest and not Supabase?
  • s

    Scott P

    08/02/2021, 3:43 PM
    All of the query requests sent by the library are routed through Postgrest.
    .subscribe()
    is a little different, but essentially the initial query routes through Postgrest, and then connects to the realtime server to handle listening for changes. Auth ones are routed through GoTrue. In all cases, they all go through the Kong server.
  • f

    frubalu

    08/02/2021, 3:44 PM
    so theoretically, making the .select() api more "user friendly" on the supabase side of things is possible?
    s
    • 2
    • 2
  • f

    frubalu

    08/02/2021, 9:46 PM
    Another idea: a "duplicate row" button could be helpful for the table editor dashboard UI. As I'm developing a new application, I keep having to copy values to a text document, create a new row, then insert all of those values with minor changes to the new row
  • k

    Khan W

    08/02/2021, 9:58 PM
    Is there any reason behind the decision to use shortened words for the modifier syntax? Eg: why use
    .eq
    when
    .equal
    would be more user friendly and easy to read and pick up. If there isn’t, I’d ask for adding the long names alongside the short ones
  • f

    fergus

    08/02/2021, 11:53 PM
    I use DataGrip to query and manipulate the database. It does a brilliant job. So for example if a query is complex I’ll build it as a view in DataGrip and then have a simple query in Supabase-JS. Everything comes out flat in a single table row but if you rename your columns with strings like this: users.name AS “user.name” then use unflatten https://www.npmjs.com/package/flat to create nested JS objects
  • f

    frubalu

    08/02/2021, 11:55 PM
    Sounds cool! Is this in reference to my other post about nested relationship queries?
  • f

    fergus

    08/02/2021, 11:55 PM
    I use merge and groupBy from Lodash to deal with many to many join-table queries which usually return many rows which should be grouped into single JS object
  • f

    fergus

    08/02/2021, 11:57 PM
    Yeah and just in general because this is an ideas thread and I went through a period of thinking the Supabase team need to be building a better way to manipulate the database. But now I think actually there are really mature tools for that already so maybe we would prefer them to focus on Supabase specific tooling.
1...678...32Latest