Guidelines for code reviews
Here are some useful checks while doing code reviews:
- Is the code readable?
- Can we dry it up?
- Is it an experiment
- new- Is the code written such that clean up will be easy?
- removing old - Are all part of the experiment removed?
- Is the code written in a way that may cause unexpected behavior => eg: using a class which has a .click handler in some other file which is not obvious.
- Is new css added?
- Is it really needed?
- Is it using existing variables - app/assets/stylesheets/themes/_powr.css.scss
- if touching z-index - any side effects - has Kelsey seen it?
- If db reads- are we accidentally doing n+1 query?
- If db inserts/updates - are we checking if the user has permission to do those?
- skip screenshot : true for large app migrations.
- migrations: https://www.getoutline.com/doc/migration-checklist-3QjXxFgOUX