Commit 3fe8b715 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Allow to publish uploads with failed calcs. Added formula to metadata. #190

parent 648fd7ba
Pipeline #53345 failed with stages
in 20 minutes and 9 seconds
......@@ -14,6 +14,9 @@ export default class DFTEntryOverview extends React.Component {
return (
<Quantity column>
<Quantity row>
<Quantity quantity="formula" label='formula' noWrap {...this.props} />
</Quantity>
<Quantity row>
<Quantity quantity="code_name" label='dft code' noWrap {...this.props} />
<Quantity quantity="code_version" label='dft code version' noWrap {...this.props} />
......
......@@ -4,9 +4,9 @@ import Button from '@material-ui/core/Button'
import Dialog from '@material-ui/core/Dialog'
import DialogActions from '@material-ui/core/DialogActions'
import DialogContent from '@material-ui/core/DialogContent'
import DialogContentText from '@material-ui/core/DialogContentText'
import DialogTitle from '@material-ui/core/DialogTitle'
import { FormGroup, Checkbox, FormLabel } from '@material-ui/core'
import Markdown from '../Markdown'
class ConfirmDialog extends React.Component {
static propTypes = {
......@@ -30,10 +30,13 @@ class ConfirmDialog extends React.Component {
>
<DialogTitle>Publish data</DialogTitle>
<DialogContent>
<DialogContentText>
<Markdown>{`
If you agree the selected uploads will move out of your private staging
area into the public NOMAD.
</DialogContentText>
area into the public NOMAD Repository. If you wish to put an embargo
on your data it will last upto 36 month. Afterwards, your data will
be made public. All public data will be made available under the Creative
Commons Attribution license ([CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)).
`}</Markdown>
<FormGroup row style={{alignItems: 'center'}}>
<Checkbox
......
......@@ -64,6 +64,21 @@ When you published your upload, it will take a night before it will appear in th
[NOMAD Repository](https://repository.nomad-coe.eu/NomadRepository-1.1/).
We are working on improving this process.
#### Processing errors
We distinguish between uploads that fail processing completely and uploads that contain
entries that could not be processed. The former might be caused by issues during the
upload, bad file formats, etc. The latter (for more common) case means that not all of the provided
code input/output files could not be parsed by our parsers for various reasons.
The processing logs of the failed entries might provide some insight.
We do not allow to publish uploads that failed processing completely. Frankly, in most
cases there won't be any data to publish anyways. In the case of failed processing of
some entires, the data can still be published. You will be able to share it and create
DOIs for it, etc. The only shortcomings will be missing metadata (labeled *not processed*
or *unavailable*) and missing archive data. We continuously improve our parsers and
the missing information might be made available in the future.
#### Co-Authors, References, Comments, Datasets
Currently, this web-page is only about uploading your calculations. To further edit
......@@ -335,7 +350,7 @@ class Uploads extends React.Component {
<Tooltip title="Publish selected uploads" >
<div>
<IconButton
disabled={selectedUnpublishedUploads.length === 0 || selectedUnpublishedUploads.some(upload => upload.failed_calcs !== 0 || upload.total_calcs === 0)}
disabled={selectedUnpublishedUploads.length === 0 || selectedUnpublishedUploads.some(upload => upload.tasks_status !== 'SUCCESS' || upload.total_calcs === 0)}
onClick={() => this.onPublishClicked()}>
<CheckIcon />
</IconButton>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment