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

[Access] Add arguments getter for data providers #6873

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

UlyanaAndrukhiv
Copy link
Contributor

@UlyanaAndrukhiv UlyanaAndrukhiv commented Jan 13, 2025

Closes: #6865

Context

This pull request adds a method Arguments to the data providers, allowing retrieval of stored initial request arguments. This method used by the listOfSubscription to fill the Arguments field for ListSubscriptionsMessageResponse.

illia-malachyn and others added 6 commits January 3, 2025 15:07
From now on, we use only 1 id in request/response
messages. This id is called `subscription_id`.

A client may provide `subscription_id` in `subscribe` request.
If client does not provide it, we generate it ourselves.

Clients that use browsers or other async environemnts
may use `subscription_id` to correlate response messages
with the request ones.

`subscription_id` is used in all messages related to subscription.

I also remove `success` field from response. We include `subscription_id`
field in a resposne in case of OK response.
In case of error response, we include `error` field.
…ssageResponse with Arguments, updated unit tests
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

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

Project coverage is 40.60%. Comparing base (52d4461) to head (fe9f40b).

Files with missing lines Patch % Lines
...st/websockets/data_providers/mock/data_provider.go 61.53% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6873      +/-   ##
==========================================
- Coverage   41.07%   40.60%   -0.48%     
==========================================
  Files        2121     2083      -38     
  Lines      185898   181571    -4327     
==========================================
- Hits        76352    73718    -2634     
+ Misses     103133   101673    -1460     
+ Partials     6413     6180     -233     
Flag Coverage Δ
unittests 40.60% <80.76%> (-0.48%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@illia-malachyn
Copy link
Contributor

LGTM

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.

[Access] Add arguments getter for data providers
3 participants