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

refactor(batch): remove legacy sqs_batch_processor in v2 #1492

Merged

Conversation

rubenfonseca
Copy link
Contributor

@rubenfonseca rubenfonseca commented Sep 1, 2022

Issue number: #1462

Summary

This PR removes the legacy SQS batch implementation.

Changes

Please provide a summary of what's being changed

Code was removed, as well as lot of old tests. Documentation was updated to not reference the SQS batch implementation.

The migration guide was also updated to include the old migration guide.

User experience

Please share what the user experience looks like before and after this change

After this change, a user has to use the native BatchProcessor class or the batch_processor decorator.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.


View rendered docs/utilities/batch.md

@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation tests labels Sep 1, 2022
@pull-request-size pull-request-size bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 1, 2022
@github-actions github-actions bot added the internal Maintenance changes label Sep 1, 2022
@pull-request-size pull-request-size bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

⚠️Large PR detected⚠️

Please consider breaking into smaller PRs to avoid significant review delays. Ignore if this PR has naturally grown to this size after reviews.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

⚠️Large PR detected⚠️

Please consider breaking into smaller PRs to avoid significant review delays. Ignore if this PR has naturally grown to this size after reviews.

@rubenfonseca rubenfonseca self-assigned this Sep 1, 2022
@rubenfonseca rubenfonseca marked this pull request as ready for review September 1, 2022 09:27
@rubenfonseca rubenfonseca requested a review from a team as a code owner September 1, 2022 09:27
@rubenfonseca rubenfonseca requested review from am29d and heitorlessa and removed request for a team and am29d September 1, 2022 09:27
@codecov-commenter
Copy link

codecov-commenter commented Sep 1, 2022

Codecov Report

Merging #1492 (b8abfc4) into v2 (0678af2) will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##               v2    #1492      +/-   ##
==========================================
+ Coverage   99.85%   99.90%   +0.05%     
==========================================
  Files         125      124       -1     
  Lines        5644     5554      -90     
  Branches      651      641      -10     
==========================================
- Hits         5636     5549      -87     
+ Misses          3        1       -2     
+ Partials        5        4       -1     
Impacted Files Coverage Δ
aws_lambda_powertools/utilities/batch/__init__.py 100.00% <ø> (ø)
aws_lambda_powertools/utilities/batch/base.py 99.21% <ø> (ø)
...ws_lambda_powertools/utilities/batch/exceptions.py 100.00% <ø> (ø)

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

Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

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

what a relief ;) thank you!

@heitorlessa heitorlessa changed the title chore(batch): remove legacy sqs_batch_processor refactor(batch): remove legacy sqs_batch_processor Sep 1, 2022
@heitorlessa heitorlessa merged commit 2affda8 into aws-powertools:v2 Sep 1, 2022
@heitorlessa heitorlessa changed the title refactor(batch): remove legacy sqs_batch_processor refactor(batch): remove legacy sqs_batch_processor in 2 Sep 1, 2022
@heitorlessa heitorlessa changed the title refactor(batch): remove legacy sqs_batch_processor in 2 refactor(batch): remove legacy sqs_batch_processor in v2 Sep 1, 2022
heitorlessa added a commit that referenced this pull request Sep 9, 2022
* develop:
  chore(deps-dev): bump aws-cdk-lib from 2.40.0 to 2.41.0 (#1507)
  update changelog with latest changes
  feat(tracer): support methods with the same name (ABCs) by including fully qualified name in v2 (#1486)
  chore(deps-dev): bump aws-cdk-aws-apigatewayv2-integrations-alpha from 2.39.1a0 to 2.40.0a0 (#1496)
  chore(deps-dev): bump mkdocs-material from 8.4.2 to 8.4.3 (#1504)
  chore(deps): bump pydantic from 1.10.1 to 1.10.2 (#1502)
  update changelog with latest changes
  feat(data-classes): add KafkaEvent and KafkaEventRecord (#1485)
  chore(deps-dev): bump pytest from 7.1.2 to 7.1.3 (#1497)
  update changelog with latest changes
  feat(event_handler): add cookies as 1st class citizen in v2 (#1487)
  chore(deps-dev): bump black from 22.6.0 to 22.8.0 (#1494)
  chore(deps-dev): bump aws-cdk-lib from 2.39.1 to 2.40.0 (#1495)
  chore(maintenance): add discord link to first PR and first issue (#1493)
  update changelog with latest changes
  refactor(batch): remove legacy sqs_batch_processor (#1492)
  chore(deps): bump pydantic from 1.10.0 to 1.10.1 (#1491)
  chore(deps-dev): bump flake8-variables-names from 0.0.4 to 0.0.5 (#1490)
Tankanow pushed a commit to Tankanow/aws-lambda-powertools-python that referenced this pull request Sep 13, 2022
Tankanow pushed a commit to Tankanow/aws-lambda-powertools-python that referenced this pull request Sep 13, 2022
@heitorlessa
Copy link
Contributor

resolves #1462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement internal Maintenance changes size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants