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.

…ssageResponse with Arguments, updated unit tests
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

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

Project coverage is 41.09%. Comparing base (92d5d24) to head (7413e02).

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%   41.09%           
=======================================
  Files        2119     2119           
  Lines      185893   185917   +24     
=======================================
+ Hits        76383    76408   +25     
+ Misses     103105   103096    -9     
- Partials     6405     6413    +8     
Flag Coverage Δ
unittests 41.09% <79.16%> (+<0.01%) ⬆️

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

Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

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

looks good after addressing test comment

@@ -483,8 +483,10 @@ func (s *WsControllerSuite) TestListSubscriptions() {

id := uuid.New()
topic := dp.BlocksTopic
arguments := models.Arguments{}
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add some value into the arguments map to ensure we're testing that the same set is returned in the asserts. Otherwise we could miss a bug where an empty argument set is passed instead

@Guitarheroua Guitarheroua self-assigned this Jan 22, 2025
Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

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

flagging a couple more merge conflicts

engine/access/rest/websockets/models/account_models.go Outdated Show resolved Hide resolved
engine/access/rest/websockets/models/subscription_entry.go Outdated Show resolved Hide resolved
@peterargue
Copy link
Contributor

@Guitarheroua can you review this one as well

@illia-malachyn
Copy link
Contributor

Looks good to me

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
5 participants