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: add peer api to consider protocols passed #903

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

chaitanyaprem
Copy link
Collaborator

Description

REST API to add peer was not considering protocols that are passed in the request.

Changes

  • Specify list of protocols
  • Add debug and error logs in admin REST API

Tests

@status-im-auto
Copy link

status-im-auto commented Nov 15, 2023

Jenkins Builds

Click to see older builds (28)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 931576f #1 2023-11-15 05:40:36 ~2 min nix-flake 📄log
✔️ 931576f #1 2023-11-15 05:41:53 ~3 min tests 📄log
✔️ 931576f #1 2023-11-15 05:42:36 ~4 min tests 📄log
✔️ 931576f #1 2023-11-15 05:42:59 ~4 min android 📦tgz
✔️ 931576f #1 2023-11-15 05:46:39 ~8 min ios 📦tgz
✔️ 931576f #1 2023-11-15 05:49:40 ~11 min linux 📦deb
✔️ 1f244c2 #2 2023-11-15 09:19:54 ~1 min linux 📦deb
✔️ 1f244c2 #2 2023-11-15 09:20:59 ~2 min nix-flake 📄log
✔️ 1f244c2 #2 2023-11-15 09:22:21 ~3 min android 📦tgz
✔️ 1f244c2 #2 2023-11-15 09:22:44 ~3 min tests 📄log
✔️ 1f244c2 #2 2023-11-15 09:23:24 ~4 min tests 📄log
✔️ 1f244c2 #2 2023-11-15 09:23:55 ~5 min ios 📦tgz
✔️ fc35af9 #3 2023-11-15 09:32:01 ~1 min linux 📦deb
✔️ fc35af9 #3 2023-11-15 09:32:14 ~1 min tests 📄log
✔️ fc35af9 #3 2023-11-15 09:33:22 ~2 min nix-flake 📄log
✔️ fc35af9 #3 2023-11-15 09:34:07 ~3 min android 📦tgz
✔️ fc35af9 #3 2023-11-15 09:34:23 ~3 min tests 📄log
✔️ fc35af9 #3 2023-11-15 09:35:24 ~4 min ios 📦tgz
✔️ e62c741 #4 2023-11-15 14:28:20 ~1 min nix-flake 📄log
✔️ e62c741 #4 2023-11-15 14:29:00 ~2 min tests 📄log
✔️ e62c741 #4 2023-11-15 14:29:00 ~2 min linux 📦deb
✔️ e62c741 #4 2023-11-15 14:30:05 ~3 min android 📦tgz
✔️ e62c741 #4 2023-11-15 14:30:44 ~4 min tests 📄log
✔️ e62c741 #4 2023-11-15 14:32:11 ~5 min ios 📦tgz
✔️ 895080f #5 2023-11-15 14:30:32 ~2 min nix-flake 📄log
✔️ 895080f #5 2023-11-15 14:30:35 ~1 min linux 📦deb
✔️ 895080f #5 2023-11-15 14:31:35 ~4 min ios 📦tgz
✔️ 895080f #5 2023-11-15 14:32:39 ~3 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 1c0ca3a #6 2023-11-15 14:31:49 ~1 min linux 📦deb
✔️ 1c0ca3a #6 2023-11-15 14:32:31 ~1 min nix-flake 📄log
✔️ 1c0ca3a #5 2023-11-15 14:33:46 ~2 min tests 📄log
✔️ 1c0ca3a #7 2023-11-15 14:35:10 ~4 min ios 📦tgz
✔️ 1c0ca3a #6 2023-11-15 14:35:46 ~3 min tests 📄log
✔️ 1c0ca3a #6 2023-11-15 14:37:05 ~3 min android 📦tgz
✔️ 5257952 #5 2023-11-15 14:33:22 ~3 min android 📦tgz
✔️ 5257952 #6 2023-11-15 14:34:06 ~4 min ios 📦tgz

@@ -82,7 +83,7 @@
if err == nil {
return peerID, nil
} else {
pm.logger.Debug("Discovering peers by pubsubTopic", zap.Strings("pubsubTopics", pubsubTopics))
pm.logger.Debug("discovering peers by pubsubTopic", zap.Strings("pubsubTopics", pubsubTopics))

Check failure

Code scanning / CodeQL

Log entries created from user input High

This log entry depends on a
user-provided value
.
@chaitanyaprem chaitanyaprem merged commit 9a30c78 into master Nov 15, 2023
9 of 12 checks passed
@chaitanyaprem chaitanyaprem deleted the fix/add-peer-rest branch November 15, 2023 14:39
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.

3 participants