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

    HarryET

    10/28/2021, 9:48 PM
    https://twitter.com/TheHarryET/status/1453840983372750854?t=7DWe25mb8Br-H-ECeef0Lg&s=19
  • m

    madx

    10/28/2021, 10:51 PM
    Hello there! I'm using
    supabase-js
    and I found out that it would be great to have a way to convert the casing in responses (Postgres convention is
    snake_case
    Β  while JS's one is
    camelCase
    for example) to match the language's conventions. This is something that some ORMs provide, such as Objection https://vincit.github.io/objection.js/recipes/snake-case-to-camel-case-conversion.html In the meantime, I hacked a custom replacer using proxies:
    Copy code
    js
    function withCamelCase(builder) {
      return new Proxy(builder, {
        get: (target, prop, receiver) => {
          if (prop === "then") {
            return (...args) =>
              target
                .then((response) => ({
                  ...response,
                  data: camelCase(response.data, { deep: true }),
                }))
                .then(...args)
          }
    
          if (typeof target[prop] === "function") {
            return (...args) => withCamelCase(target[prop](...args))
          }
    
          return Reflect.get(target, prop, receiver)
        },
      })
    }
    
    export default () => {
      const client = createClient(SUPABASE_URL, SUPABASE_KEY)
    
      return withCamelCase(client)
    }
  • f

    florian-lefebvre

    11/01/2021, 3:30 PM
    On the 30 millions series a article I think there is a typo
  • f

    florian-lefebvre

    11/01/2021, 3:31 PM
    At the end of the 1st paragraph, I think it should be "small part of the SB vision"
  • g

    garyaustin

    11/02/2021, 12:59 AM
    I recommend a discord channel for those seeking individual paid (or free) help with their actual database (not just general guidance). A relational database may work fine for the first few months, but can quickly deteriorate in performance if there is not a understanding of query cost, indexing, etc. I think this is a topic ignored in the docs (in particular when to index), that will eventually bite a fast growing website started by someone without experience in RDB tuning. It is also hard to even know what questions to ask or answer in a discord chat. Of course maybe this is part of Supabase's plan for add on service and support down the road, then ignore the channel idea. Love the product so far.
  • c

    copple

    11/02/2021, 8:41 AM
    thanks for the suggestion Gary. We do actually have special support packages - we generally reach out to developers when we see their projects scaling up. We're still working on the support packages, but they generally hit the things you're asking for: - dedicated support staff - shared slack channel - help optimizing etc
  • u

    user

    11/03/2021, 3:22 AM
    Any chance to do purging for stored files in Supabase? Thanks ❀️
  • i

    Illia

    11/04/2021, 9:46 AM
    Hey, I wanted to check about Column Level Security - maybe you have some thoughts: in Firebase it's not possible to restrict what fields to return in a document unless you build a cloud function or something like that. What about Supabase? RLS looks great but the same issue I guess - how to restrict what columns can be returned? Only by building middleware or there are some other ways?
    c
    • 2
    • 12
  • c

    chipilov

    11/04/2021, 9:58 AM
    Column Level Security
  • d

    discoding

    11/08/2021, 7:44 AM
    I don't know if it's correct, but when I switch between tables in the table editor view, table data is getting fetched everytime when I switch to another table. I think this is bad UX. It'd better if
    useSWR
    is used for caching data. Just a thought πŸ™‚
  • m

    Mi3LiX9

    11/08/2021, 3:49 PM
    Hey, I have a suggestion, what do you think about auth using Telegram account?
    l
    h
    • 3
    • 6
  • j

    joselogarcia

    11/09/2021, 4:26 AM
    Can you guys make a multi tenant example? Thanks!
  • k

    kawallis

    11/09/2021, 6:02 PM
    Hello y’all curious if there has been any consideration to adding tiktok as an oauth provider ?
  • p

    Pragy

    11/10/2021, 3:36 PM
    does supabase optimize stored items by de-duplicating them (using say sha256), or should we do that ourselves for our projects?
  • c

    chipilov

    11/10/2021, 4:18 PM
    I think this is really a PostgreSQL question (since Supabase uses PostgreSQL as the underlying database and Supabase itself does NOT have any intermediate layer which would do that). If anyone here knows, feel free to jump in but my guess is that you would have better luck trying PostgreSQL-specific arenas (e.g. the official PostgreSQL IRC chennel). If I had to guess, PostgreSQL does NOT do that automatically - as far as I know, this is a technique usually employed by NoSQL dbs which do NOT encourage or support normalization and, hence, need a way to efficiently store data which is duplicated across documents
  • p

    Pragy

    11/10/2021, 4:26 PM
    ah.. no πŸ˜… I meant de-duplicate items in storage.buckets - images, videos and multimedia
  • p

    Pragy

    11/10/2021, 4:27 PM
    so that if multiple users upload the same large file, it is only stored once in the backend, and has multiple references to it
  • c

    chipilov

    11/10/2021, 4:28 PM
    aah, I see - I don't know, haven't used storage. In any event, I suggest asking that in #843999948717555735 or #839993398554656831
  • h

    HarryET

    11/12/2021, 7:00 PM
    If all of the team has access to #867343329434664980 it would make it easier for contributors to contact the team with regards to contribution, open PRs or general queries so other contributors can see but it dosen't pollute public channels.
    s
    • 2
    • 1
  • s

    silentworks

    11/12/2021, 8:28 PM
    Contributing to Supabase
  • u

    user

    11/12/2021, 10:05 PM
    GROQ support could be nice to have. Less complex instead of GraphQL. https://groq.dev/
  • h

    HarryET

    11/14/2021, 2:54 PM
    Any extra suggestions for this PR? https://github.com/supabase/gotrue/pull/269 The current 3 are all working and should be read for the team to merge!
  • r

    rahat

    11/16/2021, 8:43 PM
    @User @User Was chatting with Nader on a stream about authentication with Ethereum wallets. It came up that this would be dope to have as an auth method on Supabase and wanted to see if anyone was working on this or if I might be able to contribute this. We were going over an implementation of Ethereum auth I did for a workshop would love to see about adapting it for supabase
    o
    c
    h
    • 4
    • 7
  • o

    Olyno

    11/16/2021, 11:59 PM
    Web 3 auth
  • c

    copple

    11/17/2021, 11:59 AM
    is this for supabase storage? If you delete the bucket/folder it should purge everything
  • h

    HarryET

    11/17/2021, 4:28 PM
    Maybe they ment like having a TTL or saying delete all files over X days old
  • c

    coozamano

    11/17/2021, 6:44 PM
    PLEASE catch command-S on the SQL screen, I literally can't not save.
  • s

    Scott P

    11/17/2021, 7:24 PM
    When you create a new snippet via the SQL console on the dashboard, they're automatically saved
  • c

    coozamano

    11/18/2021, 4:31 PM
    Yes, but I keep accidentally hitting command-s when i finish editing, which brings up the native save dialog, which is a huge waste of time
  • r

    ryexley

    11/18/2021, 4:34 PM
    I'm honestly not trying to be antagonistic here, but simply pressing
    Escape
    should dismiss that dialog, doesn't it?
1...161718...32Latest