Skip to content

Fixity Check

Thomas Scherz edited this page Nov 12, 2019 · 2 revisions

Key components of the Fixity Check Process:

  • file_set = ::FileSet.find(file_set.id)
  • ::Hyrax::RepositoryFixityCheckService.fixity_check_everything (All)
  • ::Hyrax::FileSetFixityCheckService.new(file_set).fixity_check (Individual)
  • ::Hyrax::VersioningService.latest_version_of(file_set.original_file).uri (URI for latest version of file)
  • ChecksumAuditLog.latest_for_file_set_id(file_set.id) (Review Post Check Audit log)
  • ::Hyrax::FixityStatusService.new(file_set.id) (Check Pass/Fail Status)
  • ::Hyrax::FixityStatusPresenter.new(id).render_file_set_status (Renders display message)
  • ::Hyrax::FixityCheckFailureService.new(file_set, checksum_audit_log: checksum_audit_log) (Starts the Failure communication)
  • ActiveFedora::FixityService.new(uri).check (What actually does the check)
  • ActiveFedora::FixityService.new(uri).expected_message_digest (Retrieves SHA from Fedora)