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

Fix/routing put cmd #10205

Merged
merged 3 commits into from
Nov 8, 2023
Merged

Fix/routing put cmd #10205

merged 3 commits into from
Nov 8, 2023

Conversation

aschmahmann
Copy link
Contributor

@aschmahmann aschmahmann commented Nov 7, 2023

Fixed two oddities in the routing put command (noticed while setting up gateway conformance tests):

  1. It always returned the host's peerID instead of the one for the record being put
  2. There was some logic around hinting at offline mode but it wasn't used for Routing().Put

There's an implicitly breaking change here where /pk records used to work but won't anymore due to the check on a valid IPNS name, although /pk records are not mentioned in the help text at all. This is easily fixable, but before fixing seems like we should agree on if we should (and if so add a test)

@aschmahmann aschmahmann requested a review from a team as a code owner November 7, 2023 00:00
Copy link
Member

@hacdias hacdias left a comment

Choose a reason for hiding this comment

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

Assuming my test fix works, lgtm, thanks for this. Maybe add a changelog entry, or label skip/changelog if you don't think it's worthy.

@aschmahmann aschmahmann added the skip/changelog This change does NOT require a changelog entry label Nov 8, 2023
@aschmahmann aschmahmann merged commit 9371d18 into master Nov 8, 2023
23 of 24 checks passed
@aschmahmann aschmahmann deleted the fix/routing-put-cmd branch November 8, 2023 06:07
hacdias added a commit that referenced this pull request Nov 8, 2023
* fix(commands): routing put command returns the IPNS ID rather than the host's ID

* fix(commands): routing put command errors with the allow-offline hint if the error is an offline error

* fix: test expects correct error message

---------

Co-authored-by: Henrique Dias <hacdias@gmail.com>
hacdias added a commit that referenced this pull request Nov 8, 2023
* fix(commands): routing put command returns the IPNS ID rather than the host's ID

* fix(commands): routing put command errors with the allow-offline hint if the error is an offline error

* fix: test expects correct error message

---------

Co-authored-by: Henrique Dias <hacdias@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does NOT require a changelog entry
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants