-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add OpenRewrite recipes and samples for azure-security-keyvault-certificates to automate migration to v2 #46941
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for your contribution @DoggyDoggyDoggy! We will review the pull request and get back to you soon. |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
- org.openrewrite.java.ChangeMethodName: | ||
methodPattern: com.azure.security.keyvault.certificates.CertificateClient getCertificateVersion(..) | ||
newMethodName: getCertificate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not have this recipe. The v2 client should have getCertificateVersion method. Let's file a bug for this issue on the v2 Key Vault library.
cc: @vcolin7
# Handle purgeDeletedCertificate variants: | ||
# - remove second arg (Context/RequestContext) if present | ||
# - rename purgeDeletedCertificateWithResponse -> purgeDeletedCertificate | ||
|
||
- org.openrewrite.java.DeleteMethodArgument: | ||
methodPattern: com.azure.security.keyvault.certificates.CertificateClient purgeDeletedCertificateWithResponse(..) | ||
argumentIndex: 1 | ||
|
||
- org.openrewrite.java.ChangeMethodName: | ||
methodPattern: com.azure.security.keyvault.certificates.CertificateClient purgeDeletedCertificateWithResponse(..) | ||
newMethodName: purgeDeletedCertificate | ||
|
||
- org.openrewrite.java.DeleteMethodArgument: | ||
methodPattern: com.azure.security.keyvault.certificates.CertificateClient purgeDeletedCertificate(..) | ||
argumentIndex: 1 | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.security.keyvault.certificates.CertificateClient | ||
newFullyQualifiedTypeName: com.azure.v2.security.keyvault.certificates.CertificateClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These recipes should not be needed. We should have the WithResponse
methods in v2 Key Vault library too.
cc: @vcolin7
Description
This pull request provides a set of OpenRewrite recipes to automate common code transformations for the Azure App Configuration Java client.
What this PR changes
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines