-
Notifications
You must be signed in to change notification settings - Fork 57
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
chore: remove json rpc #2416
chore: remove json rpc #2416
Conversation
This PR may contain changes to configuration options of one of the apps. If you are introducing a breaking change (i.e. the set of options in latest release would no longer be applicable) make sure the original option is preserved with a deprecation note for 2 following releases before it is actually removed. Please also make sure the label |
You can find the image built from this PR at
Built from 7d77d2d |
Thanks for this! However, IMO, I think we first need to have a mature REST and I'm afraid we are not in that stage yet. IMO, the best strategy would be:
|
@Ivansete-status mind being more actionable? whats missing in the rest API?
done |
Sure! These are the most relevant outstanding points, without considering bug issues. Private Rest API - #2227 As a reminder, REST tasks were deprioritized in favor of others. @chair28980 - this is something that we could comment on in our next pm meeting and give more priority to that matter. |
In order:
|
Relevant |
in order: 1.- Ok! 2.- 3.- 4.-
On the other hand, we cannot deprecate JSON-RPC abruptly without proper notification to counterparties. i.e. we need to inform that we are starting to deprecate the JSON-RPC and keep this notification for at least two consecutive releases. In other words, we need to start informing other teams/projects to start using REST and once we make sure (assuming 2 releases is enough time) they can work well with REST, then it is fine to decommission JSON-RPC. And btw, thanks again @alrevuelta for this initiative! I think is very interesting to have it completed! @chair28980 @gabrielmer @NagyZoltanPeter - I've added a point for tomorrow's PM session to discuss it |
This one is missing although it was not part of json-rpc so nothing outstanding.
With new targets of go-waku, it will be easier, due to former msalignment between the two implementations.
Yes, this is aiming a small refactoring.
This one also new stuff.
I see nothing blocking here in order to remove json-rpc. |
Btw: |
As agreed, we will announce the deprecation in the current release 0.25.0 and completely remove support in 0.26.0. This PR is blocked till then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have to remove the rpc.sh
script from the Ansible role:
https://github.com/status-im/infra-role-nim-waku/blob/master/templates/rpc.sh.j2
Possibly replace it with something similar that would allow us to get some common types of info via REST API, like version or number of peers, but that's trivial.
Also, the docs for REST API are very sparse, for example I see no info about /admin/v1/peers
endpoint:
https://github.com/waku-org/nwaku/blob/master/docs/api/rest-api.md
I see something here:
https://github.com/waku-org/nwaku/blob/master/waku/waku_api/rest/admin/openapi.yaml
But I see no info about endpoint that returns node version.
@jakubgs please note that API docs had moved and living live here: https://waku-org.github.io/waku-rest-api/#get-/debug/v1/info Version info: curl -X GET "http://127.0.0.1:8645/debug/v1/version" -H "accept: text/plain" |
I see, didn't know that. But if the docs exist there shouldn't the obsolete/outdated one in Also, shouldn't we publish https://waku-org.github.io/waku-rest-api/ under https://rest-api.waku.org/ or https://api.waku.org/? |
Related to removal of RPC API support in: waku-org/nwaku#2416 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Related to removal of RPC API support in: waku-org/nwaku#2416 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Related to removal of RPC API support in: waku-org/nwaku#2416 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Related to removal of RPC API support in: waku-org/nwaku#2416 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Yes, I agree we will need to find a more straightforward place for it instead of a gh pages hosted one. |
74550b7
to
5caacf4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from purely technical point of view!
@gabrielmer to watch out his conflicting work on refactoring wakunode setup.
Also to mention we need to update docs.waku.org as soon as it is released!
cc: @LordGhostX
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally we're removing it! LGTM
@NagyZoltanPeter, thanks for the ping 🫡 I removed references to the JSON-RPC API a long time ago in preference for the REST API. I'll take down the config section once it's released: https://docs.waku.org/guides/nwaku/config-options#json-rpc-config |
With status-im/infra-role-nim-waku#25 merged and js-waku-node CI job ✅ , merging. js-waku-node-optional is a known flaky one. |
Description
rpc
rpcAddress
rpcPort
rpcAdmin
rpcPrivate
From now on, to interact with
nwaku
refer to the REST API.Closes #2053