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

refactor(iroh-blobs)!: implement some collection related things on the client side #2349

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Jun 6, 2024

Description

A collection is just one particular way to use a hashseq, so it feels a bit weird to have it baked in to the iroh node. With this we can move some of it into the client.

This is a part of #2272 . We can make more similar changes once we have the batch API #2339 .

Breaking Changes

Notes & open questions

Note: I closed #2272 because half of the changes in that PR are here, the other half will be part of the batch PR, and moving collections into iroh I am not convinced of yet...

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@rklaehn rklaehn force-pushed the remove-collection-rpc branch from a8534ef to f32c2a5 Compare June 6, 2024 13:03
@rklaehn rklaehn marked this pull request as ready for review June 6, 2024 13:04
@rklaehn rklaehn requested a review from dignifiedquire June 6, 2024 13:10

async fn list_collections_impl(&self, co: &Co<Result<CollectionInfo>>) -> Result<()> {
let tags = self.tags_client();
let mut tags = tags.list().await?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the filtering I mentioned on the other PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My opinion is that we don't need it since you should not have that many tags. But we can add it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you end up with a lot of tags through documents?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

documents don't use tags as of now. they just inject a set of hashes to be left alone.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they just inject a set of hashes to be left alone.

wait, how are they marking them as such then? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is just a hook where you can feed it hashes...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

In case somebody makes a million tags for stuff...
@dignifiedquire dignifiedquire changed the title refactor(iroh-blobs): implement some collection related things on the client side refactor(iroh-blobs)!: implement some collection related things on the client side Jun 6, 2024
@rklaehn rklaehn enabled auto-merge June 6, 2024 13:33
@rklaehn rklaehn added this pull request to the merge queue Jun 6, 2024
Merged via the queue into main with commit b047b28 Jun 6, 2024
26 checks passed
@rklaehn rklaehn deleted the remove-collection-rpc branch November 20, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants