News for hackers. Stuff that matters.
Re:Safely Dropping MySQL Tables by willcipriano on Monday July 25, 2022 @03:47PM (#32229973)
Add: log.info("get_user_by_user_id has been deprecated, please use the alternative API.")

Into the repo method, push up the change, redeploy the projects that depend on the library and wait a while and grep the logs to see if it ever gets used.

Monorepo is easier though.

Re:Safely Dropping MySQL Tables by hinkley on Monday July 25, 2022 @05:31PM (#32231208)
Dude, that just tells you if the table is used on the happy path. It does not tell you if it's only used by a customer whose godson is the CEO's favorite kid. Or if customers only use it right before a federal deadline for filing forms, or at the end of the quarter when it's time to generate reports. Which you didn't collect for 2 months.
Re:Safely Dropping MySQL Tables by dotancohen on Tuesday July 26, 2022 @02:28AM (#32235039)

  > Or if customers only use it right before a federal deadline for filing
  > forms, or at the end of the quarter when it's time to generate reports.
You're right. How would you suggest to defend against these situations?

I personally like to version my APIs, but that is robust insofar as code changes, not for database changes.

Re:Safely Dropping MySQL Tables by hinkley on Tuesday July 26, 2022 @02:23PM (#32241916)
The other responder liked monorepos for this. It’s not perfect, but it does help with making sure you had all of the code to search from, and once in a while the commit history adds additional clues.