performant-software / Annotation-Studio

An online annotation platform for teaching and learning in the humanities.
http://www.annotationstudio.org
GNU General Public License v2.0
4 stars 1 forks source link

Add `dry_run` arg to `ryerson_migration` rake task #450

Closed camdendotlol closed 1 year ago

camdendotlol commented 1 year ago

This PR adds a new dry_run argument that will puts the new user objects to the console instead of saving them.

The arg needs to be called like this: bundle exec rake ryerson_migration[dry_run]

You have to use Bash, rather than zsh, because zsh can't handle brackets.

I have no idea why CLI arguments in Rake tasks are so annoying.

In addition, I've tested the script locally with production data and confirmed that it works correctly.