1. 18 Nov, 2020 4 commits
    • Mike Kozono's avatar
      Leverage state transitions · ef538e9f
      Mike Kozono authored
      And add two convenience methods for setting a value at the same time as
      calling a transition:
      
      - verification_succeeded_with_checksum!
      - verification_failed_with_message!
      ef538e9f
    • Mike Kozono's avatar
      Move update_verification_state! method · 672545b3
      Mike Kozono authored
      ...into the Geo::VerificationState concern.
      672545b3
    • Mike Kozono's avatar
      Use the verification state machine's scopes · 5dbbc40c
      Mike Kozono authored
      Instead of deriving verification state from various checksum-related
      fields, we can now query for records with a particular state.
      5dbbc40c
    • Mike Kozono's avatar
      Add verification state machine · 6d76116b
      Mike Kozono authored
      This will help to ensure we encapsulate verification state in the model
      (or later, in the registry, when we implement verification on
      secondaries).
      
      The verification_started_at field will make it much easier to properly
      manage concurrent verification jobs.
      6d76116b
  2. 17 Nov, 2020 36 commits