GlobalDataverseCommunityConsortium / dataverse-previewers

A collection of Datafile Previewers that can be configured to work with Dataverse
MIT License
13 stars 38 forks source link

The links in the guide points to the old URLs #38

Closed pkiraly closed 4 years ago

pkiraly commented 4 years ago

The guide shows examples like this:

curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \ "{ \"displayName\":\"Read Text\", \"description\":\"Read the text file.\", \"scope\":\"file\", \"type\":\"explore\", \"hasPreviewMode\":\"true\", \"toolUrl\":\"https://qualitativedatarepository.github.io/dataverse-previewers/previewers/TextPreview.html\", \"toolParameters\": { \"queryParameters\":[ {\"fileid\":\"{fileId}\"}, {\"siteUrl\":\"{siteUrl}\"}, {\"key\":\"{apiToken}\"}, {\"datasetid\":\"{datasetId}\"}, {\"datasetversion\":\"{datasetVersion}\"} ] }, \"contentType\":\"text/plain\" }"

The URL mentioned here (https://qualitativedatarepository.github.io/dataverse-previewers/previewers/) is not available anymore, and generates a 404 error message in dataverse (see https://github.com/IQSS/dataverse/issues/6616 for details).

Please update guides with the following information:

pdurbin commented 4 years ago

As I mentioned at http://irclog.iq.harvard.edu/dataverse/2020-02-06#i_117719

https://globaldataversecommunityconsortium.github.io/dataverse-previewers/previewers/SpreadsheetPreview.html looks like a promising "toolUrl". I see signs of life there:

Screen Shot 2020-02-06 at 6 36 04 AM
pkiraly commented 4 years ago

For the record:

  1. replacing https://qualitativedatarepository.github.io to https://globaldataversecommunityconsortium.github.io seems to be working.

  2. The update process:

a. Get the list of IDs of external tools

curl http://localhost:8080/api/admin/externalTools | jq '.data[].id'

It gives all the IDs of the external tools.

b. Delete external tools individually:

curl -X DELETE http://localhost:8080/api/admin/externalTools/1
curl -X DELETE http://localhost:8080/api/admin/externalTools/2
curl -X DELETE http://localhost:8080/api/admin/externalTools/3
curl -X DELETE http://localhost:8080/api/admin/externalTools/4
curl -X DELETE http://localhost:8080/api/admin/externalTools/5
curl -X DELETE http://localhost:8080/api/admin/externalTools/6
...

c. copy the curl command from the README

d. replace https://qualitativedatarepository.github.io to https://globaldataversecommunityconsortium.github.io

e. run the modified curl commands

qqmyers commented 4 years ago

Thanks Peter – it’s my mistake. I moved the Dataverse-previewers repository to the global consortium organization and did not realize the github.io side went away. I will update the URLs and see about a pull request to change db entries, but in the meantime I’ll try to restore the original URLs as well. The intent was to move the base repo, not to require immediate changes for people using the global URLs.

-- Jim

From: Király Péter [mailto:notifications@github.com] Sent: Thursday, February 06, 2020 6:53 AM To: GlobalDataverseCommunityConsortium/dataverse-previewers Cc: Subscribed Subject: Re: [GlobalDataverseCommunityConsortium/dataverse-previewers] The links in the guide points to the old URLs (#38)

For the record:

  1. replacing https://qualitativedatarepository.github.io to https://globaldataversecommunityconsortium.github.io seems to be working.

  2. The update process:

a. Get the list of IDs of external tools

curl http://localhost:8080/api/admin/externalTools | jq .

It gives all the IDs of the external tools.

b. Delete external tools individually:

curl -X DELETE http://localhost:8080/api/admin/externalTools/1

curl -X DELETE http://localhost:8080/api/admin/externalTools/2

curl -X DELETE http://localhost:8080/api/admin/externalTools/3

curl -X DELETE http://localhost:8080/api/admin/externalTools/4

curl -X DELETE http://localhost:8080/api/admin/externalTools/5

curl -X DELETE http://localhost:8080/api/admin/externalTools/6

...

c. copy the curl command from the README

d. replace https://qualitativedatarepository.github.io to https://globaldataversecommunityconsortium.github.io

e. run the modified curl commands

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/GlobalDataverseCommunityConsortium/dataverse-previewers/issues/38?email_source=notifications&email_token=ABTLRT5YOUAQ5NMCTK4KIM3RBP2YDA5CNFSM4KQ3FGWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK66F6I#issuecomment-582869753, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTLRT5OFSXOQ57OBBZTK5LRBP2YDANCNFSM4KQ3FGWA.

qqmyers commented 4 years ago

Closing: The updates in github and restoration of the QDR github.io site should fix this. If there are further concerns, let us know.