IQSS logo

IRC log for #dataverse, 2020-06-09

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.

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

All times shown according to UTC.

Time S Nick Message
07:14 pallingerp joined #dataverse
08:12 jri joined #dataverse
08:16 poikilotherm Hi Grishfish !
08:16 poikilotherm You can alter any metadata (as long as you have sufficient rights), which will create a new version and set this version to a draft state.
08:17 poikilotherm I assume you want to change your data publication once your article is published
08:19 poikilotherm Many publishers already request a DOI for your data before publishing the article. So you would create your data pub in Dataverse first and get it publish (so you have a DOI to hand over to the publisher)
08:19 poikilotherm When your article or other text publication has been peer-reviewed and finally published / you receive a DOI for it (whatever comes first...), you can edit the metadata of your data publication and add the related text publicatio
08:20 poikilotherm This will be a new version of your dataset in Dataverse, but when that version is published, the DOI is not changed. Versions are being tracked.
08:20 poikilotherm The DOI of a dataset always points to the latest published version :-)
09:37 jri_ joined #dataverse
12:32 donsizemore joined #dataverse
13:43 poikilotherm pdurbin: it's a hard life for a dev, getting ExceptionMappers in place for JAX RS endpoints...
13:51 pdurbin poikilotherm: who's giving you ExceptionMappers? And thanks for replying about metadata above.
13:53 poikilotherm I'm giving them to me myself :-D
13:53 poikilotherm Getting rid of boilerplate try catches in REST endpoints.
13:54 pdurbin Is this in your fork of Dataverse?
13:54 poikilotherm I will push this to upstream
13:55 poikilotherm And only touching new parts, not moving others.
13:55 poikilotherm Small chunks :-D
13:57 pdurbin You don't like the WrappedExceptions?
13:58 poikilotherm They aren't used consistently
13:58 poikilotherm In a lots of places you'll find a try catch for Exception, just to create a response.
14:00 poikilotherm WrappedExceptions is mostly used when logic is kicking in. Like when you check for things to be present, etc. But there is no good treatment for things like JsonParseException
14:01 poikilotherm Mostly they are catched with a catchall "Exception e", directly stuffed into a response, navigating around WrappedException
14:03 poikilotherm I came across a bean validation exception, where the JPA layer was failing persistence because of missing attributes. The violations are hidden inside the exception and you have to dig them out. The message is just saying "look at the details". So the catch all try-catch with Exception e was of no use for this to get an idea what really was going on...
14:14 pdurbin Yeah, like checking for users or datasets to be present.
14:24 poikilotherm pdurbin if you feel like it, take a glimpse at the new mappers: https://jugit.fz-juelich.de/fdm/dev/dataverse/-/commit/6e21510fd067255b58c94dc71b6a26b0fe973ace
14:29 pdurbin I see... so we have a bunch of these already, like ArrayOutOfBoundsExceptionHandler. This is all Michael's code.
14:30 poikilotherm Aye
14:30 poikilotherm Not reinventing the wheel here :-D
14:31 poikilotherm Just extending and enhancing
14:31 poikilotherm Obviously the real code would need to be changed. Some day. As it is with Dataverse :-D
14:32 pdurbin Some day all the code will be beautiful.
14:38 poikilotherm I'm very happy with my very minimalistic peristence function :-)
14:39 poikilotherm https://jugit.fz-juelich.de/fdm/dev/dataverse/-/blob/6936-fzj-domaingroups/src/main/java/edu/harvard/iq/dataverse/authorization/groups/impl/maildomain/MailDomainGroupServiceBean.java#L114-144
14:41 pdurbin You're using Optional. Fun.
14:44 poikilotherm Yes :-)
14:44 poikilotherm More Java 8 :-D
14:45 pdurbin yeah
14:46 poikilotherm It's so nice to make this explicit instead of using null...
14:48 pdurbin yeah
14:48 pdurbin I mean, I've been to talks about it. I have a book about it (stuck in my office). I just haven't gotten into it yet.
15:18 poikilotherm Well well well, this doesn't look to bad. No more crashes :-D Testing for real group support tomorrow. Cu all
15:18 pdurbin o/
15:19 juancorr joined #dataverse
17:12 jri joined #dataverse
17:34 jri joined #dataverse
18:10 jri joined #dataverse
18:19 jri joined #dataverse

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

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.