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

fix(campaign): return correct request number in campaign summary #748

Merged
merged 3 commits into from
Apr 27, 2022

Conversation

lumtis
Copy link
Contributor

@lumtis lumtis commented Apr 27, 2022

Implement a method GetRequestCount to get the number of requests instead of relying on the request counter that is used for determining the request ID

This count method iterates elements, in the store eventually we want to optimize this logic by adding a new entry in the store

@lumtis lumtis requested a review from JoseRFelix April 27, 2022 09:11
@lumtis lumtis linked an issue Apr 27, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Apr 27, 2022

Codecov Report

Merging #748 (8c68780) into develop (3c2c2cc) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #748   +/-   ##
========================================
  Coverage    11.40%   11.40%           
========================================
  Files          280      280           
  Lines        61476    61486   +10     
========================================
+ Hits          7011     7014    +3     
- Misses       54301    54309    +8     
+ Partials       164      163    -1     
Impacted Files Coverage Δ
x/campaign/keeper/grpc_campaign_summary.go 0.00% <0.00%> (ø)
x/launch/keeper/request.go 94.01% <0.00%> (-5.99%) ⬇️
x/campaign/simulation/store.go 84.45% <0.00%> (+2.02%) ⬆️

@aljo242 aljo242 merged commit 17a473a into develop Apr 27, 2022
@aljo242 aljo242 deleted the fix/campaign-summary branch April 27, 2022 13:23
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.

CampaignSummary returns incorrect value for RequestNb
3 participants