Backup missing out a page of rules
Closed this issue · 2 comments
ejthurgo commented
Issue Name
Overview
- OS name and version.
Any go version
output
Anywaflyctl --version
in recent releases orbrew info waflyctl
output.
0.2.1- Description of the problem. What is happening that shouldn't?
When performing a backup, although the tool advertises that it has pulled the full set of rules (multiple API calls for paged data) the logic actually consistently loses data.
The first call for the head page does not specify a page size so is returned with 100 rules. Requests for the subsequent pages are hard coded for 200 rules. However, it starts at page 2, meaning rules 101-200 are consistently lost and not part of the backup. - Description of the expected behaviour.
It should not ignore data. - Exact steps to reproduce the error.
Do a backup where a service has more than 100 rules.
ejthurgo commented
Fix for this is coded already, pending PR