-
Notifications
You must be signed in to change notification settings - Fork 5
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 role to instrumentScientist #237
Comments
Do you envision that the same scientist may have multiple roles with respect to an instrument? In that case, you'd also need to add role to the uniqueness constraint. The downside of that would be that role would need to be NOT NULL, which is inconvenient for the facilities that don't want to use that attribute. |
It is a fair remark. I don't like the downside and I would not like to force the use of role. In any case, my opinion is that having a single role per instrument already improves the current situation. |
Technically speaking, such a hypothetical combination of roles by a (space or comma or whatever separated) list is obviously possible as the role attribute is free text. The only question is if the clients that want to make use of the attribute are able to deal with that. They would also need to take this into account on searching, e.g. search for Anyway, if you believe that such multiple roles are not likely to occur in practice and are happy to accept the restriction to exclude them, it's probably better to leave role as an optional field. |
You are right, but my example had a different meaning. "BeamlineManager Safety" is a role itself that the client will need to manage somehow. |
If your role is a "fixed" string, then I will suggest to use a separate role table for normalization. For example, if a bug is introduced in your software then the role will not be correct as this is a free text field. You can define the values in a role table and then linked it to InstrumentScientist. |
An instrument Scientist associates a scientist with an instrument. However, in the real life, scientists might play a different role in a beamline: beamline manager, staff, Phd, technician, collaborator, etc...
From the software point of view these different cases might need to be be managed differently.
Currently, there are the fields of InstrumentScientists:
I would propose to add "role":
The text was updated successfully, but these errors were encountered: