Fetch hierarchy structure of all collections of a user
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
I have used the following url to fetch user collections (by sending user api token):
${dataverse_url}/api/search?q=*&type=dataverse&sort=date&order=desc
And it returned the following structure:
{
q: '*',
total_count: 7,
start: 0,
spelling_alternatives: {},
items: [
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: '59a7d6f8-ce52-417e-a5c0-dfd7695e41fd',
description: '',
published_at: '2024-04-22T13:35:33Z'
},
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: '70f86a0d-7763-40e0-b14a-f207e0d1ea98',
description: '',
published_at: '2024-04-22T13:21:55Z'
},
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: '53b4e2eb-c404-4156-aca9-abb5276378a7',
description: '',
published_at: '2024-04-22T11:52:59Z'
},
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: '9679bdfe-7d6f-48dc-af73-4c1c95e149ce',
description: '',
published_at: '2024-04-22T11:42:46Z'
},
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: 'b05db8c1-53dd-46dc-96e4-d08672178749',
description: '',
published_at: '2024-04-22T11:42:10Z'
},
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: 'pantabio',
published_at: '2024-04-19T15:01:32Z'
},
{
name: 'some_name';
type: 'dataverse',
url: 'some_url',
identifier: 'my-dataverse',
published_at: '2024-04-17T07:06:41Z'
}
],
count_in_response: 7
}
My intention is to show all collections that the user has access to (and can create a nested collection in them). I also need to show this data in a hierarchy tree so that it is clear to the user that what collection is child of what collection and so on.
Related discussions:
Contributor 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.
Research direction
Start with the documented /api/search request and compare its results with the hierarchy-tree and access requirements in the issue. Read the two linked Zulip discussions for existing context and decisions. Done means an agreed way to retrieve accessible collections with parent-child structure so clients can display the complete hierarchy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100