-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add OpenRewrite recipes for appconfiguration to automate migration to v2 #46709
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
Open
DoggyDoggyDoggy
wants to merge
12
commits into
Azure:main
Choose a base branch
from
DoggyDoggyDoggy:appconfiguration-recipes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8d1bf3e
AadAuthentication test
DoggyDoggyDoggy 8058bf2
appconfiguration yml files
DoggyDoggyDoggy bf5bacb
appconfiguration yml files update
DoggyDoggyDoggy a75bbe7
Delete old samples
DoggyDoggyDoggy f6e9c3d
Rename new samples folders
DoggyDoggyDoggy 35935b2
Update pom file
DoggyDoggyDoggy 3c9c39a
Added appconfiguration to rewrite.yml
DoggyDoggyDoggy 1b23b22
disabled golden images that use appconfig/implementation
AndreH871 cdc58c1
Merge branch 'main' into appconfiguration-recipes
DoggyDoggyDoggy 9f7c4b3
Merge branch 'appconfiguration-recipes' into main
DoggyDoggyDoggy e8d1405
Merge pull request #28 from DoggyDoggyDoggy/main
DoggyDoggyDoggy 6e6d388
Update pom.xml file for OpenRewrite with dependencies
DoggyDoggyDoggy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...rc/main/resources/META-INF/rewrite/migrationRecipes/appconfiguration/LibraryMigration.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
# -------------------------------------------------------------------- | ||
# Migration Recipes for Azure appconfiguration Library | ||
# -------------------------------------------------------------------- | ||
type: specs.openrewrite.org/v1beta/recipe | ||
name: com.azure.openrewrite.migration.data.appconfiguration | ||
displayName: Migrate from azure-appconfiguration to next generation stack | ||
description: This recipe migrates the Azure appconfiguration library to the next generation stack. | ||
recipeList: | ||
|
||
- com.azure.openrewrite.recipe.azure.data.appconfiguration | ||
- com.azure.openrewrite.recipe.azure.data.appconfiguration.models |
126 changes: 126 additions & 0 deletions
126
...-INF/rewrite/migrationRecipes/appconfiguration/com.azure.data.appconfiguration.models.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
# -------------------------------------------------------------------- | ||
# Migration Recipes for azure.core.credential | ||
# -------------------------------------------------------------------- | ||
type: specs.openrewrite.org/v1beta/recipe | ||
name: com.azure.openrewrite.recipe.azure.data.appconfiguration.models | ||
displayName: Migrate from azure.data.appconfiguration.models to next generation stack | ||
description: This recipe migrates the azure.data.appconfiguration.models package to the next generation stack. | ||
recipeList: | ||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationAudience | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationSetting | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.ConfigurationSetting | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.ConfigurationSetting | ||
|
||
# -------------------------------------------------------------------- | ||
# SettingLabelSelector | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.SettingLabelSelector | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.SettingLabelSelector | ||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationSettingsFilter | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.ConfigurationSettingsFilter | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.ConfigurationSettingsFilter | ||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationSnapshot | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.ConfigurationSnapshot | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.ConfigurationSnapshot | ||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationSnapshotStatus | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# FeatureFlagConfigurationSetting | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.FeatureFlagConfigurationSetting | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.FeatureFlagConfigurationSetting | ||
|
||
# -------------------------------------------------------------------- | ||
# FeatureFlagFilter | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.FeatureFlagFilter | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.FeatureFlagFilter | ||
|
||
# -------------------------------------------------------------------- | ||
# SecretReferenceConfigurationSetting | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.SecretReferenceConfigurationSetting | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.SecretReferenceConfigurationSetting | ||
|
||
# -------------------------------------------------------------------- | ||
# SettingFields | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# SettingLabel | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# SettingLabelFields | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# SettingLabelSelector | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# SettingSelector | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.models.SettingSelector | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.models.SettingSelector | ||
|
||
# -------------------------------------------------------------------- | ||
# SnapshotComposition | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# SnapshotFields | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# SnapshotSelector | ||
# -------------------------------------------------------------------- |
41 changes: 41 additions & 0 deletions
41
...es/META-INF/rewrite/migrationRecipes/appconfiguration/com.azure.data.appconfiguration.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
type: specs.openrewrite.org/v1beta/recipe | ||
name: com.azure.openrewrite.recipe.azure.data.appconfiguration | ||
displayName: Migrate from azure.data.appconfiguration to next generation stack | ||
description: This recipe migrates the azure.data.appconfiguration package to the next generation stack. | ||
recipeList: | ||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationAsyncClient | ||
# -------------------------------------------------------------------- | ||
|
||
|
||
|
||
|
||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationClient | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.ConfigurationClient | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.ConfigurationClient | ||
|
||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationClientBuilder | ||
# -------------------------------------------------------------------- | ||
|
||
- org.openrewrite.java.ChangeType: | ||
oldFullyQualifiedTypeName: com.azure.data.appconfiguration.ConfigurationClientBuilder | ||
newFullyQualifiedTypeName: com.azure.v2.data.appconfiguration.ConfigurationClientBuilder | ||
|
||
|
||
# -------------------------------------------------------------------- | ||
# ConfigurationServiceVersion | ||
# -------------------------------------------------------------------- | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...migrationExamples/azure-data-appconfiguration/AadAuthentication/v1/AadAuthentication.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.