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

    rayyanmaq1

    07/31/2021, 10:30 AM
    By using flutter sdk
  • m

    milestones95

    07/31/2021, 11:01 AM
    Is it possible to remove the verify signup via email and let people login immediately after signup?
  • v

    Vinzent

    07/31/2021, 11:29 AM
    There's a toggle in the auth settings
  • h

    Hal

    07/31/2021, 11:59 AM
    It's not written by me. I created this table by SQL:
    Copy code
    SQL
    create table public.file_versions (
      id uuid default uuid_generate_v1() primary key,
      name text,
      created_at timestamp with time zone DEFAULT timezone('utc' :: text, now()) NOT NULL,
      updated_at timestamp with time zone DEFAULT  timezone('utc' :: text, now()) NOT NULL
    );
    Then I insert a row in table editor, it gave me this error.
  • h

    Hal

    07/31/2021, 12:46 PM
    Hi there, I have two questions when uploading files. Can't figure them out 😭 Could anyone give me a favor? Thanks. 1. I can't upload file to a specific bucket. I have 4 public buckets and neither of them has a policy, but I can upload files to the other 3 buckets. Uploading to
    specs
    bucket will get
    new row violates row-level security policy for table "objects"
    2. I got
    application/json
    as an image's content type after uploading a file from blob. Core code is below.
    Copy code
    js
    // imageData is Uint8Array
    const blob = new Blob([imageData], {
        type: 'image/png'
      })
    
      const fileExt = fileName.split('.').pop()
      const uniqueName = `${uuid()}.${fileExt}`
      const { data, error } = await supabase.storage
        .from('heron')
          .upload(uniqueName, blob, {
            contentType: 'image/png'
          })
  • s

    silentworks

    07/31/2021, 1:03 PM
    I've not used
    uuid_generate_v1()
    before but I do know that
    uuid_generate_v4()
    works
  • s

    silentworks

    07/31/2021, 1:06 PM
    Probably best to ask this in #843999948717555735 or better ask on the discussion board where it's easier to keep track of https://github.com/supabase/supabase/discussions
  • t

    test12

    07/31/2021, 1:14 PM
    and more how to open chrome ?
  • t

    test12

    07/31/2021, 1:14 PM
    docs finish :/
  • h

    Hal

    07/31/2021, 1:34 PM
    Yeah, v4 worked, I switched to v4.
  • h

    Hal

    07/31/2021, 1:35 PM
    Thanks Silentworks, I'll move it into GitHub discussion.
  • r

    Rod

    07/31/2021, 1:55 PM
    Has anyone thought of a good way to create a profile on signup?
  • e

    enBonnet

    07/31/2021, 2:06 PM
    I leave some PR in superpal-ui-web https://github.com/supabase/supabase-ui-web/pulls 🤟
  • m

    milestones95

    07/31/2021, 2:11 PM
    Can I import CSV data into an existing table? I see where you can import data when creating a new table
  • a

    Azura

    07/31/2021, 2:21 PM
    Sure. This is possible with Supabase, as it is built-in to the dashboard itself.
  • s

    Sucipto

    07/31/2021, 2:33 PM
    Maybe you can use https://supabase.io/docs/reference/javascript/auth-update
    Copy code
    const { user, error } = await supabase.auth.update({ 
    
    data: { hello: 'world' } 
    
    })
  • r

    Rod

    07/31/2021, 2:40 PM
    I see. I have a separate table for the profile according to one of the provided templates
  • s

    Scott P

    07/31/2021, 2:49 PM
    Even if a bucket is public, you still need to add RLS policies to upload and delete
  • s

    Subh

    07/31/2021, 2:51 PM
    Oh wow! ❤️ thank you
  • m

    milestones95

    07/31/2021, 2:59 PM
    Where in the dashboard?
    a
    s
    +2
    • 5
    • 23
  • m

    Miguel2390d

    07/31/2021, 3:05 PM
    Does anyone know what might cause this error?
  • h

    Hal

    07/31/2021, 3:06 PM
    Oh, I guess I have the same issue. I remember I used to add some policies to the bucket but there's no policy showed in policy panel. Maybe it's a bug caused by recent updates?
  • m

    milestones95

    07/31/2021, 3:06 PM
    If I manually insert a new row, I then get this error when the client tries to insert a new row again into the table. I have an id property that's the PK and serial {"hint":null,"details":"Key (id)=(1) already exists.","code":"23505","message":"duplicate key value violates unique constraint \"user_story_pkey\""}
  • h

    Hal

    07/31/2021, 3:13 PM
    Don't know your steps for this, but I just created function and trigger in SQL editor and it worked. Because I can't create function in the new functions and triggers panel (see https://discord.com/channels/839993398554656828/839993398554656831/870860572109983754 ).
    Copy code
    sql
    -- create function called update_updated_at
    CREATE OR REPLACE FUNCTION public.update_updated_at()
    RETURNS TRIGGER AS $$
    BEGIN
      NEW.updated_at = TIMEZONE('utc' :: TEXT, NOW());
      RETURN NEW;
    END;
    $$ LANGUAGE plpgsql SECURITY DEFINER;
    
    -- add trigger for projects table
    CREATE TRIGGER trigger_projects_updated_at
    BEFORE UPDATE ON public.projects
    FOR EACH ROW
    EXECUTE PROCEDURE public.update_updated_at();
    
    -- add trigger for users table
    CREATE TRIGGER trigger_users_updated_at
    BEFORE UPDATE ON public.users
    FOR EACH ROW
    EXECUTE PROCEDURE public.update_updated_at();
  • r

    Robert

    07/31/2021, 3:15 PM
    Anyone can help with column level security?
  • s

    Scott P

    07/31/2021, 3:18 PM
    If you mean preventing users from writing to a specific column on a specific row, consider moving that value to another table, and applying RLS policies to the new table
  • a

    Azura

    07/31/2021, 3:18 PM
    You can check out this great blog post made by the Supabase team: https://supabase.io/docs/learn/auth-deep-dive/auth-row-level-security
  • s

    silentworks

    07/31/2021, 4:02 PM
    If you need help please post in #843999948717555735 or on the Supabase GitHub Discussion https://github.com/supabase/supabase/discussions, #839993398554656831 is not the place to be asking for help.
  • i

    Internet Loser

    07/31/2021, 4:25 PM
    I tried to create a batch of 50 non relation small document and its really slow, abt 8-9 seconds. Does it happen to you guys?
  • r

    Robert

    07/31/2021, 4:47 PM
    nope
1...535455...392Latest