Skip to content

Requesting to create a sample with a given duplicate refcode silently succeeds #1175

@ml-evs

Description

@ml-evs

Right now, if you have a refcode in your create sample request, it will get dropped. However, this is a useful mechanism to prevent duplication without needing to lookup whether every refcode exists (i.e., try to make the object and check if a duplicate error is raised). So, instead, we should allow the API to be passed refcodes, failing with duplicate error responses if present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions