gemini-hlsw / gem

prototype postgres back-end for ocs
Other
15 stars 5 forks source link

obsolete field on enums #179

Open cquiroz opened 6 years ago

cquiroz commented 6 years ago

Should all the enumerations have an obsolete field or only those where we know there are obsoleted items

tpolecat commented 6 years ago

This hasn't been completely designed yet. There is an Obsoletable typeclass but we're not using it yet. My idea was that types with this property (most if not all would also be Enumerated) would have an instance.

tpolecat commented 6 years ago

I think there is some design work to do because I think what we really want is a notion of active periods, so rather than just obsolete or not you know when it's available and when it's not. This would allow us to add new instruments (for example) prior to availability and test them out with programs allocated for a future semester.