https://supabase.com/ logo
Join Discord
Powered by
# help
  • p

    pcav

    11/24/2021, 10:11 PM
    you have a similar example in allowing access based on email template
  • w

    Wickey

    11/24/2021, 10:55 PM
    User table rather than auth . It feels like this works on everything apart from insert?
  • w

    Wickey

    11/24/2021, 10:56 PM
    I'm guessing it doesn't know what the Id we're trying to insert is.. but what's the point of rls if you can't check before inserting!
    g
    • 2
    • 10
  • p

    pcav

    11/24/2021, 10:56 PM
    insert and update need a check statement
  • p

    pcav

    11/24/2021, 10:58 PM
    You can create a special rule for insert, where anyone can insert.
  • p

    pcav

    11/24/2021, 10:58 PM
    I'm not too sure about more than that though, I usually use Django for more complex stuff, but there must be a way
  • p

    pcav

    11/24/2021, 11:00 PM
    I'm guessing you can let anyone insert and then use a trigger to add the inserter to the access table. Either that or have a creator field, and have another RLS rule that allows the creator to perform all operations (bypassing the access table)
  • p

    Prodigy7kX

    11/24/2021, 11:16 PM
    Sorry if that might be a dumb question, but does RLS work for views?
    g
    c
    • 3
    • 4
  • g

    garyaustin

    11/24/2021, 11:21 PM
    Inserting with RLS dependent on another table check
  • j

    jon.m

    11/25/2021, 12:40 AM
    Adding Raw user Meta data
  • g

    garyaustin

    11/25/2021, 1:13 AM
    Does RLS work on views?
  • j

    jon.m

    11/25/2021, 1:51 AM
    So the issue I've been having with raw user meta data not working was resolved by updating the supabase js package.
  • p

    Prodigy7kX

    11/25/2021, 1:59 AM
    lit
  • a

    Anoushk

    11/25/2021, 6:10 AM
    Hey im having an error adding a foreign key relation in dashboard
  • a

    Anoushk

    11/25/2021, 6:10 AM
    this is users table
  • a

    Anoushk

    11/25/2021, 6:11 AM
    this is projects table
  • a

    Anoushk

    11/25/2021, 6:11 AM
    when i filter i dont get any value
  • a

    Anoushk

    11/25/2021, 6:11 AM
    event though there is this val
  • a

    Anoushk

    11/25/2021, 6:12 AM
    works for name not public add
  • a

    Anoushk

    11/25/2021, 6:12 AM
    wud appreciate it if someone can tell me why this is happening
  • j

    jonhelge

    11/25/2021, 11:55 AM
    Hi. Does anyone knows what operation that resets the "inactivity counter" for free tier? Have an instance where we access the postgres database directly that got paused today. It is in daily use -> database activity does not count as "activity" in this case
  • m

    Mathel

    11/25/2021, 12:49 PM
    Hey, Im struggling to find resources about data validation in Supabase. I mean cases like e-mail field validation, field min and max length and other formatting validation usually made on backend side. How should it be handled in Supabase, by RLS. Does anyone have some sample? šŸ™‚
  • t

    tourdownunder

    11/25/2021, 12:58 PM
    I’m on mobile and will be brief. I think you are after check constraints as per https://www.postgresql.org/docs/13/ddl-constraints.html
  • m

    Mathel

    11/25/2021, 1:19 PM
    Link to docs is perfect enough šŸ‘ŒI will try it, thank you šŸ™
  • c

    coozamano

    11/25/2021, 7:29 PM
    gm everyone happy thanksgiving
  • c

    coozamano

    11/25/2021, 7:29 PM
    Wondering if someone can help me select all from a table and then join two other tables using supabase syntax
  • c

    coozamano

    11/25/2021, 7:29 PM
    Here's what I tried:
  • c

    coozamano

    11/25/2021, 7:30 PM
    Copy code
    .select(`
        *,
        contracts (
          name,
          id
        ),
        collections(
          name,
          discord_url
        )
      `)
    Anyone have some advice?
  • u

    user

    11/25/2021, 8:00 PM
    Hello can anyone PM me I think I have a dangling connection on supabase which is killing my prisma migration attempts.
  • w

    wiesson

    11/25/2021, 10:02 PM
    Do you have a error message? The select looks fine if you have a fk relation to contracts and collections
1...142143144...316Latest