Earlier quoted context omitted.
My assumption is that they connected to production to run their local environment against production to debug something. They needed the data. Snaplet can capture a small subset of data related to a particular user, and remove the private information, which they can restore on their local machine. Does that make sense?
Sure; but I assumed they logged into production to run some queries to debug an issue unrelated to dev. I mean, I know there are some bad practices out there - but connecting local dev environment to prod database server would be insane for any reason!
Incident report for February 21st, 2024
61–65 of 65 posts
Re: Incident report for February 21st, 2024
#62[0] https://resend.com/blog/incident-report-for-january-10-2024
Re: Incident report for February 21st, 2024
#63Re: Incident report for February 21st, 2024
#64Earlier quoted context omitted.
I like that Prisma drops the database. Developer databases should be idempotent and easily reseedable with sample data. It's the same concept as cattle, not pets, from the devops world but now applied to databases. There should be nothing special about a database in development that cannot be dropped and recreated.
I don’t care about dev databases; I care about why it does it; there is no need for it, at all. > I like that Prisma drops the database. ‘Like’ ; so if it didn’t but still worked perfectly, you would complain that it didn’t?
Yep I would, because it maintains the idempotency invariant, plus it flushes out any bugs that may exist if databases are not idempotent from seed data, that is the "why it does it."
Re: Incident report for February 21st, 2024
#65Earlier quoted context omitted.
I like that Prisma drops the database. Developer databases should be idempotent and easily reseedable with sample data. It's the same concept as cattle, not pets, from the devops world but now applied to databases. There should be nothing special about a database in development that cannot be dropped and recreated.
We have a script which recreates the dev DB, but developers must run the command manually so that there was an understanding what's happening.