Skip to content

feat: support of http-path multiaddresses #116

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

Merged
merged 20 commits into from
Feb 25, 2025

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
NikolasHaimerl and others added 3 commits February 24, 2025 12:49
Co-authored-by: Julian Gruber <[email protected]>
Co-authored-by: Julian Gruber <[email protected]>
Co-authored-by: Julian Gruber <[email protected]>
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

3 participants