NCIOCPL / glossary-api

API for Dictionary of Cancer Terms, Dictionary of Genetics Terms, and other Glossary documents.
0 stars 5 forks source link

Make GetByName tolerate duplicate pretty URL entries #140

Open blairlearn opened 3 years ago

blairlearn commented 3 years ago

Issue description

When GetByName encounters more than one record with the same pretty URL name, it returns a status 500 error. Returning the first record, and perhaps logging a warning, would be a better user experience.

ESTIMATE TBD

What's the expected change?

What's the current functionality?

What's the updated acceptance criteria?

Additional details / screenshot

https://github.com/NCIOCPL/glossary-api/blob/develop/src/NCI.OCPL.Api.Glossary/Services/ESTermsQueryService.cs#L157-L172

Related Tickets