HNHacker News
TopNewBestAskShowJobs

daniel-ash

3 karma · joined February 20, 2020

submissionscomments
daniel-ash··on Improving my focus by giving up my big monitor
I love alt+tab way too much to ever go back to multi screen.

A different angle: multiple screens can cause neck problems if you’re tilting your head in a weird direction for too long

daniel-ash··on Crossing the uncanny valley of conversational voice
Miles is the first AI I’ve met that is way cooler than me

Incredible!

daniel-ash··on A CLI tool for management of Next.js applications
Interview with dax from opennext on the topic from a couple days ago:

https://youtu.be/E-w0R-leDMc?si=uzPEd42V_6wxwV9l

daniel-ash··on Supabase Local Dev: migrations, branching, and observability
Thanks, appreciate this. A few comments:

I like being able to call supabase db dump (data only) and not touch code in the file at all - I get that adding SET session_replication_role = replica; is one line, but still my preference is to avoid. But like I said I already disable triggers ahead of the seed script running.

I currently use supabase db reset quite frequently as I make changes in development. Using supabase migration up would mean moving the latest migration out of the migrations folder, running supabase db reset, moving the file back in and then calling supabase migration up. Which is not the worst idea, I'd still be looking to automate those steps with my own script atm tho.

Re: squash I have been a little cautious to use it since I first noticed it in the CLI docs as I wasn't really sure what the actual outcome would look like If I have something like this in a migration script:

--set initial permissions INSERT INTO rbac.permissions(name) SELECT unnest(enum_range(NULL::rbac.permission_name)) except SELECT name FROM rbac.permissions;

what would squash do to handle this data?

daniel-ash··on Supabase Local Dev: migrations, branching, and observability
Not at all: https://gist.github.com/Daniel-Ash/0ddf135cc0d9341d9d13dadba...
daniel-ash··on Supabase Local Dev: migrations, branching, and observability
Something I'd like to see with local development and the Supabase CLI is timing around inserting seed data, handling triggers, default data. I ran into a bunch of issues getting a nice local dev setup. For example seeding data after migrations is not helpful (and will fail) if your latest migration is destructive - you want to seed data and then run the next migration.

For context, my local dev process is now as follows:

1. supabase db reset with seed.sql empty 2. run a preseed script that disables any triggers and removes default data that has been previously seeded in migrations 3. seed data 4. reenable triggers 5. execute any working migration files that I keep in a separate file

I've written a script that handles all this, so I have mostly solved this for myself - but this was mostly due to running into a bunch of challenges setting up my local env to work well. Very open to general comments on approach too - perhaps there is a simpler way