Reduce UPDATE queries when moving between import states on projects
By changing our logic from before_transition
to after_transition
blocks and removing extra calls to update
or save
we can do all
changes in a single UPDATE query (currently each transition change
from started -> failed and started -> finished runs two UPDATE
queries each)