Open TomNicholas opened 3 months ago
The context for this is the presence of a property in CWorthy-ocean/C-Star#24 which stores whether or not a case was created from a blueprint or not.
Whilst I agree that we should have some easy way to differentiate a Case
that matches a validated blueprint from one that doesn't, I'm not sure that this should be a static property of the Case
object.
Really whether or not a particular Case
(i.e. model configuration) is "validated" is a subjective decision made by us at CWorthy - it could for example change over time. It's not really a property of the actual set of configuration parameters, because it cannot be derived from information in the Case
instance alone. It just tells you whether or not that set matches some set we at CWorthy have separately decided is "validated". I therefore wonder whether a .validated
property should actually dynamically go and compare against an online database that we at CWorthy
manage...
Perhaps also returning the validation status as a boolean True/False
is simplistic. Users might want to know when and how it was validated, or be linked to further information about the validation procedure.
It just tells you whether or not that set matches some set we at CWorthy have separately decided is "validated".
Two examples of when this might matter:
Case
object has changed.Perhaps also returning the validation status as a boolean True/False is simplistic.
Validation might also be contextual - i.e. a Case is validated for some use cases but not for others.
cc @matt-long
_Originally posted by @dafyddstephenson in https://github.com/CWorthy-ocean/C-Star/pull/24#discussion_r1681996691_