Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(db-utils): fix batch_delete function #6283

Merged

Conversation

vicferpoy
Copy link
Member

Description

When using Paginator, it would not iterate over more objects than the value of the batch_size.

We have fixed this and included a proper test for it.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@vicferpoy vicferpoy added the backport-to-v5.0 Backport PR to the v5.0 branch label Dec 20, 2024
@vicferpoy vicferpoy requested a review from a team as a code owner December 20, 2024 12:12
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.74%. Comparing base (3057aee) to head (1735457).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6283      +/-   ##
==========================================
+ Coverage   90.10%   93.74%   +3.64%     
==========================================
  Files        1182       65    -1117     
  Lines       36300     6189   -30111     
==========================================
- Hits        32708     5802   -26906     
+ Misses       3592      387    -3205     
Flag Coverage Δ
api 93.74% <100.00%> (?)
prowler ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
prowler ∅ <ø> (∅)
api 93.74% <100.00%> (∅)

AdriiiPRodri
AdriiiPRodri previously approved these changes Dec 20, 2024
Copy link
Contributor

@AdriiiPRodri AdriiiPRodri left a comment

Choose a reason for hiding this comment

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

LGTM

@MrCloudSec MrCloudSec merged commit f7e510b into master Dec 20, 2024
12 checks passed
@MrCloudSec MrCloudSec deleted the PRWLR-5845-fix-pagination-bug-on-batch-delete-for-providers branch December 20, 2024 13:55
@prowler-bot prowler-bot added the was-backported The PR was successfully backported to the target branch label Dec 20, 2024
@prowler-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
v5.0

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
backport-to-v5.0 Backport PR to the v5.0 branch component/api was-backported The PR was successfully backported to the target branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants