Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request/Idea: Documentation for the API to create and edit harvesting clients #8267

Closed
pdurbin opened this issue Dec 1, 2021 · 2 comments · Fixed by #9174
Closed
Labels
Feature: API Guide Feature: Harvesting NIH OTA: 1.4.1 4 | 1.4.1 | Resolve OAI-PMH harvesting issues | 5 prdOwnThis is an item synched from the product ... pm.GREI-d-1.4.1 NIH, yr1, aim4, task1: Resolve OAI-PMH harvesting issues pm.GREI-d-1.4.2 NIH, yr1, aim4, task2: Create working group on packaging standards
Milestone

Comments

@pdurbin
Copy link
Member

pdurbin commented Dec 1, 2021

Overview of the Feature Request

In pull request #8106 we documented the SERVER side of the harvesting API: https://guides.dataverse.org/en/5.8/api/native-api.html#managing-harvesting-server-and-sets

This issue is for documenting the CLIENT side of the harvesting API

What kind of user is the feature intended for?

API User, Sysadmin

What inspired the request?

Thomas Jouneau asked about it at https://groups.google.com/g/dataverse-community/c/BK2IIc1QUY4/m/DpmiDF-DBgAJ

Any related open or closed issues to this feature request?

pdurbin added a commit that referenced this issue Dec 1, 2021
Create threw errors. Delete doesn't exist.
@pdurbin
Copy link
Member Author

pdurbin commented Dec 1, 2021

In order to reply to the question I had a play with the harvest clients API. I documented what I got working in 1364349 which is listing and editing.

Delete is not implemented. There's a TODO.

I couldn't get create working. Here's the file I was using: harvest-client.json.txt

Exceptions in server.log looked like this:

A system exception occurred during an invocation on EJB GroupServiceBean, method: public java.util.Set edu.harvard.iq.dataverse.authorization.groups.GroupServiceBean.gro
upsFor(edu.harvard.iq.dataverse.engine.command.DataverseRequest,edu.harvard.iq.dataverse.DvObject)]]

javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.IllegalStateException: During synchronization a new object was found through a relatio
nship that was not marked cascade PERSIST: edu.harvard.iq.dataverse.harvest.client.HarvestingClient[ id=null ].

Here's my full log: server.log.txt

@pdurbin
Copy link
Member Author

pdurbin commented Sep 30, 2022

In order to reply to the question I had a play with the harvest clients API. I documented what I got working in 1364349 which is listing and editing.

We should probably limit the scope of this issue to just documenting listing and editing, which is working. There's a commit above to help get started.

We can use this issue to work on getting "create harvesting client via API" to work:

@mreekie mreekie added NIH OTA: 1.4.1 4 | 1.4.1 | Resolve OAI-PMH harvesting issues | 5 prdOwnThis is an item synched from the product ... and removed NIH OTA: 1.4.1 4 | 1.4.1 | Resolve OAI-PMH harvesting issues | 5 prdOwnThis is an item synched from the product ... labels Oct 25, 2022
@pdurbin pdurbin removed Hackathon: Low Hanging Fruit Help Wanted: Documentation Mentor: pdurbin hacktoberfest It's Hacktoberfest! https://groups.google.com/g/dataverse-community/c/n_Nn_T2yA-w/m/BcoXO4tEAQAJ labels Nov 18, 2022
@pdurbin pdurbin added this to the 5.13 milestone Dec 2, 2022
@mreekie mreekie added pm.GREI-d-1.4.1 NIH, yr1, aim4, task1: Resolve OAI-PMH harvesting issues pm.GREI-d-1.4.2 NIH, yr1, aim4, task2: Create working group on packaging standards labels Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: API Guide Feature: Harvesting NIH OTA: 1.4.1 4 | 1.4.1 | Resolve OAI-PMH harvesting issues | 5 prdOwnThis is an item synched from the product ... pm.GREI-d-1.4.1 NIH, yr1, aim4, task1: Resolve OAI-PMH harvesting issues pm.GREI-d-1.4.2 NIH, yr1, aim4, task2: Create working group on packaging standards
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants