Closed khelwood closed 6 months ago
@sabrine33 It's here: RegisterServiceImp. This bit is existing behaviour, not part of the pull request. In the graphql schema here
@khelwood , I am not sure about that, as testing with the client with some existing ids, I did not receive any. My guess, is to add it within the output object here: https://github.com/sanger/stan-core/blob/c7daf3a275703f8859973907a3f8fec9e7494b79/src/main/java/uk/ac/sanger/sccp/stan/RegistrationFileController.java#L83
@sabrine33 You may be right. I'll check it and fix it. :+1:
@sabrine33 OK I've added the external name for clashes into the response. Thanks for catching that :+1:
The manual block reg request has an "existing" boolean field to specify that the tissue external name is already in use and that's OK. The file block reg now accepts an additional "existingExternalNames" parameter listing external names that are known and accepted to be existing tissues.
How it already works with manual block reg:
How it should work in file block reg:
NB The client should also check for clashes in other file registration modes, and at least report it as a problem to the user (matching the behaviour in manual registration).