fractaledmind / solid_errors

database-backed, app-internal exception tracker for Rails applications
MIT License
332 stars 17 forks source link

Add `SolidErrors::migrated?` to ensure that automatically updated dependencies fail when missing migrations #31

Open MarcusRiemer opened 9 months ago

MarcusRiemer commented 9 months ago

I just noticed that the upcoming version will require a database migration. I have no idea on how you are planning to communicate or handle the execution of those migrations, but I can point to an implementation that I really like: good_job does a great job on explaining itself with regards to updates.

The most interesting part for me is as follows:

Database migrations introduced in minor releases are not required to be applied until the next major release. If you would like to apply newly introduced migrations immediately, assert GoodJob.migrated? in your application's test suite.

Would you consider something similar for solid_errors?

fractaledmind commented 7 months ago

I have released 0.4.0. There is an upgrade guide: https://github.com/fractaledmind/solid_errors/blob/main/UPGRADE.md

But nothing more advanced than that.

I'd be open to exploring something similar to GoodJob, but I think an initial PR would help to see the vision more concretely.