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

Feat : New Relay rest API for autosharding #822

Merged
merged 8 commits into from
Oct 23, 2023

Conversation

chaitanyaprem
Copy link
Collaborator

Description

Added new REST relay APIs for autosharding.

Changes

  • REST Yaml file
  • Added new relay APIs

Tests

Verified all new API's +ve and -ve scenarios by running a node locally and connecting another node.

@status-im-auto
Copy link

status-im-auto commented Oct 20, 2023

Jenkins Builds

Click to see older builds (19)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 13df00b #1 2023-10-20 23:16:06 ~1 min nix-flake 📄log
✔️ 13df00b #1 2023-10-20 23:16:50 ~2 min linux 📦deb
✔️ 13df00b #1 2023-10-20 23:17:47 ~3 min tests 📄log
✔️ 13df00b #1 2023-10-20 23:17:58 ~3 min tests 📄log
✔️ 13df00b #1 2023-10-20 23:18:56 ~4 min android 📦tgz
✔️ 13df00b #2 2023-10-20 23:18:58 ~4 min ios 📦tgz
✔️ 13df00b #1 2023-10-20 23:19:19 ~5 min ios 📦tgz
✔️ 3b13868 #2 2023-10-20 23:18:02 ~1 min linux 📦deb
✔️ 3b13868 #2 2023-10-20 23:18:25 ~1 min nix-flake 📄log
✔️ 3b13868 #2 2023-10-20 23:19:10 ~1 min tests 📄log
✔️ 3b13868 #2 2023-10-20 23:19:59 ~2 min tests 📄log
✔️ 3b13868 #3 2023-10-20 23:20:32 ~4 min ios 📦tgz
✔️ 3b13868 #2 2023-10-20 23:22:10 ~3 min android 📦tgz
✔️ 37ad04c #3 2023-10-23 18:31:57 ~2 min nix-flake 📄log
✔️ 37ad04c #3 2023-10-23 18:32:18 ~2 min linux 📦deb
✔️ 37ad04c #3 2023-10-23 18:33:17 ~3 min tests 📄log
✔️ 37ad04c #3 2023-10-23 18:33:26 ~3 min tests 📄log
✔️ 37ad04c #4 2023-10-23 18:34:10 ~4 min ios 📦tgz
✔️ 37ad04c #3 2023-10-23 18:34:14 ~4 min android 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9b40262 #5 2023-10-23 18:34:03 ~3 min ios 📦tgz
✔️ 9b40262 #4 2023-10-23 18:34:05 ~2 min nix-flake 📄log
✔️ 9b40262 #4 2023-10-23 18:35:36 ~3 min linux 📦deb
✔️ 9b40262 #4 2023-10-23 18:37:06 ~3 min tests 📄log
✔️ 9b40262 #4 2023-10-23 18:37:54 ~4 min tests 📄log
✔️ 9b40262 #4 2023-10-23 18:37:59 ~3 min android 📦tgz
✔️ e6ec939 #5 2023-10-23 20:28:31 ~1 min tests 📄log
✔️ e6ec939 #5 2023-10-23 20:28:42 ~1 min nix-flake 📄log
✔️ e6ec939 #5 2023-10-23 20:29:04 ~2 min linux 📦deb
✔️ e6ec939 #6 2023-10-23 20:30:26 ~3 min ios 📦tgz
✔️ e6ec939 #5 2023-10-23 20:30:31 ~3 min android 📦tgz
✖️ e6ec939 #5 2023-10-23 20:32:38 ~5 min tests 📄log
✔️ e6ec939 #6 2023-10-23 20:44:48 ~3 min tests 📄log

cmd/waku/server/rest/relay.go Dismissed Show dismissed Hide dismissed
cmd/waku/server/rest/relay.go Fixed Show fixed Hide fixed
cmd/waku/server/rest/relay.go Fixed Show fixed Hide fixed
cmd/waku/server/rest/relay.go Show resolved Hide resolved
cmd/waku/server/rest/relay.go Outdated Show resolved Hide resolved
cmd/waku/server/rest/relay.go Outdated Show resolved Hide resolved
cmd/waku/server/rest/relay.go Show resolved Hide resolved
cmd/waku/server/rest/relay_api.yaml Outdated Show resolved Hide resolved
cmd/waku/server/rest/relay.go Show resolved Hide resolved
cmd/waku/server/rpc/relay.go Show resolved Hide resolved
cmd/waku/server/rest/relay.go Outdated Show resolved Hide resolved
var err error
_, err = r.node.Relay().Subscribe(r.node.Relay().Context(), protocol.NewContentFilter("", cTopics...))
if err != nil {
r.log.Error("subscribing to topics", zap.Strings("contentTopics", cTopics), zap.Error(err))

Check failure

Code scanning / CodeQL

Log entries created from user input High

This log entry depends on a
user-provided value
.

_, err = r.node.Relay().Publish(req.Context(), message)
if err != nil {
r.log.Error("publishing message", zap.Error(err))

Check failure

Code scanning / CodeQL

Log entries created from user input High

This log entry depends on a
user-provided value
.
@chaitanyaprem
Copy link
Collaborator Author

@harsh-98 , can't merge this as you have requested changes.
Already made them, you will have to approve from you side for me to merge.

@harsh-98
Copy link
Contributor

lgtm.

@chaitanyaprem chaitanyaprem merged commit ab65c48 into master Oct 23, 2023
10 of 11 checks passed
@chaitanyaprem chaitanyaprem deleted the feat/relay-rest-api-autoshard branch October 23, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants