cds-videos
cds-videos copied to clipboard
fixtures: records fixture is not creating RecordIdentifier
Expected behavior
After cds fixtures records
I should be able to create/publish a new video.
Actual behavior
The video publish is failing 2 times and successfully the 3rd.
Information about the Issue
The problem I think is because is not creating the (pidstore) RecordIdentifier and at the moment the user try to publish the video, is creating a RecordIdentified with recid=1
but it still reserved by the video imported by fixture.
Maybe we can "generalize" what we do in CDSRecordDumpLoader
and reuse to import fixtures.
Steps to reproduce the behavior
- Create from scratch cdslabs_qa
-
cds fixtures records
- Create a new project
- Publish the video (fails!)
@egabancho is this still the case?
Yes, there is a function responsible for minting the PIDs https://github.com/CERNDocumentServer/cds-videos/blob/cdslabs_qa/cds/modules/fixtures/cli.py#L115, but it does only that, it should also update the sequence for both, recids and report numbers.