Feature #10967

Add REST endpoint to allow transfer backlog to be reindexed

Added by Justin Simpson over 4 years ago. Updated about 4 years ago.

Status:DocumentStart date:03/09/2017
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Sponsored:No Requires documentation:
Pull Request:https://github.com/artefactual/archivematica-storage-service/pull/176

Description

In the 0.9.0 release of the storage service, transfers were indexed by writing a row to the Packages table.
0.10.0 introduced a new Files table. In addition to have a row in Packages, each file in a transfer is recorded in the Files table.

When upgrading from 0.9.x to 0.10.x, existing entries in the Packages table do not have any rows in the Files table. This prevents those transfers from being successfully ingested out of the backlog.

Proposed solution: add a new rest endpoint to the storage service, that allows transfers to be reindexed.

someone calling this endpoint would need to provide:
ss url, ss username, ss apikey, transfer uuid or transfer backlog location uuid

the endpoint should call the same the same method in Packages.py that is used when new transfers are indexed in 0.10.x

History

#1 Updated by Justin Simpson over 4 years ago

  • Blocks Bug #10968: add new rebuild-transfer-backlog tool added

#2 Updated by Jesús García Crespo over 4 years ago

  • Status changed from New to Code Review
  • Assignee changed from Joel Dunham to Justin Simpson
  • Pull Request set to https://github.com/artefactual/archivematica-storage-service/pull/176

#3 Updated by Jesús García Crespo over 4 years ago

  • Status changed from Code Review to QA/Review

Merged.

#4 Updated by Justin Simpson over 4 years ago

  • Status changed from QA/Review to Document

This feature got released, but never added to the documentation:

https://wiki.archivematica.org/Storage_Service_API

#5 Updated by Justin Simpson about 4 years ago

  • Assignee deleted (Justin Simpson)

#6 Updated by Jesús García Crespo almost 3 years ago

  • Blocks deleted (Bug #10968: add new rebuild-transfer-backlog tool)

Also available in: Atom PDF