Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: jsipfs add --only-hash #1233

Merged
merged 10 commits into from
Mar 16, 2018
Merged

Conversation

JonKrone
Copy link
Contributor

@JonKrone JonKrone commented Feb 22, 2018

This enables generating a would-be hash for content via http or cli: jsips add --only-hash <file>, ipfs.add(<content>, { onlyHash: true })

image

Turns out unix-fs-engine has been ready for this since ipfs-inactive/js-ipfs-unixfs-engine#183.

Depends on:

Related issues:

ipfs-inactive/js-ipfs-http-client#509
#1205

@ghost ghost assigned JonKrone Feb 22, 2018
@ghost ghost added the status/in-progress In progress label Feb 22, 2018
@daviddias daviddias changed the base branch from master to only-hash March 15, 2018 16:00
@daviddias
Copy link
Member

This PR needs ipfs-inactive/js-ipfs-http-client#700 to be released. Meanwhile, @JonKrone can you fix the merge conflicts?

1 similar comment
@daviddias
Copy link
Member

This PR needs ipfs-inactive/js-ipfs-http-client#700 to be released. Meanwhile, @JonKrone can you fix the merge conflicts?

@JonKrone
Copy link
Contributor Author

Great. While waiting for ipfs-inactive/js-ipfs-http-client#700 to be in a release, I am working on ipfs/js-ipfsd-ctl#212

@JonKrone
Copy link
Contributor Author

Update: This is ready as soon as the next release of ipfs-api is out :). Just needs a code review and CI rerun after that.

@daviddias
Copy link
Member

Merging into the branch so that I can then update the deps.

@daviddias daviddias merged commit 5e5fc96 into ipfs:only-hash Mar 16, 2018
@ghost ghost removed the status/in-progress In progress label Mar 16, 2018
daviddias pushed a commit that referenced this pull request Mar 16, 2018
* add --only-hash flag

* skeleton http option passing, checkpoint commit to check some broken tests.

* deep logging for debugging. Checkpoint

* found the levledown problem! line endings!

* add only-hash as a qs option for the send-files-stream. Also added some tests to help me figure that out

* update --only-hash test, increase timeout for the afterAll hook. I think it takes longer because the --only-hash test leaves an unresolved ipfs.ls command. Would love to be able to cancel it :)

* ipfs-exec/ipfs.fail should throw on a non-failing command && use random file for ipfs add --only-hash test.

* fix an ipfs config test.

* lint

* clean: move test/http-api/extra/files.js to test/http-api/files.js
daviddias added a commit that referenced this pull request Mar 17, 2018
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
* chore: update go-ipfs-dep

* chore: build webworkers separately
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants