IQSS logo

IRC log for #dvn, 2014-05-30

We've moved! Please join #dataverse instead. The new logs are at http://irclog.iq.harvard.edu/dataverse/today

| Channels | #dvn index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
07:58 shauna joined #dvn
13:17 LyndsySimon joined #dvn
13:43 LyndsySimon joined #dvn
13:54 LyndsySimon joined #dvn
14:26 pdurbin jeffspies: how interested in this is OSF? https://trello.com/c/KgGf95Xm/2-design-a-way-to-release-dataverses-via-an-api-call
14:26 jwhitney joined #dvn
14:27 pdurbin jwhitney: same question :)
14:28 pdurbin not having this is getting in the way of my integration tests. it's a pain to have to go to the gui to publish/release dataverses. but! i have it working in some uncommitted code. via sword. :)
14:29 jwhitney pdurbin: oh, nice!
14:30 jwhitney it would be great to let journal managers release Dataverses through the plugin.
14:35 pdurbin jwhitney: yeah, that's what I figured
14:35 pdurbin I know we talked about this way back
14:42 pdurbin jwhitney: the interesting thing is that I need to return a receipt. but up until now all receipts have been for studies/datasets
14:55 jwhitney how are you using sword now, to release the dataverse?
14:57 axfelix joined #dvn
14:58 pdurbin jwhitney: curl -X POST -H 'In-Progress: false' https://pete:pete@localhost:8181/dvn/api/data-depos​it/v1/swordv2/edit/dataverse/nejc
14:58 pdurbin i.e. very similar to how it's done with datasets/studies. just a different target
14:59 jwhitney righto.
15:01 pdurbin but then I need to return an "edit" rel in the deposit receipt like this: <link href="https://pdurbin.pagekite.me:8181/dvn/api/data-deposit/v1/swordv2/edit/dataverse/nejc" rel="edit"/>
15:01 pdurbin and if you do a GET on that URL... "SwordError: Unsupported target type (dataverse) in URL"
15:02 pdurbin because we haven't really done a ton with dataverses via sword, apart from listing datasets/studies
15:02 pdurbin anyway, just thinking out loud
15:05 pdurbin hmm, right. we have "collection" in the url instead... https://pete:pete@localhost:8181/dvn/api/data-deposit/​v1/swordv2/collection/dataverse/nejc ... maybe I should use that instead for the "edit" ... hmm
15:07 jwhitney from the plugin's perspective, all that matters (now) is the http response.
15:07 jwhitney but for spec compliance, collection could work, I think
15:07 pdurbin could be. need to go look at the spec
15:10 jwhitney err, sorry. Not compliance, but collection might work until if/when edit rel for dataverse objects avail.
15:17 pdurbin jwhitney: yeah. another way I could go with this is to say "please use the native (json) api to release dataverses" ... not sure how that grabs you
15:17 pdurbin (or to create dataverses)
15:21 jwhitney I think it makes more sense than stretching sword into places it doesn't easily fit.
15:25 pdurbin yeah. maybe I'll just get it working in sword and move it to the native api
15:38 pdurbin jwhitney: something else that's on my mind is the "v1" that's in the sword URLs right now. could the OJS plugin ever support more than one URL? v1 and also v1.1 or v2?
15:47 jwhitney Yes, it could ask a DVN which version of the API it supports.
15:51 pdurbin and if one day (the day a Dataverse installation upgrades from 3.x to 4.0) the v1 URLs disappear (or start throwing errors and explanations of new URLs), the plugin could cope with that? it could try v1.1 or v2?
15:51 jwhitney Not now, but it could. Studies identified by DOI, and files identitied by ID should be enough.
15:53 pdurbin hmm
15:53 pdurbin jwhitney: let's talk about this more over a google hangout or in the next meeting. all this URL v1 business
15:54 pdurbin I'm distracted. sorry
15:55 jwhitney Sure, I'm working on other stuff today so also jumping back & forth.
15:56 pdurbin ok. I also put some thought about this in the google doc: https://docs.google.com/document/d/11DpdKyp1tagmaJAAzRqQBEZEZ69WOOOYsoqhz8UsfNM/edit?usp=sharing
15:56 pdurbin and talked to axfelix about it yesterday
17:22 jeffspies @pdurbin pretty interested. We'll need to loop robert in, but I think that would be helpful.
17:26 pdurbin jeffspies: ok. thanks, I figured. I had already dragged it to "Doing" in Trello a while back.
18:12 LyndsySimon joined #dvn
19:04 pdurbin ok, pushed. I mentioned both of you ( jwhitney and jeffspies ) here: https://redmine.hmdc.harvard.edu/issues/3225#note-2 . thanks
20:33 LyndsySimon joined #dvn
21:43 LyndsySimon joined #dvn
22:04 LyndsySimon joined #dvn
22:21 LyndsySimon joined #dvn

| Channels | #dvn index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

We've moved! Please join #dataverse instead. The new logs are at http://irclog.iq.harvard.edu/dataverse/today