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

Changes required for #968 feat/Gateway #989

Merged
merged 9 commits into from Sep 5, 2017

Conversation

ya7ya
Copy link
Contributor

@ya7ya ya7ya commented Sep 4, 2017

These are some of the required Changes by @diasdavid to merge #968

  • use unix-fs to detect directories
  • check for CID not hashes
  • use js-ipfs-repo instead of go-ipfs-repo for testing gateway
  • GATEWAY can be Gateway as it is not an acronym

harshjv and others added 8 commits August 29, 2017 09:23
* clean up, remove commented out lines.

* cleaning code, removing commented out blocks.

* gateway initial tests.
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
…checks

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
describe('HTTP GATEWAY', () => {
const repoExample = path.join(__dirname, '../go-ipfs-repo')
describe('HTTP Gateway', () => {
const repoExample = path.join(__dirname, '../js-ipfs-repo')
Copy link
Member

Choose a reason for hiding this comment

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

Hi @ya7ya. It seems I didn't explain myself well. What I mean is that there should be no "repo copying" either from a previously generated go-ipfs or js-ipfs node. When you spawn a daemon after doing init, it will have its own repo created, that is what should be used for testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@diasdavid oh, Ma bad, I'll fix that. Sorry.

Copy link
Member

@daviddias daviddias Sep 5, 2017

Choose a reason for hiding this comment

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

No, my bad for not being clear, I'm sorry. Thank you for pushing this :)

@daviddias daviddias merged commit 2349f1e into ipfs:feat/gateway Sep 5, 2017
@daviddias
Copy link
Member

Thank you @ya7ya :)

@ya7ya
Copy link
Contributor Author

ya7ya commented Sep 5, 2017

@diasdavid 👍 :) Thank you for your review and comments, I appreciate it

daviddias pushed a commit that referenced this pull request Sep 6, 2017
* feat: add gateway route to daemon

* feat: adding Gateway endeavour - improve codebase

* clean up, remove commented out lines. (#971)

* clean up, remove commented out lines.

* cleaning code, removing commented out blocks.

* gateway initial tests.

* clean up , working tests on node v8.4.0

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>

* fix using js-ipfs-repo in gateway tests.

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>

* Using unix-fs to detect dirs, replacing object.get with DAG.get, CID checks

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>

* rename checkHash -> checkCID

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>

* gateway tests: init a fresh repo
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
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.

None yet

3 participants