Skip to content

add deprecate diff support#438

Merged
AllyW merged 7 commits into
Azure:devfrom
AllyW:deprecate-info-diff
Mar 25, 2024
Merged

add deprecate diff support#438
AllyW merged 7 commits into
Azure:devfrom
AllyW:deprecate-info-diff

Conversation

@AllyW
Copy link
Copy Markdown
Contributor

@AllyW AllyW commented Mar 21, 2024

No description provided.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @AllyW,
Please write the description of change into HISTORY.rst.
If you want to release a new azdev version, please update the VERSION in init.py as well.

@AllyW AllyW force-pushed the deprecate-info-diff branch from 1d2e60c to 89ead63 Compare March 24, 2024 11:10
@wangzelin007
Copy link
Copy Markdown
Member

/azp run

@AllyW AllyW force-pushed the deprecate-info-diff branch from 8bf2e20 to 0eb1baf Compare March 25, 2024 07:27
"1012": "please confirm sub group `{0}` removed",
"1013": "please remove property `{0}` for sub group `{1}`",
"1014": "please add back property `{0}` for sub group `{1}`",
"1015": "please change property `{0}` from `{1}` to `{2}` for sub group `{3}`",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think name variables will make the code more readable, but this may increase the effort.



def extract_subgroup_property(key, subgroup_name):
subgroup_key_pattern = re.compile(subgroup_name + r"\'\]\[\'([a-zA-Z0-9\-\_]+)\'\]")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add an example for regex?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added a test for this fun

@AllyW AllyW merged commit 202fd8a into Azure:dev Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants