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

feat: ipfs-http-client -> kubo-rpc-client #2098

Merged
merged 19 commits into from
Mar 13, 2023

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Feb 10, 2023

fixes #2079

Note that this PR includes patches for kubo-rpc-client and ipld-explorer-components, both of which have PRs out:

fix: error rendering peerId

fix: peers table on peerspage

fix: statusPage -> advanced -> addresses

fix: most e2e tests working with kubo-rpc-client

chore: update to go-ipfsv0.18.1
@SgtPooki SgtPooki requested a review from a team as a code owner February 10, 2023 21:35
@SgtPooki SgtPooki linked an issue Feb 10, 2023 that may be closed by this pull request
@SgtPooki SgtPooki temporarily deployed to Deploy February 10, 2023 21:40 — with GitHub Actions Inactive
@SgtPooki SgtPooki self-assigned this Feb 10, 2023
@lidel
Copy link
Member

lidel commented Feb 13, 2023

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

(if we were missing tests for these, we should add them as part of this PR, to avoid regressions in the future)

Copy link
Contributor

@whizzzkid whizzzkid left a comment

Choose a reason for hiding this comment

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

nits and @lidel's concerns

test/e2e/setup/ipfs-backend.js Show resolved Hide resolved
package.json Show resolved Hide resolved
@SgtPooki SgtPooki temporarily deployed to Deploy February 14, 2023 18:43 — with GitHub Actions Inactive
@SgtPooki
Copy link
Member Author

@lidel have those fixed locally except for the main dag text appearing differently. working on that now

@SgtPooki SgtPooki temporarily deployed to Deploy February 16, 2023 02:27 — with GitHub Actions Inactive
@SgtPooki SgtPooki temporarily deployed to Deploy February 16, 2023 21:06 — with GitHub Actions Inactive
@SgtPooki
Copy link
Member Author

@lidel I addressed your comments, but using some of those examples are too slow for the e2e tests so I created some different CIDs that we can use to test that things are loading properly.

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

(mind this is late friday, so maybe i am testing wrong cid, but...)

I tested bafybeifj4cifkrs5msfcfqqrbovoxtptdgmgt3ce6nvbwitfzy6gvqekl4 from fleek preview on this PR and examples are still broken, but one level deeper :)

@SgtPooki SgtPooki temporarily deployed to Deploy February 20, 2023 19:36 — with GitHub Actions Inactive
@SgtPooki
Copy link
Member Author

got repro of the failure with XKCD in e2e test at d542fea

@SgtPooki SgtPooki temporarily deployed to Deploy February 20, 2023 20:00 — with GitHub Actions Inactive
@SgtPooki SgtPooki temporarily deployed to Deploy February 22, 2023 19:10 — with GitHub Actions Inactive
@SgtPooki SgtPooki requested a review from lidel February 22, 2023 19:34
@SgtPooki
Copy link
Member Author

@lidel I fixed the issue you brought up, and then found that the next level was not traversable, and fixed that.. but the test still only tests one level deep. i'm updating the test to walk as far down as possible now.

@SgtPooki SgtPooki temporarily deployed to Deploy February 22, 2023 20:00 — with GitHub Actions Inactive
@SgtPooki
Copy link
Member Author

@lidel @whizzzkid This is ready for review

Copy link
Contributor

@whizzzkid whizzzkid left a comment

Choose a reason for hiding this comment

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

nits, lgtm

src/bundles/ipfs-provider.js Outdated Show resolved Hide resolved
src/components/address/Address.js Show resolved Hide resolved
test/e2e/explore.test.js Outdated Show resolved Hide resolved
test/e2e/explore.test.js Show resolved Hide resolved
SgtPooki and others added 2 commits February 24, 2023 16:41
Co-authored-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
@SgtPooki SgtPooki temporarily deployed to Deploy February 25, 2023 00:46 — with GitHub Actions Inactive
@SgtPooki SgtPooki temporarily deployed to Deploy February 25, 2023 02:09 — with GitHub Actions Inactive
@SgtPooki SgtPooki temporarily deployed to Deploy February 27, 2023 17:28 — with GitHub Actions Inactive
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

@@ -0,0 +1,355 @@
diff --git a/node_modules/ipld-explorer-components/dist/bundles/explore.js b/node_modules/ipld-explorer-components/dist/bundles/explore.js
Copy link
Member

@lidel lidel Mar 2, 2023

Choose a reason for hiding this comment

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

💭 I assume this patching will go away after ipfs/ipld-explorer-components#356 is bubbled up, so I did not review this.

test/e2e/explore.test.js Show resolved Hide resolved
@SgtPooki
Copy link
Member Author

Since i've confirmed issues with apollo archive are fixed locally, and tests are diving fully into the XKCD archives, i'm going to merge this, though I created a follow up issue for addressing test concerns: #2106

@SgtPooki SgtPooki merged commit 5e53c79 into main Mar 13, 2023
@SgtPooki SgtPooki deleted the 2079-feat-replace-ipfs-http-client-with-kubo-rpc-client branch March 13, 2023 18:06
ipfs-gui-bot pushed a commit that referenced this pull request Apr 24, 2023
## [3.0.0](v2.22.0...v3.0.0) (2023-04-24)

 CID `bafybeic4gops3d3lyrisqku37uio33nvt6fqxvkxihrwlqsuvf76yln4fm`

 ---

### ⚠ BREAKING CHANGES

* migrate to ESM (#2092)

### Features

* ipfs-http-client -> kubo-rpc-client ([#2098](#2098)) ([5e53c79](5e53c79)), closes [#issuecomment-1426219633](https://github.com/ipfs/ipfs-webui/issues/issuecomment-1426219633) [/github.com//issues/2079#issuecomment-1426337490](https://github.com/ipfs//github.com/ipfs/ipfs-webui/issues/2079/issues/issuecomment-1426337490)
* migrate to ESM ([#2092](#2092)) ([58a737c](58a737c))

### Bug Fixes

* e2e/explore.test.js succeeds in offline mode ([#2109](#2109)) ([a5e9ac6](a5e9ac6))
* ko language falls back to ko-KR ([#2102](#2102)) ([3369800](3369800))
* semantic release custom notes import ([#2113](#2113)) ([2f9f306](2f9f306))

### Trivial Changes

* add NetworkTraffic.stories.js ([#2094](#2094)) ([7a3bf46](7a3bf46))
* pull new translations ([#2101](#2101)) ([cbabac3](cbabac3))
* pull new translations ([#2104](#2104)) ([4a691a2](4a691a2))
* Pull transifex translations ([#2088](#2088)) ([a5b8a1c](a5b8a1c))
* Pull transifex translations ([#2091](#2091)) ([d209863](d209863))
* Pull transifex translations ([#2099](#2099)) ([1cf2fe7](1cf2fe7))
* Pull transifex translations ([#2111](#2111)) ([57d9b63](57d9b63))
@ipfs-gui-bot
Copy link
Collaborator

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat!: replace ipfs-http-client with kubo-rpc-client
4 participants