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

fix: merge plugin predicates #569

Merged
merged 1 commit into from
Dec 20, 2019

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Dec 19, 2019

The servicePredicate is automatically set to false when the operationPredicate is used: https://github.com/awslabs/smithy-typescript/blob/5dffb8a0060023af4c0e1f809d116ab77492cdde/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/RuntimeClientPlugin.java#L466

This merges the ServiceId check into the operationPredicate to only apply these plugins to specific operations on specific services.

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

@srchase srchase requested a review from kstich December 19, 2019 21:39
@srchase srchase added the smithy-codegen Changes regarding supporting smithy model. Will be merged to smithy-codegen branch label Dec 19, 2019
@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@kstich kstich left a comment

Choose a reason for hiding this comment

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

Looks like this has conflicts, rebase and make sure everything's clear and any that got added are fixed as well.

@srchase srchase force-pushed the merge-plugin-predicates branch from c170237 to c0f9467 Compare December 20, 2019 19:14
@srchase
Copy link
Contributor Author

srchase commented Dec 20, 2019

Rebased. Additional plugin added in #567, HostHeader, didn't have a predicate, so no need to fix that one.

@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@srchase srchase requested a review from kstich December 20, 2019 19:23
@kstich kstich merged commit 9c509e7 into aws:smithy-codegen Dec 20, 2019
@srchase srchase deleted the merge-plugin-predicates branch December 20, 2019 19:55
@lock
Copy link

lock bot commented Dec 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
smithy-codegen Changes regarding supporting smithy model. Will be merged to smithy-codegen branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants