sanger / stan-core

MIT License
0 stars 2 forks source link

x1158 Support specifying existing external names in file block reg #375

Closed khelwood closed 6 months ago

khelwood commented 6 months ago

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).

khelwood commented 6 months ago

@sabrine33 It's here: RegisterServiceImp. This bit is existing behaviour, not part of the pull request. In the graphql schema here

sabrine33 commented 6 months ago

@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

khelwood commented 6 months ago

@sabrine33 You may be right. I'll check it and fix it. :+1:

khelwood commented 6 months ago

@sabrine33 OK I've added the external name for clashes into the response. Thanks for catching that :+1: