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

RestBackend: Use real zmq subscription #277

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

wirew0rm
Copy link
Member

The current implementation uses the Request Socket to send a subscription mdp command instead of using the broker's pub/sub endpoint. Also the naming and usage of the different Sockets is inconsistent.

This changes the socket types and uses the SUB socket for subscriptions while using the dealer socket for get requests.

This might be incomplete and not handle every case and is not meant to be merged without further testing and discussion.

giucam and others added 4 commits April 20, 2023 10:02
Previously the code was only looking for subscriptions that matched
exactly the topic of the message. Instead look through all subscriptions
and find the ones that match the topic.
The previous implementation used the Request Socket to send a
subscription mdp command instead of using the broker's pub/sub endpoint.
Also the naming and usage of the different Sockets was inconsistent.

This changes the socket types and uses the SUB socket for subscriptions
while using the dealer socket for get requests.
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage April 20, 2023 14:08 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Patch coverage: 14.28% and project coverage change: -0.03 ⚠️

Comparison is base (70106e6) 55.10% compared to head (6710d54) 55.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #277      +/-   ##
==========================================
- Coverage   55.10%   55.08%   -0.03%     
==========================================
  Files          68       68              
  Lines        7108     7111       +3     
  Branches     2640     2641       +1     
==========================================
  Hits         3917     3917              
- Misses       1507     1509       +2     
- Partials     1684     1685       +1     
Impacted Files Coverage Δ
src/majordomo/include/majordomo/RestBackend.hpp 15.56% <10.52%> (-0.12%) ⬇️
src/majordomo/include/majordomo/Broker.hpp 47.24% <22.22%> (-0.19%) ⬇️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarcloud
Copy link

sonarcloud bot commented Oct 9, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 16 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants