-
Notifications
You must be signed in to change notification settings - Fork 597
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
firewall_rules/filter: reset fResponse on each loop to avoid residual data #1156
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1156 +/- ##
==========================================
- Coverage 49.40% 49.33% -0.08%
==========================================
Files 127 128 +1
Lines 12290 12406 +116
==========================================
+ Hits 6072 6120 +48
- Misses 4840 4885 +45
- Partials 1378 1401 +23
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
changelog detected ✅ |
have you checked the other list methods? they all use basically the same layout and may be impacted in a similar way. in an ideal world, this should be a helper method or utilise Go generics from 1.19. I'll give this change a run through a couple of projects I have using the pagination conditions as this needs to account for automatic and manual pagination. |
There are a couple more places where this should be implemented. I have them stashed locally but i'll look into how to do this with generics to make things more ideal. |
846cbff
to
0a8c100
Compare
we'll address the move to a generics based helper once Go 1.20 lands and we drop support for 1.17. |
This functionality has been released in v0.58.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
We found an issue were data from the previous page could populate into the current page because we were not reseting the struct on each loop.
Has your change been tested?
This is something i'd love to have a conversation about. We need / should look into how to properly test our paginated APIs
Types of changes
bugfix
What sort of change does your code introduce/modify?