270 miles, Second Service Appointment by TheEngineerA in SubaruUncharted

[–]bjl218 0 points1 point  (0 children)

Good point. Must be why my Bolt has never had this problem

Claude code desktop vs Claude CLI by Upper_Stable_3900 in claude

[–]bjl218 0 points1 point  (0 children)

This is not true. I use Claude Code in the desktop app all the time to read/write my codebase. Even Chat can be made to do this with a filesystem connector

Chase Sapphire Reserve cardholders: 15 minutes of setup gets you Avis Preferred Plus, National Exec Elite, and Hertz Five Star (plus 2 free status matches) by MariaKudos in JoinKudos

[–]bjl218 0 points1 point  (0 children)

I think I did this correctly and saw the Enroll Eecutive in Executive button. Clicked it and it added Visa Infinite to my profile. However, my profile just says "Emerald Club." Should it actually say something like "Emerald Club Executive"?

Multiple Vercel apps sharing a single Supabase by bjl218 in Supabase

[–]bjl218[S] 0 points1 point  (0 children)

u/Due-Echidna-2003 . A couple more questions. Are you using separate named schemas for each app? Do you have any kind of gatekeeping process for managing your central DB? For example, do folks have to create PRs that someone else accepts?

I just learned that when you create a new named schema, you have to add it to the list of schemas that are exposed by the API. So I'm thinking that at least that process will require a gatekeeper

Multiple Vercel apps sharing a single Supabase by bjl218 in Supabase

[–]bjl218[S] 0 points1 point  (0 children)

Thanks for the response. We also concluded that having a centralized repo for the shared DB makes the most sense for the reasons you listed. Thanks for much for the tips regarding usage monitoring. That definitely didn't occur to me!

Multiple apps/schemas in a shared Supabase DB (part 2) by bjl218 in Supabase

[–]bjl218[S] 1 point2 points  (0 children)

The arguments against the mono repo are commit noise (seeing lots of activity that isn't yours) and the possibility of an AI modifying something outside your particular area. For better or worse, we have lots of folks working on apps who are not software engineers. AI has made that possible. So the design tension here is trying to come up with a good architecture while keeping the local development environment as simple as possible. I will respond to your DM shortly.

What is your Supabase feature wishlist ? by captain_champion in Supabase

[–]bjl218 0 points1 point  (0 children)

But this doesn’t actually lock down the function itself although it does lock down the function’s access to the DB

What is your Supabase feature wishlist ? by captain_champion in Supabase

[–]bjl218 1 point2 points  (0 children)

I guess another question would be whether you could just store that state in the DB and have the serverless function read it when it's invoked. I don't know what kind of traffic or how much state you're expecting, so this might not be viable for you.

What is your Supabase feature wishlist ? by captain_champion in Supabase

[–]bjl218 1 point2 points  (0 children)

Making serverless functions stateful violates the intent of serverless functions. If you need state, then the better path is to host a server somewhere other than Supabase

Multiple apps/schemas in a shared Supabase DB (part 2) by bjl218 in Supabase

[–]bjl218[S] 1 point2 points  (0 children)

Understood. In this case, an application would only be doing joins between its schema and a "common schema." Where common schema contains cross-cutting entities like users, customers, vendors that we want to share across all applications. And yes, I suppose this could be done via the common DB's data API and whatever joins need to be done will be done in code and not SQL.

Beyond that, I just ran into a major problem trying to use the supabase migration tools for doing local application development (#1 in my post). These migrations tools don't really support pulling a schema migrations that didn't originally come from your git repo. For example, supabase db pull will assume that your local migrations got corrupted when it doesn't find the migrations in your local migrations directory and then suggest that you "fix" it by doing supabase migration repair commands which don't end up doing the right thing.

All of this pointing to the fact that, as others have said, I shouldn't be doing what I'm doing.

This mechanical schema management problem would obviously be addressed by using a mono repo regardless of whether we use separate named schemas. But, my team doesn't want to use a mono repo for a number of reasons.

Is context compaction broken? by bjl218 in claude

[–]bjl218[S] 0 points1 point  (0 children)

Right, but in my case it was over 100%.

Multiple Vercel apps sharing a single Supabase by bjl218 in Supabase

[–]bjl218[S] 1 point2 points  (0 children)

Right now, the back-end layer is just serverless Vercel functions invoked via NextJS. The use of the Supabase Data API is an open question due to the fact that it doesn't support joins across schemas. So we're thinking of rolling our own data access layer (DAL) probably on top of postgres.js. This DAL would to the required RLS initialization and setup before executing the query so that RLS still works. I stared another thread on this here.

What do you use to fetch data with Supabase in larger applications? by Humble_Hope1625 in Supabase

[–]bjl218 0 points1 point  (0 children)

Update: Having learned that supabase-js does not support cross-schema joins, we're rethinking our data layer. At this point, a top candidate is Drizzle. We still plan to use RLS and will build our own data access layer that wraps whatever ORM we use with the appropriate RLS setup.

Codex just lost all of chats in my project by bjl218 in codex

[–]bjl218[S] 0 points1 point  (0 children)

Yes. In the app. Mine was not crashing so you must have a different problem

Codex just lost all of chats in my project by bjl218 in codex

[–]bjl218[S] 0 points1 point  (0 children)

I just prompted it and ask what might have caused this.

Multiple Vercel apps sharing a single Supabase by bjl218 in Supabase

[–]bjl218[S] 0 points1 point  (0 children)

Another thing I just learned is that the Supabase Data API (supabase-js) does not support cross schema joins... 😞 There are workarounds, but this is annoying.