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: set page size irrespective of suppressAPIToken #2611

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

saurav-malani
Copy link
Contributor

Description

Currently, pageSize is only set if suppressAPIToken is set, which is set only after we get response for 1st request from gw. So, the the 1st request url from gw doesn't have pageSize set. And, since the go routine sleep for 5 min if the number of suppression user received is less than pageSize. Because of this bug, there was an unnecessary delay in suppression sync at gw end.

This issue is fixed in this PR.

Notion Ticket

https://www.notion.so/rudderstacks/GW-suppression-pageSize-bug-fix-71f965130db842d188ae265263f72fa1

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Base: 44.08% // Head: 44.03% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (be205e3) compared to base (888f6f8).
Patch coverage: 74.55% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2611      +/-   ##
==========================================
- Coverage   44.08%   44.03%   -0.05%     
==========================================
  Files         187      188       +1     
  Lines       39147    39266     +119     
==========================================
+ Hits        17256    17291      +35     
- Misses      20808    20871      +63     
- Partials     1083     1104      +21     
Impacted Files Coverage Δ
enterprise/suppress-user/suppressUser.go 81.09% <0.00%> (+0.23%) ⬆️
jobsdb/backup.go 74.90% <74.90%> (ø)
jobsdb/jobsdb.go 65.44% <100.00%> (-2.63%) ⬇️
processor/processor.go 71.23% <0.00%> (-0.83%) ⬇️
services/stats/stats.go 90.30% <0.00%> (+1.81%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cisse21 cisse21 merged commit 71d8c99 into master Oct 25, 2022
@cisse21 cisse21 deleted the fix.gwSuppressionFix branch October 25, 2022 07:54
@saurav-malani saurav-malani changed the title fix: page size fixed irrespectiveof suppressAPIToken fix: set page size irrespective of suppressAPIToken Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants