Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
065fa86
Import from v1
jp-tosca Apr 10, 2026
74a8a1f
Update from js dataverse type
jp-tosca Apr 10, 2026
df5e284
Update from js dataverse type
jp-tosca Apr 10, 2026
0b3babe
Update from js dataverse type
jp-tosca Apr 11, 2026
45640a4
Conflict solving errors fix
jp-tosca Apr 13, 2026
5ea86b2
Upgrade develop
jp-tosca Apr 13, 2026
017c4fa
Merge remote-tracking branch 'origin/develop' into 797-dataset-type-s…
jp-tosca Apr 29, 2026
7a0277a
Changes for allowed dataset types
jp-tosca May 27, 2026
0b52007
Merge remote-tracking branch 'origin/develop' into 797-dataset-type-s…
jp-tosca Jun 4, 2026
350a459
Refactor datasetType handling across repositories and use cases for c…
jp-tosca Jun 4, 2026
33d7126
Fix formatting and improve type handling in various components and tests
jp-tosca Jun 4, 2026
c048697
Update @iqss/dataverse-client-javascript dependency to version 2.1.0-…
jp-tosca Jun 5, 2026
8534f2f
Refactor allowedDatasetTypes handling in JSCollectionMapper to ensure…
jp-tosca Jun 5, 2026
9599c01
Fix type casting for allowedDatasetTypes in JSCollectionMapper
jp-tosca Jun 5, 2026
2b62608
lint
jp-tosca Jun 5, 2026
1e9cf6a
cypress
jp-tosca Jun 8, 2026
52c52b7
cypress
jp-tosca Jun 8, 2026
5704d35
cypress
jp-tosca Jun 8, 2026
0660ba1
cypress
jp-tosca Jun 8, 2026
6d1914e
Branch updade
jp-tosca Jun 16, 2026
7e39fd4
Fix lint errors and warnings
jp-tosca Jun 18, 2026
3bdc708
Update src/sections/create-dataset/dataset-type-select/DatasetTypeSel…
jp-tosca Jun 18, 2026
a56457d
Update src/sections/create-dataset/dataset-type-select/DatasetTypeSel…
jp-tosca Jun 18, 2026
f728548
Update src/sections/create-dataset/CreateDataset.tsx
jp-tosca Jun 18, 2026
1b9b7ec
Spanish translations
jp-tosca Jun 18, 2026
4291ba0
Removing old "available" types in favor of "allowed"
jp-tosca Jun 18, 2026
12f6ea2
Remove datasetType from IDatasetDetails interface
jp-tosca Jun 22, 2026
ccec179
Enhance SelectAdvanced component with option descriptions and keyboar…
jp-tosca Jun 23, 2026
f170dd6
Update option description color to use $dv-subtext-color
jp-tosca Jun 24, 2026
4c0dfbd
fix CreateDataset.spec.tsx
ekraffmiller Jun 23, 2026
cc81ecd
fix component tests
ekraffmiller Jun 23, 2026
da0bf33
update Login.spec.tsx to fix flaky test
ekraffmiller Jun 17, 2026
fbb108f
Test fix
jp-tosca Jun 24, 2026
9b1cb34
Tests coverage
jp-tosca Jun 25, 2026
8656289
Branch update
jp-tosca Jun 26, 2026
de80b57
package lock
jp-tosca Jun 26, 2026
a948276
package lock
jp-tosca Jun 26, 2026
f257417
test fix
jp-tosca Jun 26, 2026
669f333
remove DATASET_TYPE from QueryParamKey enum
jp-tosca Jul 2, 2026
405cde1
refactor: remove datasetType parameter from JSDatasetMapper and Datas…
jp-tosca Jul 2, 2026
173860f
feat: add datasetType display in Dataset and DatasetSummary components
jp-tosca Jul 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "VANILLA",
"alias": "VANILLA",
"dataverseContacts": [
{
"contactEmail": "pi@example.edu"
},
{
"contactEmail": "student@example.edu"
}
],
"affiliation": "Scientific Research University",
"description": "We do all the science.",
"dataverseType": "LABORATORY"
}
47 changes: 47 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

#!/usr/bin/env bash
#chmod +x ./config.sh

#UPDATE WITH YOUR API TOKEN
API_TOKEN="1f203f6d-54b2-464e-bfcb-918f4fb0959a"

#COLLECTION, TYPE AND METADATA BLOCK DOWNLOAD
curl -fL "https://raw.githubusercontent.com/IQSS/dataverse/master/scripts/api/data/metadatablocks/review.tsv" -o "review.tsv"
curl -fL "https://guides.dataverse.org/en/latest/_downloads/c2a076bba578dc93b3582f41d6fba594/review.json" -o "review.json"
curl -fL "https://guides.dataverse.org/en/latest/_downloads/78ade9231d6876a7c9fa1ff095c446bd/dataverse-complete.json" -o "collection.json"

#METADATA BLOCK UPLOAD
curl "http://localhost:8080/api/admin/datasetfield/load" -H "Content-type: text/tab-separated-values" -X POST --upload-file "review.tsv"

#SOLR UPDATE
curl -fS "http://localhost:8080/api/admin/index/solr/schema" | docker run -i --rm \
-v "$(pwd)/dev-env/docker-dev-volumes/solr/data:/var/solr" \
gdcc/configbaker:unstable \
update-fields.sh /var/solr/data/collection1/conf/schema.xml -
curl -fS "http://localhost:8983/solr/admin/cores?action=RELOAD&core=collection1&wt=json"
curl -fS "http://localhost:8080/api/admin/index"

#DATASET TYPE UPLOAD
curl -H "X-Dataverse-key:$API_TOKEN" -H "Content-Type: application/json" "http://localhost:8080/api/datasets/datasetTypes" -X POST --upload-file review.json

#COLLECTION CREATION AND PUBLISHING (NODE REQUIRED)
#REVIEWS COLLECTION
node -e 'const fs = require("fs"); const collection = JSON.parse(fs.readFileSync("collection.json", "utf8")); collection.name = "REVIEWS"; collection.alias = "REVIEWS"; fs.writeFileSync("collection.json", JSON.stringify(collection, null, 2) + "\n");'
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/root" --upload-file collection.json
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/REVIEWS/actions/:publish"
curl -X PUT -H "X-Dataverse-key:$API_TOKEN" "http://localhost:8080/api/dataverses/REVIEWS/attribute/allowedDatasetTypes?value=review"
#DATASETS COLLECTION
node -e 'const fs = require("fs"); const collection = JSON.parse(fs.readFileSync("collection.json", "utf8")); collection.name = "DATASETS"; collection.alias = "DATASETS"; fs.writeFileSync("collection.json", JSON.stringify(collection, null, 2) + "\n");'
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/root" --upload-file collection.json
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/DATASETS/actions/:publish"
curl -X PUT -H "X-Dataverse-key:$API_TOKEN" "http://localhost:8080/api/dataverses/DATASETS/attribute/allowedDatasetTypes?value=dataset"
#MIX COLLECTION
node -e 'const fs = require("fs"); const collection = JSON.parse(fs.readFileSync("collection.json", "utf8")); collection.name = "MIX"; collection.alias = "MIX"; fs.writeFileSync("collection.json", JSON.stringify(collection, null, 2) + "\n");'
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/root" --upload-file collection.json
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/MIX/actions/:publish"
curl -X PUT -H "X-Dataverse-key:$API_TOKEN" "http://localhost:8080/api/dataverses/MIX/attribute/allowedDatasetTypes?value=review,dataset"
#VANILLA COLLECTION
node -e 'const fs = require("fs"); const collection = JSON.parse(fs.readFileSync("collection.json", "utf8")); collection.name = "VANILLA"; collection.alias = "VANILLA"; fs.writeFileSync("collection.json", JSON.stringify(collection, null, 2) + "\n");'
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/root" --upload-file collection.json
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "http://localhost:8080/api/dataverses/VANILLA/actions/:publish"

Loading
Loading