API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collection
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with src/main/java/edu/harvard/iq/dataverse/engine/command/impl/GetLinkingDataverseListCommand.java, especially the loop around lines 95–100 linked in the issue. Trace how it collects unlinkable collections and check the relevant tests for this command or API. Done means the endpoint returns all unlinkable collections when a dataset is linked to more than one.
Written by the indexing model from the issue text.
Description
What steps does it take to reproduce the issue?
Use /api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true to request a list of collections to which a dataset is currently linked/can be unlinked from.
The API only returns at most 1 collection, even if there are more.
The loop seems to return too early, see:
- What did you expect to happen?
All unlinkable collections to be returned
Which version of Dataverse are you using?
v6.10.1, but bug seems to be present in develop as well
Any related open or closed issues to this bug report?
Did not find any
Are you thinking about creating a pull request for this issue?
Yes
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 571
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IQSS/dataverse
-
XLSX ingest fails when first worksheet row has no spans attributePossibly taken @adityaanikam claimed this 8 days ago. OpenType: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IQSS/dataverse#12856 · 1 comment ·
Maintainers usually reply within 1 day
-
Return to Author unreachable when a dataset in review has incomplete metadataPossibly taken @ErykKul claimed this 13 days ago. OpenType: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
IQSS/dataverse#12837 · 2 comments · 2 reactions ·
Maintainers usually reply within 1 day
-
Language controlled vocabulary displays 'Logudorese Sardinian, Croatian' instead of 'Croatian'Possibly taken @dpavlin claimed this 17 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
IQSS/dataverse#12818 · 1 comment · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Release Size: 30
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
WalletConnect/walletconnect-monorepo#7389 · 1 comment ·
-
help wanted testing
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
elhajahmadj/offline-emergency-library#108 ·
Maintainers usually reply within 1 day
-
Add documentation for Transaction-bound OTP generationPossibly taken @radimtrojek-rgb claimed this today. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
wultra/powerauth-nextstep#86 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
OpenLineage/OpenLineage#5138 ·
Maintainers usually reply within 2 days
-
javaoperatorsdk.client.oauth-token has no effect on the Kubernetes clientPossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100