-
Notifications
You must be signed in to change notification settings - Fork 3
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
introduce is_required
field for all output_types
#99
Comments
In the process of implementing this it occured to me that it could be much less invasive and easier to propagate throughout the hubverse if, instead of introducing the {
"output_type": {
"quantile": {
"output_type_id": {
"required": [0.25, 0.5, 0.75]
},
"value": {
"type": "integer",
"minimum": 0
},
"is_required": true
}
}
} This has both practical and conceptual benefits in my view:
|
This makes sense to me. Maybe we should also change the location of this setting for the sample output type, for consistency. |
I agree as well. Seems like a good solution. |
@elray1 yes I thought that too. Will implement for samples too. |
Question: do we have a practical way to do an integration test of the schemas before approval? That is: do we currently have a system for us to run tests on hub with our packages using the new schema or is it all manual? |
Not really. We test that they are correct json and that I think the practical element is the difficulty here. The features of interest of new versions are the basis for new functionality/ associated introduction of back-compatibility which requires new features and updating or creating new example data and tests in our packages. This happens within our packages and the direction is necessarily the creation of a new schema PR first and then packages are updated and tested against the new schema version PR before it is merged. Having said that, I have opened the following issue for suggestions on how to improve our tests so thoughts on the above welcome there: #89 |
The idea here is that we want to separate out whether or not a specific output_type is required for a submission from the specification of which output_type_ids are required or optional.
Noting that we already have implemented this for
sample
output_type.The text was updated successfully, but these errors were encountered: