No way to check whether identity has a pseudonym without creating pseudonym
sjoerdk opened this issue · comments
Sjoerd Kerkstra commented
There is an unwanted schroedingers behaviour in the current PIMS API. By querying whether an identity has a pseudonym, you create that pseudonym.
There should be an API endpoint to get a yes or no answer without creating pseudonym. This is important when doing larger scale operations on legacy archives. You don't always want to create pseudonyms for everything you query.
Sjoerd Kerkstra commented
Ralph says this will be fixed in PIMS 2
Sjoerd Kerkstra commented
Fixed in version 2 of PIMS, pimsclient. Use KeyFile().exists(): https://github.com/sjoerdk/pimsclient/blob/v2.0.0/examples/check_identity_existence.py