Implement a state_machine in Ci:Ref and make ci_refs.status an INT
As discussed in !16951 (comment 301747375) we need to implement a state_machine
in Ci::Ref
rather than coupling everything in UpdateCiRefStatusService
.
This would simplify theUpdateCiRefStatusService
object logic and make transitions more clear.
We should also make ci_refs.status
an integer
Edited by 🙈 jacopo beschi 🙉