SnappierSoap
07/09/2022, 7:05 AMOmega
07/09/2022, 9:17 AMmshadow
07/09/2022, 4:15 PMbeforeunload
/ unload
browser events - to send PATCH to the API and update users list - they are so unreliable and work inconsistently in different browsers, so no luck.
Has signed up on multiplayer.dev already, but not sure that would be a quick thing to let me in 🙂 Would really appreciate any help, thanks!yolo
07/09/2022, 6:55 PMBartWestenenk
07/09/2022, 8:00 PMNin
07/09/2022, 9:01 PMCannot read properties of undefined (reading 'tables')
what do I do?revanthp
07/09/2022, 9:56 PMjs
const { data: profile, error } = await supabase
.from('details')
.select('*, classes (*)')
The first table is called details and the second table is called classes. They are connected by a third table called enrollments, which has an id, details_id, and class_id.Needle
07/09/2022, 10:20 PMrevanthp
07/09/2022, 11:52 PMTocas
07/10/2022, 2:13 AMkonga
07/10/2022, 3:36 AMand3rsonsousa
07/10/2022, 7:20 AMunknown1337
07/10/2022, 9:23 AMkapsonfire
07/10/2022, 10:40 AMNeedle
07/10/2022, 12:47 PMgjavilae
07/10/2022, 1:47 PMglomyst
07/10/2022, 3:28 PMNeedle
07/10/2022, 5:52 PMzAwie
07/10/2022, 6:25 PMcould not open file "global/pg_filenode.map": Input/output error
?ghostdragon
07/10/2022, 6:44 PMzAwie
07/10/2022, 6:47 PMRiotgear66
07/10/2022, 7:11 PMKariak
07/10/2022, 9:24 PMRatl94
07/11/2022, 5:14 AMMonyo
07/11/2022, 6:04 AMcreatedAt, drakeQuote, inAppearance
It's not inserting rows to it.
This is my function that's supposed to insert into the table
async function createQuote() {
await supabase
.from('quotes')
.insert([
{ drakeQuote, inAppearance }
])
.single()
setQuote({ drakeQuote: '', inAppearance: '' })
fetchQuotes()
}
<form className='flex flex-col gap-4 w-full mt-5 justify-center items-center' onSubmit={createQuote}>
<input
value={drakeQuote}
placeholder='Drake quote'
type='text'
className='outline-none placeholder:text-gray-400 w-full px-2 py-1 text-gray-600'
onChange={(e) => setQuote({ ...quote, drakeQuote: e.target.value })}
/>
<input
value={inAppearance}
placeholder='Appearance'
className='outline-none placeholder:text-gray-400 px-2 py-1 text-gray-600'
onChange={(e) => setQuote({ ...quote, inAppearance: e.target.value })}
/>
<button className='bg-blue-500 py-2 px-3 rounded-md hover:bg-blue-600 text-gray-100'>Submit Quote</button>
</form>
aegnog
07/11/2022, 12:33 PMinspiration101
07/11/2022, 1:35 PMRevxrsal
07/11/2022, 2:47 PMpages
, one for invites
and one for blacklists
, and in invites
for example, for every invitation there will be an entry with the invited user's ID and the page's ID. though i'm not sure if this would work (as it would mean there will be duplicate columns). are there any better ways?Sophic
07/11/2022, 3:33 PM<h2 class="cf-subheadline" data-translate="error_desc">Worker threw exception</h2>
</div><!-- /.header -->
<section></section><!-- spacer -->
<div class="cf-section cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">
<h2 data-translate="what_happened">What happened?</h2>
<p>You've requested a page on a website (myurl.supabase.co) that is on the <a data-orig-proto="https" data-orig-ref="www.cloudflare.com/5xx-error-landing/" target="_blank">Cloudflare</a> network. An unknown error occurred while rendering the page.</p>
</div>
<div class="cf-column">
<h2 data-translate="what_can_i_do">What can I do?</h2>
<p><strong>If you are the owner of this website:</strong><br />you should <a data-orig-proto="https" data-orig-ref="www.cloudflare.com/login?utm_source=error_100x" target="_blank">login to Cloudflare</a> and check the error logs for myurl.supabase.co.</p>
</div>
NanoBit
07/11/2022, 3:38 PMauth.users
cannot be accessed. We need to use a trigger to update a public.users
table.
2. Creating that trigger in 1
requires a separate script run ourselves via psql
.
3. Using any function like auth.id()
requires a "fake" function public.auth_id()
to be used in-place, then replaced via psql
like 2
.
4. Incrementing ID primary key doesn't work . id BigInt @id @default(autoincrement())
does not create auto increment properly. Issue: #7560
5. Grants are a bit messed up (See Troubleshooting section on Supabase docs)
6. Required to create a separate db user to not bypass RLS and to give grants
7. Required to use a Prisma middleware to inject the current_user_id
for each transactions (with no official documentation on this, only other users' code)
8. We cannot add other schemas like the supa-audit
extensions which uses the audit
schema.
9. Current minor issues with quotes in name (although they might be solved soon)
10. Use separate connection string for migrate vs normal use with PgBouncer (supabase already provides this)
11. RLS has to be manually created unlike in Supabase where we can Supabase Studio
12. Telemetry? Set CHECKPOINT_DISABLE=1
13. Need to CREATE SCHEMA IF NOT EXISTS "extensions";
for UUID
Up to this point, I am sure I have not discovered all the nitty gritty bugs still. Does anyone have any opinion or experience to share about using Prisma? I will also consolidate this info to one place to help future people facing these issues.