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

Prefer use of lastPage in pagination functions #18643

Merged
merged 9 commits into from
Apr 15, 2021

Conversation

YakDriver
Copy link
Member

@YakDriver YakDriver commented Apr 7, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #18626
Relates #17936

Output from acceptance testing:

--- PASS: TestAccAWSStepFunctionsActivityDataSource_basic (29.55s)

--- PASS: TestAccDataSourceAwsEc2ManagedPrefixList_matchesTooMany (4.53s)
--- PASS: TestAccDataSourceAwsEc2ManagedPrefixList_filter (20.42s)
--- PASS: TestAccDataSourceAwsEc2ManagedPrefixList_basic (20.76s)

@YakDriver YakDriver requested a review from a team as a code owner April 7, 2021 23:30
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. service/acm Issues and PRs that pertain to the acm service. service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. service/appmesh Issues and PRs that pertain to the appmesh service. service/batch Issues and PRs that pertain to the batch service. service/cloudtrail Issues and PRs that pertain to the cloudtrail service. service/cloudwatchlogs service/codebuild Issues and PRs that pertain to the codebuild service. service/ec2 Issues and PRs that pertain to the ec2 service. service/ecr Issues and PRs that pertain to the ecr service. service/ecrpublic Issues and PRs that pertain to the ecrpublic service. service/rds Issues and PRs that pertain to the rds service. service/route53resolver Issues and PRs that pertain to the route53resolver service. service/sfn Issues and PRs that pertain to the sfn service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 7, 2021
@YakDriver YakDriver force-pushed the td-semgrep-pages-lastPage branch from c6d8cce to eac04fd Compare April 8, 2021 02:19
@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/kinesis Issues and PRs that pertain to the kinesis service. and removed size/XL Managed by automation to categorize the size of a PR. labels Apr 8, 2021
@YakDriver YakDriver removed service/acm Issues and PRs that pertain to the acm service. service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. service/appmesh Issues and PRs that pertain to the appmesh service. service/batch Issues and PRs that pertain to the batch service. service/cloudtrail Issues and PRs that pertain to the cloudtrail service. labels Apr 8, 2021
@YakDriver YakDriver added service/sfn Issues and PRs that pertain to the sfn service. and removed service/codebuild Issues and PRs that pertain to the codebuild service. service/cognito service/ecr Issues and PRs that pertain to the ecr service. service/ecrpublic Issues and PRs that pertain to the ecrpublic service. service/rds Issues and PRs that pertain to the rds service. service/route53resolver Issues and PRs that pertain to the route53resolver service. service/sfn Issues and PRs that pertain to the sfn service. labels Apr 8, 2021
@ewbankkit ewbankkit self-assigned this Apr 14, 2021
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM (pending merge conflict in .semgrep.yml).

% make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsEc2ManagedPrefixList_basic\|TestAccAWSInstancesDataSource_basic\|TestAccAWSRoute53ResolverRulesDataSource_basic\|TestAccAWSStepFunctionsActivityDataSource_basic\|TestAccAWSAPIGatewayV2ApisDataSource_Name\|TestAccAwsCurReportDefinition_basic\|TestAccAWSKinesisStream_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsEc2ManagedPrefixList_basic\|TestAccAWSInstancesDataSource_basic\|TestAccAWSRoute53ResolverRulesDataSource_basic\|TestAccAWSStepFunctionsActivityDataSource_basic\|TestAccAWSAPIGatewayV2ApisDataSource_Name\|TestAccAwsCurReportDefinition_basic\|TestAccAWSKinesisStream_basic -timeout 180m
=== RUN   TestAccAWSAPIGatewayV2ApisDataSource_Name
--- PASS: TestAccAWSAPIGatewayV2ApisDataSource_Name (27.23s)
=== RUN   TestAccDataSourceAwsEc2ManagedPrefixList_basic
=== PAUSE TestAccDataSourceAwsEc2ManagedPrefixList_basic
=== RUN   TestAccAWSInstancesDataSource_basic
=== PAUSE TestAccAWSInstancesDataSource_basic
=== RUN   TestAccAWSRoute53ResolverRulesDataSource_basic
=== PAUSE TestAccAWSRoute53ResolverRulesDataSource_basic
=== RUN   TestAccAWSStepFunctionsActivityDataSource_basic
=== PAUSE TestAccAWSStepFunctionsActivityDataSource_basic
=== RUN   TestAccAwsCurReportDefinition_basic
=== PAUSE TestAccAwsCurReportDefinition_basic
=== RUN   TestAccAWSKinesisStream_basic
=== PAUSE TestAccAWSKinesisStream_basic
=== CONT  TestAccDataSourceAwsEc2ManagedPrefixList_basic
=== CONT  TestAccAwsCurReportDefinition_basic
=== CONT  TestAccAWSRoute53ResolverRulesDataSource_basic
=== CONT  TestAccAWSInstancesDataSource_basic
=== CONT  TestAccAWSStepFunctionsActivityDataSource_basic
=== CONT  TestAccAWSKinesisStream_basic
--- PASS: TestAccAWSRoute53ResolverRulesDataSource_basic (9.15s)
--- PASS: TestAccAwsCurReportDefinition_basic (12.18s)
--- PASS: TestAccDataSourceAwsEc2ManagedPrefixList_basic (12.45s)
--- PASS: TestAccAWSStepFunctionsActivityDataSource_basic (20.67s)
--- PASS: TestAccAWSKinesisStream_basic (54.72s)
--- PASS: TestAccAWSInstancesDataSource_basic (324.09s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	354.231s

@YakDriver YakDriver force-pushed the td-semgrep-pages-lastPage branch from eac04fd to cdbdb06 Compare April 15, 2021 00:31
@ghost ghost added service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. service/eventbridge service/route53resolver Issues and PRs that pertain to the route53resolver service. labels Apr 15, 2021
@YakDriver YakDriver added this to the v3.37.0 milestone Apr 15, 2021
@YakDriver YakDriver merged commit e8cb296 into main Apr 15, 2021
@YakDriver YakDriver deleted the td-semgrep-pages-lastPage branch April 15, 2021 01:05
@ghost
Copy link

ghost commented Apr 16, 2021

This has been released in version 3.37.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 15, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/apigatewayv2 Issues and PRs that pertain to the apigatewayv2 service. service/ec2 Issues and PRs that pertain to the ec2 service. service/kinesis Issues and PRs that pertain to the kinesis service. service/route53resolver Issues and PRs that pertain to the route53resolver service. service/sfn Issues and PRs that pertain to the sfn service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants