question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hydrus can't show nested collections

See original GitHub issue

I’m submitting a

  • bug report.
  • feature request.

Current Behaviour:

hydrus can’t show nested collections. (eg. collection of comments on a particular issue/article)

Expected Behaviour:

Quoting @Mec-iS

we possibly want to return a hyperlink to the collection, not the full collection. same we did for nested object in Flock-Demo.

Possible approach

we can have a hyperlink to the endpoint of nested collection something like

{ 
"@type": "Article", 
"@id": "api/articles/id", 
... 
"comments": "api/articles/id/comments", 
... 
} 

Steps to reproduce:

Run hydrus with real-world-app API Doc I submitted at https://github.com/HTTP-APIs/hydrus-real-world-app/pull/2 (The API Doc is not complete but can be used to reproduce this issue by adding an article and trying to get/retrieve comments related to that article)

Do you want to work on this issue?

Yes

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
Mec-iScommented, May 11, 2019

Am I getting it right or missing something?

Exactly. Please prioritise this #386 and #302 for your first weeks Also for @Guttz, we need these implemented before starting anything with the demo or the client.

Couldn’t agree more, that way we can avoid over-engineering, and utilize these Spec based features directly for adding any extra functionality.

Please take some time to map and list everything we are missing from the spec.

1reaction
xadahiyacommented, Jul 4, 2019

If I am not missing something then it will require us to create a new resource named NestedCollection or something, mapped with api/<Collectiontype>/<ID>/<NestedCollectiontype> and having only get responder.

Exactly! You can then parse and use the child ids of item Collectiontype/<ID> to create a partial collection that will have the type of <NestedCollectiontype>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Treating collections as a resource #416 - HTTP-APIs/hydrus
Nowhere in the spec is it mentioned that a collection is a set of all objects for a given ... hydrus can't show...
Read more >
FAQ - hydrus network
Nesting many folders adds navigation-latency and tends to induce less informative "04.jpg"-type filenames. So, the client tracks files by their hash. This ...
Read more >
Hydrus Manual
The hydrus network client is a desktop application written for Anonymous and other internet enthusiasts with large media collections. It organises your files ......
Read more >
Hydrus Network on Tumblr
It should help fix up some situations where hydrus was having trouble figuring out which URL Class to match sets of nested URLs...
Read more >
Hydrus Network on Tumblr
When the client is like this, do you see any network activity in the ... I am not really happy with how collections...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found