When removing code grep project wide

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the workflows category.

Last Updated: 2023-12-03

I got rid of a method in Product called available. To check that I had not broken anything, I grepped through the app directory and, seeing nothing, figured my job was done safely.

Not so: I had used the method in config/sitemap.rb and this caused a production bug with my sitemap.


Don't make too many assumptions when grepping for function use. Be conservative and search project-wide for files on that extension.