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

Add support for configurable subscriptions #73

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

fabiorossetto
Copy link
Collaborator

Add "kwargs" to the "subscribe" method to allow the forwarding of configurations to the data-server. This feature is needed to allow the configuration of the severity level when subscribing to the "/zi/debug/log" node.

@fabiorossetto fabiorossetto force-pushed the fabior/configurable_sub branch from 9fadee8 to 6eff7e6 Compare November 11, 2024 15:43
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 76.19048% with 5 lines in your changes missing coverage. Please review.

Project coverage is 89.96%. Comparing base (015199f) to head (f91c3a6).

Files with missing lines Patch % Lines
src/labone/core/hpk_schema.py 76.19% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
- Coverage   90.12%   89.96%   -0.17%     
==========================================
  Files          25       25              
  Lines        2097     2113      +16     
  Branches       91       91              
==========================================
+ Hits         1890     1901      +11     
- Misses        199      204       +5     
  Partials        8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fabiorossetto fabiorossetto force-pushed the fabior/configurable_sub branch from 6eff7e6 to f220d9a Compare November 11, 2024 15:54
Add "kwargs" to the "subscribe" method to allow the forwarding of
configurations to the data-server. This feature is needed to allow the
configuration of the severity level when subscribing to the
"/zi/debug/log" node.
@fabiorossetto fabiorossetto force-pushed the fabior/configurable_sub branch from f220d9a to f91c3a6 Compare November 12, 2024 09:24
Copy link
Member

@tobiasah tobiasah left a comment

Choose a reason for hiding this comment

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

LGTM

* `subscribe` accepts keyword arguments, which are forwarded to the data-server.
This allows to configure the subscription to the data-server.
Note that as of LabOne 24.10, no node supports yet subscription configuration.

## Version 3.1.2
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: If we do not release a separate version 3.1.2 I would just merge it with 3.2.0

@fabiorossetto fabiorossetto merged commit d442b1a into main Nov 12, 2024
12 checks passed
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.

3 participants