Skip to content

Commit

Permalink
#88 enable data curation tool in demo mode pending javascript rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Sep 27, 2019
1 parent ae2b453 commit 865960a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 14 deletions.
12 changes: 8 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ dataverse:
upload_to_hub: False
user: counter
year_month: "2018-05"
dataexplorer:
enabled: true
db:
name: dvndb
host: localhost
Expand All @@ -62,6 +60,14 @@ dataverse:
protocol: doi
provider: FAKE
shoulder: "FK2/"
externaltools:
datacurationtool:
enabled: true
method: demo
dataexplorer:
enabled: true
wholetale:
enabled: false
filesdir: /usr/local/dvn/data
glassfish:
user: glassfish
Expand Down Expand Up @@ -110,8 +116,6 @@ dataverse:
thumbnails: true
usermgmtkey: burrito
version: 4.16
wholetale:
enabled: true

grafana:
grafana_user: 'admin'
Expand Down
22 changes: 22 additions & 0 deletions files/DataCuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"displayName": "Data Curation Tool",
"description": "Data Curation Tool for curation of variables",
"type": "configure",
"toolUrl": "https://scholarsportal.github.io/Dataverse-Data-Curation-Tool/",
"toolParameters": {
"queryParameters": [
{
"dfId": "{fileId}"
},
{
"siteUrl": "{siteUrl}"
},
{
"key": "{apiToken}"
},
{
"fileMetadataId" : "{fileMetadataId}"
}
]
}
}
22 changes: 16 additions & 6 deletions tasks/dataverse-externaltools.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
---

- name: enable wholetale externaltool
- name: enable data curation tool
uri:
url: http://localhost:8080/api/admin/externalTools
method: POST
headers:
headers:
Content-type: "application/json"
body_format: json
body: "{{ lookup('file', 'wholetale.json') }}"
when: dataverse.wholetale.enabled == true
body: "{{ lookup('file', 'DataCuration.json') }}"
when: dataverse.externaltools.datacurationtool.enabled == true

- name: enable data explorer on demand
- name: enable data explorer
uri:
url: http://localhost:8080/api/admin/externalTools
method: POST
headers:
Content-type: "application/json"
body_format: json
body: "{{ lookup('file', 'dataExplorer.json') }}"
when: dataverse.dataexplorer.enabled == true
when: dataverse.externaltools.dataexplorer.enabled == true

- name: enable wholetale
uri:
url: http://localhost:8080/api/admin/externalTools
method: POST
headers:
Content-type: "application/json"
body_format: json
body: "{{ lookup('file', 'wholetale.json') }}"
when: dataverse.externaltools.wholetale.enabled == true
12 changes: 8 additions & 4 deletions tests/group_vars/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ dataverse:
upload_to_hub: False
user: counter
year_month: "2018-05"
dataexplorer:
enabled: true
db:
name: dvndb
host: localhost
Expand All @@ -62,6 +60,14 @@ dataverse:
protocol: doi
provider: FAKE
shoulder: "FK2/"
externaltools:
datacurationtool:
enabled: true
method: demo
dataexplorer:
enabled: true
wholetale:
enabled: false
filesdir: /usr/local/dvn/data
glassfish:
user: glassfish
Expand Down Expand Up @@ -110,8 +116,6 @@ dataverse:
thumbnails: true
usermgmtkey: burrito
version: 4.16
wholetale:
enabled: false

grafana:
grafana_user: 'admin'
Expand Down

0 comments on commit 865960a

Please sign in to comment.