-
Notifications
You must be signed in to change notification settings - Fork 7
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
submission: invalidate a single YAML data table upload #34
Comments
Transferred this issue to |
It looks like such files being allowed as validating against the I've added a check that at least one item in a submission file validates against the |
Good point. Most of the properties in |
I've added a temporary commit to PR HEPData/hepdata#392 to install the new validator branch so that we can check the tests pass on the main repo before releasing v0.3.0 of the validator. Some tests are failing. Can you please take a look? For example, |
An Uploader can currently upload a single YAML data table consisting only of
independent_variables
anddependent_variables
. The HEPData code interrupts this as being a single YAML file and callssplit_files
to write asubmission.yaml
file containing a defaultcomment: No description provided.
and no data tables. The directory containing thesubmission.yaml
file is then deleted bycleanup_old_files(hepsubmission)
since no data tables have been processed. The submission still passes validation and the user is sent an email saying the upload was successful. However, the record just shows the upload dialogue because no tables have been processed.The
split_files
function should be more careful in checking that a YAML document containingindependent_variables
anddependent_variables
also contains the required metadata fields (name
,description
,keywords
), otherwise the upload should be invalidated with a suitable error message returned. The submission documentation on single YAML files should also be clarified.The text was updated successfully, but these errors were encountered: