cancel
Showing results for 
Search instead for 
Did you mean: 

How do you handle human errors that you throw in?

How do you handle human errors that you throw in?

So this isn't a Magento-specific question only but I'm currently working with Magento myself and so I figured I'd see what the community is doing about this issue.

Here's a typical scenario for me:

- I start working on some feature, that's a bit of code + some admin configuration.

- I make changes in the admin panel as and where required

- I then proceed to refresh the frontend

- Et voila, everything has gone for a toss because I'm not sure which config / code change of mine screwed up the JS/CSS and no amount of static-content:deploy can save me

This happened yesterday where I, like a total retard, went and changed the language in locale while I was changing the weight units. My ShipStation setup I've decided to go with weight in grams and my store was in pounds so I wanted to sync them up together so I went to locale and changed weight.

While at it, I figured, eh, my language country is en_CA and not en_US, so I should change that too.

And so I changed the language.

And then I spent the next few hours trying to figure out why my website refuses to show up until I noticed all "Inspect element" requests were going to en_CA/styles.css instead of en_US/styles.css, which is when I remembered that I'd changed the locale.

My question is:

- How do you:

a) Prevent yourself from making stupid choices without understanding their consequences?

b) Keep track of changes you made in the last 1-hour so you can backtrack? - This could be code, config, anything pretty much)

Thanks!

 

Disclaimer: X-posted from reddit r/Magento.

1 REPLY 1

Re: How do you handle human errors that you throw in?

I make constant backups. Before I make any changes I create a code and DB backup. If its small I download the entire module that I'm editing.  No matter what I can always revert. Keep great records with descriptive file names. When changes are made make detailed comments with the date that the change was made so you can revert if you have to.