silentworks
03/05/2022, 11:19 AMekansh005
03/05/2022, 12:08 PMmarwannwh
03/05/2022, 2:31 PMgaryaustin
03/05/2022, 2:31 PMgaryaustin
03/05/2022, 2:48 PMDeleted User
03/05/2022, 4:07 PMrisingryzen
03/05/2022, 8:10 PM@supabase/storage-js
. I do see this in my package.json. Are these calls implicit somewhere in the supabase client?garyaustin
03/05/2022, 8:27 PMrisingryzen
03/05/2022, 8:28 PMrisingryzen
03/05/2022, 8:28 PMrisingryzen
03/05/2022, 8:37 PMgaryaustin
03/05/2022, 10:21 PMjoa
03/05/2022, 10:43 PM(111 = client_id)
This would allow me to update only if the client_id
field/part of the new data (i.e. the POST data) was equal to "111". I have not been able to make any functions within Supabase at all, based on the code you suggested and based on the examples in the tutorials. Supabase only gives me syntax errors "near create" etc...risingryzen
03/05/2022, 11:39 PMelliott
03/06/2022, 5:40 AMprofiles
table with content returned in the user_metadata
hash, which is returned from Supabase on a successful OAuth call. Specifically I am authenticating with Twitter, and would like to save the returned twitter ID and handle, from the user_metadata, in my profiles
table.
I've considered creating an API route, and using a function hook - I followed this approach to create a Stripe user and store the ID, but I am realizing that that only worked since function hooks can access rows directly from profiles in the the req.body.record
received by the API by default. As far as I can tell function hooks do not have access to the user metadata hash, please correct me if I'm wrong here!
Is there any way to do this other than making a client side call right after Oauth? That seems super flaky. Lost here.ak4zh
03/06/2022, 7:29 AMproducts
and RLS is set without any policy which means it does not allow any action read, write, delete.
Now I have a view which does select * from products
this view has no RLS.
My intention is to let anon key read everything inside products but never modify anything the reason I use view is so I can filter the columns I want to return at db level without needing to change anything in my code.
You can create RLS policies manually for views but the Policies section in supabase should show the option to enable RLS in views or functions otherwise people can do UPDATE or DELETE query on a view and modify the data of actual table the view depends on even if the table has RLS enabled.
EDIT:
1) Ok I relised RLS cannot be enabled on views.
Solution GRANT can be used for this:
REVOKE ALL ON TABLE products_view FROM anon;
GRANT SELECT ON TABLE products_view TO anon;
elliott
03/06/2022, 8:03 AMgetServerSideProps
finally clickedelliott
03/06/2022, 8:03 AMFrozonity
03/06/2022, 2:17 PMSeñor Bruno
03/06/2022, 3:17 PMgaryaustin
03/06/2022, 3:34 PMYonben
03/06/2022, 5:44 PMMarco Pieterse
03/06/2022, 8:09 PMHVBX
03/06/2022, 9:31 PMDavidBae
03/07/2022, 12:50 AMelliott
03/07/2022, 2:31 AMgaryaustin
03/07/2022, 2:48 AMelliott
03/07/2022, 2:50 AMconst { data: mutualReviews, error: mutualError } = await supabase
.from('reviews')
.select('score, text, profiles!inner(*)')
.eq('video_id', id)
.neq('user_id', user.id)
.in('profiles.twitter_handle', profile.twitter_follows)
.contains('profiles.twitter_follows', [profile.twitter_handle])
const { data: followsReviews, error: followsError } = await supabase
.from('reviews')
.select('score, text, profiles!inner(*)')
.eq('video_id', id)
.neq('user_id', user.id)
.in('profiles.twitter_handle', profile.twitter_follows)
.not('profiles.twitter_follows', 'contains', [profile.twitter_handle])
The only differentiating line is the final one, contains vs not. In this context not does not work at all. I think that maybe it only works for 'eq'?jundialwan
03/07/2022, 5:58 AMcreate index
command but I got "ERROR: must be owner of table". Also tried to run create index concurrently
and got the same error. Turns out the "postgres" user is not an owner and "supabase_admin" is the owner. Of course, I don't have access to "supabase_admin" owner user.
need some advice how to do this
thanks in advanceMarco Pieterse
03/07/2022, 8:54 AM