https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • s

    silentworks

    10/07/2021, 8:34 AM
    RLS policy based on input
  • w

    will martian

    10/07/2021, 11:40 AM
    Is there a way to export Supabase project/table config so that other devs can import it? Kind of like a quick start / 1 click setup to get a similar project up and running?
  • u

    user

    10/08/2021, 12:39 AM
    hello hello friends! gotta say - Supabase is pure love! ā¤ļø
  • u

    ! Class self.PythonAddict = True

    10/08/2021, 7:02 AM
    ello yall
  • c

    copple

    10/08/2021, 10:43 AM
    https://twitter.com/kiwicopple/status/1446425693923987457
  • y

    YelloJello

    10/08/2021, 10:53 AM
    it's already 20k now lol
  • y

    YelloJello

    10/08/2021, 10:54 AM
    10 mins and 67 stars
  • s

    seufernandez

    10/08/2021, 11:26 AM
    https://tenor.com/view/doge-doge-coin-to-the-moon-crypto-cryptocurrency-gif-14563637
  • u

    0xAvneesh

    10/08/2021, 4:23 PM
    Congrats on 20k stars!
  • s

    silentworks

    10/08/2021, 5:09 PM
    Let me go and un-star and see what happens šŸ˜†
  • c

    chipilov

    10/08/2021, 7:05 PM
    Maybe take a look at this: https://www.pgadmin.org/docs/pgadmin4/development/schema_diff.html#schema-diff-ddl-comparison-panel
  • z

    zeeshanok

    10/09/2021, 4:59 AM
    hello
  • u

    user

    10/09/2021, 7:04 AM
  • j

    jonny

    10/09/2021, 7:08 AM
    Just a reminder to please follow the #843998099033817088 for this server - mods will kick/ban accounts that post inappropriate messages
  • p

    pr0PM

    10/09/2021, 10:46 AM
    it's going to be a hackathon for me indeed i didn't knew 10th was the deadline aaAAAAAA
  • j

    Jimmy H.

    10/09/2021, 12:15 PM
    Hi guys, is there anyway to send user invite email from Supabase API? I could send it from web UI but I've checked the docs and couldn't find if it's possible to send an invite email with Supabase client in a React project
  • h

    HamMy

    10/09/2021, 12:18 PM
    Hi guys! is there a criteria for contributing? I mean what kind of app should i have to build? does it requires having more functionality? or does even hello world counts for the hacktoberfest?
  • n

    Nine

    10/09/2021, 12:57 PM
    One question to the @User , when saving for example an index.html file in the bucket is there some option which when we take the link gives us the exact html instead of it being inside of the tag and another html ?
  • n

    Nine

    10/09/2021, 12:58 PM
    sry accidently wrote it here meant to write it in help
  • b

    Biondi Bagasta Wiko Putra

    10/09/2021, 1:26 PM
    #ASK Why i got this error while uploading file :
    Copy code
    message: "new row violates row-level security policy for table \"objects\""
    ​
    statusCode: "42501"
    service.ts :
    Copy code
    ts
    uploadImage(data: File): Observable<any> {
        return defer(() => this.supabase.storage.from('bookimage').upload(`public/test.png`, data, {
          cacheControl: '3600',
          upsert: false
        })).pipe(
          map(({ error, data }) => {
            if(error) {
              throw(error);
            }
    
            return data;
          })
        )
      }
  • n

    Nine

    10/09/2021, 4:06 PM
    can you download more files at the same time from the buckets @User ? As in if we have a subfolder with 2-3 files, something like:
    Copy code
    js
    const { data, error } = await supabase
      .storage
      .from('storage')
      .download(['test/item1', 'test/item2', 'test/item3'])
    Or:
    Copy code
    js
    const { data, error } = await supabase
      .storage
      .from('storage')
      .download('test/item1')
      .download('test/item2')
      .download('test/item3')
    Hope I kinda got the point across šŸ™‚
  • j

    jonny

    10/10/2021, 2:55 AM
    https://supabase.io/blog/2021/09/28/supabase-hacktoberfest-hackathon-2021 All details are here šŸ˜Ž
  • j

    jonny

    10/10/2021, 2:59 AM
    If using anon key: Do you have any policies set up for the bucket to allow write? Even public buckets need policies for write access, although read access is public. Or are you using service key with supabase-js?
  • b

    Biondi Bagasta Wiko Putra

    10/10/2021, 3:08 AM
    it was solved right now by adding INSERT policies on
    Copy code
    Other policies under storage.objects
    . Sorry i didn't see the Notes on the documentation which say i should adding policies
  • j

    jonny

    10/10/2021, 3:35 AM
    Awesome. We could do a better job of showing that policies are still required for public buckets for write and insert.
  • h

    Hal

    10/10/2021, 10:07 AM
    a very beginner question here guys: if i want to insert a row that has foreign keys of ids, do I have to run 2 queries that first, fetches the ids, then insert? or is there a better way?
  • s

    silentworks

    10/10/2021, 12:32 PM
    @User please refrain from posting such content on the platform, this is against community code of conduct
  • b

    brikbrik

    10/10/2021, 5:03 PM
    In this RLS example (https://supabase.io/docs/guides/auth/row-level-security#restrict-updates), am I right to assume that a user could potentially update their own profile
    user_id
    to point to another user ? If yes, is that what the "WITH CHECK expression" would be for ?
    Copy code
    postgresql
    -- 1. Create table
    create table profiles (
      id uuid references auth.users,
      avatar_url text
    );
    
    -- 2. Enable RLS
    alter table profiles
      enable row level security;
    
    -- 3. Create Policy
    create policy "Users can update their own profiles."
      on profiles for update using (
        auth.uid() = id
      );
  • g

    garyaustin

    10/10/2021, 5:34 PM
    Yes, WITH CHECK looks at the incoming data.
  • b

    brikbrik

    10/10/2021, 5:35 PM
    Cool ! Thanks, that's good to know
    g
    • 2
    • 1
1...113114115...392Latest