Releases: acdh-oeaw/arche-lib-ingest
Indexer: report new version resource URI
Indexer's automatice versioning rework
Previously the metadata handling on an automatic new version creation was hardcoded (and configurable only with a bool $pidPass
parameter). Now the Indexer::setVersioning()
, File::upload()
and File::uploadAsync()
take two callables with signatures
`function (
rdfInterface\DatasetNodeInterface $oldMeta,
acdhOeaw\arche\lib\Schema $repoSchema
): array{rdfInterface\DatasetNodeInterface $oldMeta, rdfInterface\DatasetNodeInterface $newMeta}
and
function (
acdhOeaw\arche\lib\RepoResource $old,
acdhOeaw\arche\lib\RepoResource $new
): void
The first one should generate old and new version metadata according to a given repository's business logic.
The second one is responsible for doing any metadata adjustments which require both old and new version resource to exist (e.g. updating references which pointed to the old version to point to the new one).
A sample implementation of such a handler can be found in the tests/IndexerTest.php::testNewVersionCreation()
Reduce concurrency on reattempts
4.2.0 Indexer::index(), MetadataCollection::index(): reduce conncurrency on…
Redmine class restored
For unknown reasons the acdhOeaw\arche\lib\ingest\Redmine
class was silently removed in 4.0. Now it's back
Bugfixes
arche-lib bumped to ^7
4.0.7 composer.json: arche-lib bumped to ^7
PHP 8.4 deprecation fixes
4.0.6 .github/workflows/test.yml: add phpstan
File::updateAsync(): avoid unnecessary metadata update
4.0.5 Minor changes
Various minor fixes
MetadataCollection
: terminate ingestion on terminal errors even in error mode passFile
: handle versioning when a repository resource exists but lacks binary (update it with the binary without new version creation then)- CI tuning
Retry if "deadlock detected" reported on a server side
4.0.3 MetadataCollection::import(): retry on "deadlock detected" on the ser…