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 18 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 44.49%. Comparing base (a3c2cea) to head (ca06def).

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.08%   44.49%   +3.41%     
==========================================
  Files        2121     1117    -1004     
  Lines      185905   114370   -71535     
==========================================
- Hits        76373    50887   -25486     
+ Misses     103118    59177   -43941     
+ Partials     6414     4306    -2108     
Flag Coverage Δ
unittests 44.49% <80.76%> (+3.41%) ⬆️

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