Skip to content

MetadataIndexer error mode added

Compare
Choose a tag to compare
@zozlak zozlak released this 09 Apr 18:31
· 153 commits to master since this release

acdhOeaw\acdhRepoIngest\MetadataIndexer::index() now takes an optional third parameter allowing to set the error mode:

  • MetadataIndexer::ERRMODE_FAIL the default mode in which a first HTTP 400 response generated on a repository resource creation/update breaks the import.
  • MetadataIndexer::ERRMODE_PASS in this mode HTTP 400 responses don't break the import but turn of the autocommit and cause an error to be thrown at the end of import. This mode allows to collect metadata problems with all resources speeding up the curation process.