@openneuro/app 4.2.3 → 4.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jestsetup.ts +0 -5
- package/package.json +8 -13
- package/src/scripts/common/forms/__tests__/__snapshots__/warn-button.spec.jsx.snap +26 -26
- package/src/scripts/common/forms/__tests__/warn-button.spec.jsx +7 -5
- package/src/scripts/datalad/dataset/dataset-query-fragments.js +6 -0
- package/src/scripts/datalad/subscriptions/__tests__/__snapshots__/files-subscription.spec.jsx.snap +1 -159
- package/src/scripts/datalad/subscriptions/__tests__/files-subscription.spec.jsx +6 -3
- package/src/scripts/errors/errorRoute.jsx +4 -23
- package/src/scripts/faq/__tests__/__snapshots__/faq.spec.jsx.snap +183 -154
- package/src/scripts/faq/__tests__/faq.spec.jsx +3 -3
- package/src/scripts/refactor_2021/admin/admin.jsx +1 -7
- package/src/scripts/refactor_2021/dataset/comments/__tests__/__snapshots__/comments.spec.jsx.snap +12 -110
- package/src/scripts/refactor_2021/dataset/comments/__tests__/comments.spec.jsx +7 -5
- package/src/scripts/refactor_2021/dataset/dataset-query.jsx +2 -4
- package/src/scripts/refactor_2021/dataset/dataset-routes.jsx +6 -11
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/download-command-line.spec.jsx.snap +8 -9
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/download-link.spec.jsx.snap +46 -1255
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/shell-example.spec.jsx.snap +3 -4
- package/src/scripts/refactor_2021/dataset/download/__tests__/download-command-line.spec.jsx +10 -11
- package/src/scripts/refactor_2021/dataset/download/__tests__/download-link.spec.jsx +3 -3
- package/src/scripts/refactor_2021/dataset/download/__tests__/shell-example.spec.jsx +3 -3
- package/src/scripts/refactor_2021/dataset/download/download-command-line.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/draft-container.tsx +6 -23
- package/src/scripts/refactor_2021/dataset/draft-snapshot-routes.tsx +1 -6
- package/src/scripts/refactor_2021/dataset/files/__tests__/__snapshots__/file-tree.spec.jsx.snap +24 -49
- package/src/scripts/refactor_2021/dataset/files/__tests__/__snapshots__/file.spec.jsx.snap +74 -54
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-tree-unloaded-directory.spec.jsx +4 -3
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-tree.spec.jsx +23 -19
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-viewer-type.spec.jsx +5 -3
- package/src/scripts/refactor_2021/dataset/files/__tests__/file.spec.jsx +21 -21
- package/src/scripts/refactor_2021/dataset/files/file.jsx +3 -2
- package/src/scripts/refactor_2021/dataset/files/viewers/__tests__/__snapshots__/file-viewer-json.spec.jsx.snap +85 -60
- package/src/scripts/refactor_2021/dataset/files/viewers/__tests__/file-viewer-json.spec.jsx +5 -5
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/cancel-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/edit-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/save-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/select-input.spec.tsx.snap +178 -105
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/cancel-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/dataset-alert-draft.spec.tsx +72 -0
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/edit-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/edit-list.spec.jsx +0 -1
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/save-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/select-input.spec.tsx +9 -9
- package/src/scripts/refactor_2021/dataset/fragments/dataset-alert-draft.tsx +79 -0
- package/src/scripts/refactor_2021/dataset/fragments/dataset-alert-version.tsx +24 -0
- package/src/scripts/refactor_2021/dataset/fragments/select-input.tsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/deprecate-snapshot.spec.tsx.snap +14 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/deprecate-version.spec.tsx.snap +14 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/description.spec.jsx.snap +3 -277
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/deprecate-snapshot.spec.tsx +71 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/deprecate-version.spec.tsx +71 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/description.spec.jsx +22 -9
- package/src/scripts/refactor_2021/dataset/mutations/deprecate-version.tsx +46 -0
- package/src/scripts/refactor_2021/dataset/mutations/description.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/readme.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/submit-metadata.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/undo-deprecate-version.tsx +43 -0
- package/src/scripts/refactor_2021/dataset/mutations/update-file.jsx +15 -19
- package/src/scripts/refactor_2021/dataset/routes/__tests__/__snapshots__/publish.spec.jsx.snap +3 -0
- package/src/scripts/refactor_2021/dataset/routes/__tests__/publish.spec.jsx +13 -0
- package/src/scripts/refactor_2021/dataset/routes/add-metadata.jsx +0 -1
- package/src/scripts/refactor_2021/dataset/routes/deprecate-snapshot-page.tsx +46 -0
- package/src/scripts/refactor_2021/dataset/snapshot-container.tsx +19 -23
- package/src/scripts/refactor_2021/routes.tsx +9 -9
- package/src/scripts/refactor_2021/uploader/uploader-setup-routes.jsx +4 -24
- package/src/scripts/refactor_2021/uploader/uploader-status-routes.jsx +1 -6
- package/src/scripts/common/forms/__tests__/__snapshots__/input.spec.jsx.snap +0 -13
- package/src/scripts/common/forms/__tests__/input.spec.jsx +0 -25
- package/src/scripts/common/forms/input.jsx +0 -98
- package/src/scripts/datalad/routes/__tests__/__snapshots__/publish.spec.jsx.snap +0 -14
- package/src/scripts/datalad/routes/__tests__/publish.spec.jsx +0 -10
- package/src/scripts/datalad/routes/mobile-class.tsx +0 -16
- package/src/scripts/datalad/routes/publish.jsx +0 -50
- package/src/scripts/refactor_2021/dataset/dataset-query-fragments.js +0 -220
- package/src/scripts/refactor_2021/dataset/queries/dataset-query-fragments.js +0 -220
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react'
|
|
2
|
-
import { Media } from '../../styles/media'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This is janky but provided for backwards compatibility until new styling is ready
|
|
6
|
-
*/
|
|
7
|
-
export const MobileClass: FunctionComponent = ({ children }) => (
|
|
8
|
-
<>
|
|
9
|
-
<Media at="small">
|
|
10
|
-
<div className="mobile-class">{children}</div>
|
|
11
|
-
</Media>
|
|
12
|
-
<Media greaterThanOrEqual="medium">
|
|
13
|
-
<div className="col-xs-6">{children}</div>
|
|
14
|
-
</Media>
|
|
15
|
-
</>
|
|
16
|
-
)
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
|
-
import { Link, Redirect } from 'react-router-dom'
|
|
4
|
-
import PublishDataset from '../mutations/publish.jsx'
|
|
5
|
-
|
|
6
|
-
const hasExpectedMetadata = metadata =>
|
|
7
|
-
typeof metadata === 'object' && metadata !== null
|
|
8
|
-
|
|
9
|
-
const Publish = ({ datasetId, metadata }) =>
|
|
10
|
-
hasExpectedMetadata(metadata) ? (
|
|
11
|
-
<div className="dataset-form">
|
|
12
|
-
<div className="col-xs-12 dataset-form-header">
|
|
13
|
-
<div className="form-group">
|
|
14
|
-
<label>Publish</label>
|
|
15
|
-
</div>
|
|
16
|
-
<hr />
|
|
17
|
-
<div className="col-xs-12 dataset-form-body">
|
|
18
|
-
<p className="text-danger">
|
|
19
|
-
All existing and future snapshots of this dataset will be released
|
|
20
|
-
publicly under a{' '}
|
|
21
|
-
<a href="https://wiki.creativecommons.org/wiki/CC0">CC0 license</a>.
|
|
22
|
-
</p>
|
|
23
|
-
</div>
|
|
24
|
-
<div className="col-xs-12 dataset-form-controls">
|
|
25
|
-
<div className="col-xs-12 modal-actions">
|
|
26
|
-
<Link to={`/datasets/${datasetId}`}>
|
|
27
|
-
<button className="btn-admin-blue">Return to Dataset</button>
|
|
28
|
-
</Link>
|
|
29
|
-
<PublishDataset datasetId={datasetId} />
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
) : (
|
|
35
|
-
<Redirect
|
|
36
|
-
to={{
|
|
37
|
-
pathname: `/datasets/${datasetId}/metadata`,
|
|
38
|
-
state: {
|
|
39
|
-
submitPath: `/datasets/${datasetId}/publish`,
|
|
40
|
-
},
|
|
41
|
-
}}
|
|
42
|
-
/>
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
Publish.propTypes = {
|
|
46
|
-
datasetId: PropTypes.string,
|
|
47
|
-
metadata: PropTypes.object,
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export default Publish
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { gql } from '@apollo/client'
|
|
2
|
-
|
|
3
|
-
export const DRAFT_FRAGMENT = gql`
|
|
4
|
-
fragment DatasetDraft on Dataset {
|
|
5
|
-
id
|
|
6
|
-
draft {
|
|
7
|
-
id
|
|
8
|
-
modified
|
|
9
|
-
readme
|
|
10
|
-
head
|
|
11
|
-
description {
|
|
12
|
-
Name
|
|
13
|
-
Authors
|
|
14
|
-
DatasetDOI
|
|
15
|
-
License
|
|
16
|
-
Acknowledgements
|
|
17
|
-
HowToAcknowledge
|
|
18
|
-
Funding
|
|
19
|
-
ReferencesAndLinks
|
|
20
|
-
EthicsApprovals
|
|
21
|
-
}
|
|
22
|
-
summary {
|
|
23
|
-
modalities
|
|
24
|
-
secondaryModalities
|
|
25
|
-
sessions
|
|
26
|
-
subjects
|
|
27
|
-
subjectMetadata {
|
|
28
|
-
participantId
|
|
29
|
-
age
|
|
30
|
-
sex
|
|
31
|
-
group
|
|
32
|
-
}
|
|
33
|
-
tasks
|
|
34
|
-
size
|
|
35
|
-
totalFiles
|
|
36
|
-
dataProcessed
|
|
37
|
-
pet {
|
|
38
|
-
BodyPart
|
|
39
|
-
ScannerManufacturer
|
|
40
|
-
ScannerManufacturersModelName
|
|
41
|
-
TracerName
|
|
42
|
-
TracerRadionuclide
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`
|
|
48
|
-
|
|
49
|
-
export const DRAFT_FILES_FRAGMENT = gql`
|
|
50
|
-
fragment DatasetDraftFiles on Dataset {
|
|
51
|
-
id
|
|
52
|
-
draft {
|
|
53
|
-
id
|
|
54
|
-
files {
|
|
55
|
-
id
|
|
56
|
-
key
|
|
57
|
-
filename
|
|
58
|
-
size
|
|
59
|
-
directory
|
|
60
|
-
annexed
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
`
|
|
65
|
-
|
|
66
|
-
export const PERMISSION_FRAGMENT = gql`
|
|
67
|
-
fragment DatasetPermissions on Dataset {
|
|
68
|
-
id
|
|
69
|
-
permissions {
|
|
70
|
-
id
|
|
71
|
-
userPermissions {
|
|
72
|
-
user {
|
|
73
|
-
id
|
|
74
|
-
email
|
|
75
|
-
}
|
|
76
|
-
level
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`
|
|
81
|
-
|
|
82
|
-
export const DATASET_SNAPSHOTS = gql`
|
|
83
|
-
fragment DatasetSnapshots on Dataset {
|
|
84
|
-
id
|
|
85
|
-
snapshots {
|
|
86
|
-
id
|
|
87
|
-
tag
|
|
88
|
-
created
|
|
89
|
-
hexsha
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
`
|
|
93
|
-
|
|
94
|
-
export const ISSUE_FIELDS = `
|
|
95
|
-
severity
|
|
96
|
-
code
|
|
97
|
-
reason
|
|
98
|
-
files {
|
|
99
|
-
evidence
|
|
100
|
-
line
|
|
101
|
-
character
|
|
102
|
-
reason
|
|
103
|
-
file {
|
|
104
|
-
name
|
|
105
|
-
path
|
|
106
|
-
relativePath
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
additionalFileCount
|
|
110
|
-
`
|
|
111
|
-
|
|
112
|
-
export const DATASET_ISSUES = gql`
|
|
113
|
-
fragment DatasetIssues on Dataset {
|
|
114
|
-
id
|
|
115
|
-
draft {
|
|
116
|
-
id
|
|
117
|
-
issues {
|
|
118
|
-
${ISSUE_FIELDS}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
`
|
|
123
|
-
|
|
124
|
-
export const SNAPSHOT_ISSUES = gql`
|
|
125
|
-
fragment SnapshotIssues on Snapshot {
|
|
126
|
-
id
|
|
127
|
-
issues {
|
|
128
|
-
${ISSUE_FIELDS}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
`
|
|
132
|
-
|
|
133
|
-
export const SNAPSHOT_FIELDS = gql`
|
|
134
|
-
fragment SnapshotFields on Snapshot {
|
|
135
|
-
id
|
|
136
|
-
tag
|
|
137
|
-
created
|
|
138
|
-
readme
|
|
139
|
-
description {
|
|
140
|
-
Name
|
|
141
|
-
Authors
|
|
142
|
-
DatasetDOI
|
|
143
|
-
License
|
|
144
|
-
Acknowledgements
|
|
145
|
-
HowToAcknowledge
|
|
146
|
-
Funding
|
|
147
|
-
ReferencesAndLinks
|
|
148
|
-
EthicsApprovals
|
|
149
|
-
}
|
|
150
|
-
files {
|
|
151
|
-
id
|
|
152
|
-
key
|
|
153
|
-
filename
|
|
154
|
-
size
|
|
155
|
-
directory
|
|
156
|
-
annexed
|
|
157
|
-
}
|
|
158
|
-
summary {
|
|
159
|
-
modalities
|
|
160
|
-
secondaryModalities
|
|
161
|
-
sessions
|
|
162
|
-
subjects
|
|
163
|
-
subjectMetadata {
|
|
164
|
-
participantId
|
|
165
|
-
age
|
|
166
|
-
sex
|
|
167
|
-
group
|
|
168
|
-
}
|
|
169
|
-
tasks
|
|
170
|
-
size
|
|
171
|
-
totalFiles
|
|
172
|
-
dataProcessed
|
|
173
|
-
pet {
|
|
174
|
-
BodyPart
|
|
175
|
-
ScannerManufacturer
|
|
176
|
-
ScannerManufacturersModelName
|
|
177
|
-
TracerName
|
|
178
|
-
TracerRadionuclide
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
analytics {
|
|
182
|
-
downloads
|
|
183
|
-
views
|
|
184
|
-
}
|
|
185
|
-
...SnapshotIssues
|
|
186
|
-
hexsha
|
|
187
|
-
}
|
|
188
|
-
${SNAPSHOT_ISSUES}
|
|
189
|
-
`
|
|
190
|
-
|
|
191
|
-
export const DATASET_METADATA = gql`
|
|
192
|
-
fragment DatasetMetadata on Dataset {
|
|
193
|
-
id
|
|
194
|
-
metadata {
|
|
195
|
-
datasetId
|
|
196
|
-
datasetUrl
|
|
197
|
-
datasetName
|
|
198
|
-
firstSnapshotCreatedAt
|
|
199
|
-
latestSnapshotCreatedAt
|
|
200
|
-
dxStatus
|
|
201
|
-
tasksCompleted
|
|
202
|
-
trialCount
|
|
203
|
-
grantFunderName
|
|
204
|
-
grantIdentifier
|
|
205
|
-
studyDesign
|
|
206
|
-
studyDomain
|
|
207
|
-
studyLongitudinal
|
|
208
|
-
dataProcessed
|
|
209
|
-
species
|
|
210
|
-
associatedPaperDOI
|
|
211
|
-
openneuroPaperDOI
|
|
212
|
-
seniorAuthor
|
|
213
|
-
adminUsers
|
|
214
|
-
ages
|
|
215
|
-
modalities
|
|
216
|
-
affirmedDefaced
|
|
217
|
-
affirmedConsent
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
`
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { gql } from '@apollo/client'
|
|
2
|
-
|
|
3
|
-
export const DRAFT_FRAGMENT = gql`
|
|
4
|
-
fragment DatasetDraft on Dataset {
|
|
5
|
-
id
|
|
6
|
-
draft {
|
|
7
|
-
id
|
|
8
|
-
modified
|
|
9
|
-
readme
|
|
10
|
-
head
|
|
11
|
-
description {
|
|
12
|
-
Name
|
|
13
|
-
Authors
|
|
14
|
-
DatasetDOI
|
|
15
|
-
License
|
|
16
|
-
Acknowledgements
|
|
17
|
-
HowToAcknowledge
|
|
18
|
-
Funding
|
|
19
|
-
ReferencesAndLinks
|
|
20
|
-
EthicsApprovals
|
|
21
|
-
}
|
|
22
|
-
summary {
|
|
23
|
-
modalities
|
|
24
|
-
secondaryModalities
|
|
25
|
-
sessions
|
|
26
|
-
subjects
|
|
27
|
-
subjectMetadata {
|
|
28
|
-
participantId
|
|
29
|
-
age
|
|
30
|
-
sex
|
|
31
|
-
group
|
|
32
|
-
}
|
|
33
|
-
tasks
|
|
34
|
-
size
|
|
35
|
-
totalFiles
|
|
36
|
-
dataProcessed
|
|
37
|
-
pet {
|
|
38
|
-
BodyPart
|
|
39
|
-
ScannerManufacturer
|
|
40
|
-
ScannerManufacturersModelName
|
|
41
|
-
TracerName
|
|
42
|
-
TracerRadionuclide
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`
|
|
48
|
-
|
|
49
|
-
export const DRAFT_FILES_FRAGMENT = gql`
|
|
50
|
-
fragment DatasetDraftFiles on Dataset {
|
|
51
|
-
id
|
|
52
|
-
draft {
|
|
53
|
-
id
|
|
54
|
-
files {
|
|
55
|
-
id
|
|
56
|
-
key
|
|
57
|
-
filename
|
|
58
|
-
size
|
|
59
|
-
directory
|
|
60
|
-
annexed
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
`
|
|
65
|
-
|
|
66
|
-
export const PERMISSION_FRAGMENT = gql`
|
|
67
|
-
fragment DatasetPermissions on Dataset {
|
|
68
|
-
id
|
|
69
|
-
permissions {
|
|
70
|
-
id
|
|
71
|
-
userPermissions {
|
|
72
|
-
user {
|
|
73
|
-
id
|
|
74
|
-
email
|
|
75
|
-
}
|
|
76
|
-
level
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`
|
|
81
|
-
|
|
82
|
-
export const DATASET_SNAPSHOTS = gql`
|
|
83
|
-
fragment DatasetSnapshots on Dataset {
|
|
84
|
-
id
|
|
85
|
-
snapshots {
|
|
86
|
-
id
|
|
87
|
-
tag
|
|
88
|
-
created
|
|
89
|
-
hexsha
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
`
|
|
93
|
-
|
|
94
|
-
export const ISSUE_FIELDS = `
|
|
95
|
-
severity
|
|
96
|
-
code
|
|
97
|
-
reason
|
|
98
|
-
files {
|
|
99
|
-
evidence
|
|
100
|
-
line
|
|
101
|
-
character
|
|
102
|
-
reason
|
|
103
|
-
file {
|
|
104
|
-
name
|
|
105
|
-
path
|
|
106
|
-
relativePath
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
additionalFileCount
|
|
110
|
-
`
|
|
111
|
-
|
|
112
|
-
export const DATASET_ISSUES = gql`
|
|
113
|
-
fragment DatasetIssues on Dataset {
|
|
114
|
-
id
|
|
115
|
-
draft {
|
|
116
|
-
id
|
|
117
|
-
issues {
|
|
118
|
-
${ISSUE_FIELDS}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
`
|
|
123
|
-
|
|
124
|
-
export const SNAPSHOT_ISSUES = gql`
|
|
125
|
-
fragment SnapshotIssues on Snapshot {
|
|
126
|
-
id
|
|
127
|
-
issues {
|
|
128
|
-
${ISSUE_FIELDS}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
`
|
|
132
|
-
|
|
133
|
-
export const SNAPSHOT_FIELDS = gql`
|
|
134
|
-
fragment SnapshotFields on Snapshot {
|
|
135
|
-
id
|
|
136
|
-
tag
|
|
137
|
-
created
|
|
138
|
-
readme
|
|
139
|
-
description {
|
|
140
|
-
Name
|
|
141
|
-
Authors
|
|
142
|
-
DatasetDOI
|
|
143
|
-
License
|
|
144
|
-
Acknowledgements
|
|
145
|
-
HowToAcknowledge
|
|
146
|
-
Funding
|
|
147
|
-
ReferencesAndLinks
|
|
148
|
-
EthicsApprovals
|
|
149
|
-
}
|
|
150
|
-
files {
|
|
151
|
-
id
|
|
152
|
-
key
|
|
153
|
-
filename
|
|
154
|
-
size
|
|
155
|
-
directory
|
|
156
|
-
annexed
|
|
157
|
-
}
|
|
158
|
-
summary {
|
|
159
|
-
modalities
|
|
160
|
-
secondaryModalities
|
|
161
|
-
sessions
|
|
162
|
-
subjects
|
|
163
|
-
subjectMetadata {
|
|
164
|
-
participantId
|
|
165
|
-
age
|
|
166
|
-
sex
|
|
167
|
-
group
|
|
168
|
-
}
|
|
169
|
-
tasks
|
|
170
|
-
size
|
|
171
|
-
totalFiles
|
|
172
|
-
dataProcessed
|
|
173
|
-
pet {
|
|
174
|
-
BodyPart
|
|
175
|
-
ScannerManufacturer
|
|
176
|
-
ScannerManufacturersModelName
|
|
177
|
-
TracerName
|
|
178
|
-
TracerRadionuclide
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
analytics {
|
|
182
|
-
downloads
|
|
183
|
-
views
|
|
184
|
-
}
|
|
185
|
-
...SnapshotIssues
|
|
186
|
-
hexsha
|
|
187
|
-
}
|
|
188
|
-
${SNAPSHOT_ISSUES}
|
|
189
|
-
`
|
|
190
|
-
|
|
191
|
-
export const DATASET_METADATA = gql`
|
|
192
|
-
fragment DatasetMetadata on Dataset {
|
|
193
|
-
id
|
|
194
|
-
metadata {
|
|
195
|
-
datasetId
|
|
196
|
-
datasetUrl
|
|
197
|
-
datasetName
|
|
198
|
-
firstSnapshotCreatedAt
|
|
199
|
-
latestSnapshotCreatedAt
|
|
200
|
-
dxStatus
|
|
201
|
-
tasksCompleted
|
|
202
|
-
trialCount
|
|
203
|
-
grantFunderName
|
|
204
|
-
grantIdentifier
|
|
205
|
-
studyDesign
|
|
206
|
-
studyDomain
|
|
207
|
-
studyLongitudinal
|
|
208
|
-
dataProcessed
|
|
209
|
-
species
|
|
210
|
-
associatedPaperDOI
|
|
211
|
-
openneuroPaperDOI
|
|
212
|
-
seniorAuthor
|
|
213
|
-
adminUsers
|
|
214
|
-
ages
|
|
215
|
-
modalities
|
|
216
|
-
affirmedDefaced
|
|
217
|
-
affirmedConsent
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
`
|