Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

feat: support of http-path multiaddresses#116

Merged
NikolasHaimerl merged 20 commits intomainfrom
nhaimerl-http-path-support
Feb 25, 2025
Merged

feat: support of http-path multiaddresses#116
NikolasHaimerl merged 20 commits intomainfrom
nhaimerl-http-path-support

Conversation

@NikolasHaimerl
Copy link
Contributor

@NikolasHaimerl NikolasHaimerl commented Feb 20, 2025

CHANGELOG

  1. Add support for http-path multi addresses in multiaddrToHttpUrl
  2. Unit tests for http-path links
  3. Integration tests for the error code induced by invalid http-path links

Implementation Plan
Subtask of:
CheckerNetwork/roadmap#239
Related Issue:
CheckerNetwork/piece-indexer#117

bajtos
bajtos previously requested changes Feb 21, 2025
@bajtos

This comment was marked as outdated.

@juliangruber

This comment was marked as outdated.

@NikolasHaimerl

This comment was marked as outdated.

@bajtos

This comment was marked as outdated.

@NikolasHaimerl NikolasHaimerl changed the title Poc for use support of http-path multiaddresses feat: support of http-path multiaddresses Feb 21, 2025
@NikolasHaimerl NikolasHaimerl marked this pull request as ready for review February 21, 2025 09:34
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

Almost there!

Please see my comments below for what to improve.

On aside

The implementation in multiaddrToHttpUrl() is becoming a bit complex too my taste, but I think that's ok:

  • The complexity is fully contained inside multiaddrToHttpUrl(). This function is changed infrequently, so the complexity does not matter that much.
  • We have very high test coverage. It will be easy to refactor this function later because the tests will guide us and prevent regressions.
  • The current implementation supports what we need right now, as demonstrated by the test cases.

NikolasHaimerl and others added 7 commits February 24, 2025 06:47
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Co-authored-by: Julian Gruber <julian@juliangruber.com>
NikolasHaimerl and others added 3 commits February 24, 2025 12:49
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Co-authored-by: Julian Gruber <julian@juliangruber.com>
Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

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

👏

@juliangruber
Copy link
Member

@NikolasHaimerl unfortunately CI currently frequently fails, as IPNI is having issues :|

@juliangruber
Copy link
Member

@juliangruber juliangruber dismissed bajtos’s stale review February 25, 2025 10:49

For some reason GitHub shows me that @bajtos requested changes, but I don't see any open change request.

@NikolasHaimerl NikolasHaimerl merged commit 58a212d into main Feb 25, 2025
2 checks passed
@NikolasHaimerl NikolasHaimerl deleted the nhaimerl-http-path-support branch February 25, 2025 10:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: ✅ done

Development

Successfully merging this pull request may close these issues.

3 participants