Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cage autoname feature & uniqueness requirement #656

Open
claireward opened this issue Aug 28, 2020 · 2 comments
Open

Add Cage autoname feature & uniqueness requirement #656

claireward opened this issue Aug 28, 2020 · 2 comments
Assignees
Labels

Comments

@claireward
Copy link

It is possible to create multiple cages with the same ID, which may lead to the mixing up of subjects and improper housing assignments. I am attaching three screen shots to illustrate this issue:

  1. Each time a new housing is created, this adds a new record with an ID that is hidden from the housing table. In a screen shot with all housing records shown, you can see there are multiple records for a cage identified with a barcode numbered 32686. There is no error that prevents you from adding a duplicate cage ID.
    housing-all

  2. It is possible to have more than one cage active simultaneously with the same Cage ID. As shown in this screen shot with only the current cages filtered.
    housing-current

  3. When adding a cage in the subject view, all of the duplicated cage records appear as an option. In this case the unique identifier corresponding to the cage record is visible (see screen shot below)
    subject-cages

@rossant
Copy link
Contributor

rossant commented Aug 31, 2020

I think this is by design, a cage represents a unique physical cage with a number written on it, whereas a housing represents which mice are in a given physical cage at a given time, and this information can change over time for the same cage, resulting in multiple housing objects with the same cage number.

@rossant rossant self-assigned this Aug 31, 2020
@claireward
Copy link
Author

claireward commented Aug 31, 2020

Thanks @rossant. This makes sense why there would be duplicate housing records for any given cage. My concern is that the screen shot of the current cage listings (second screen shot), allows for identical cage names. Here there are two cages 32686, which house different subjects. So perhaps there is not necessarily something to prevent two HousingSubject objects existing simultaneously with the same name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants