Skip to content

Connectrpc info api #4017

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

Closed
wants to merge 8 commits into from
Closed

Connectrpc info api #4017

wants to merge 8 commits into from

Conversation

mpignatelli12
Copy link
Contributor

Why this should be merged

How this works

How this was tested

Need to be documented in RELEASES.md?

@joshua-kim joshua-kim linked an issue Jun 18, 2025 that may be closed by this pull request
@joshua-kim joshua-kim moved this to In Progress 🏗️ in avalanchego Jun 18, 2025
@joshua-kim joshua-kim self-requested a review June 18, 2025 18:49
Comment on lines +29 to +32
type ConnectInfoService struct {
*info.Info
}
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed offline, it's do this in the info package in service.go. This should make the diff easier to review, and is more aligned with the goal of this project of migrating the existing api rather than removing one and adding a new one. This is kind of implemented in a nice way since we just wrap the old api and convert it into the new response type, but I just don't want the repo in an inconsistent state where we have two sets of apis.


// Request node version
fmt.Println("Fetching node version...")
versionResp, err := client.GetNodeVersion(
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove this file from the PR - since it seems to be used for manual testing purposes. If you want to test this PR you can follow some examples from our docs https://build.avax.network/docs/api-reference/info-api#infogetnodeversion that use curl from the command line to issue requests

@joshua-kim joshua-kim force-pushed the connectrpc-info-api branch from a0d0c8b to 559e0d8 Compare June 20, 2025 17:04
joshua-kim and others added 8 commits June 24, 2025 18:28
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
@joshua-kim joshua-kim force-pushed the connectrpc-info-api branch from 854da11 to e8c5de4 Compare June 25, 2025 17:18
@joshua-kim
Copy link
Contributor

Looks like this was moved to #4033

@joshua-kim joshua-kim closed this Jul 8, 2025
@github-project-automation github-project-automation bot moved this from In Progress 🏗️ to Done 🎉 in avalanchego Jul 8, 2025
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.

Migrate info api to connectrpc
2 participants