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

Spring Snapshots #35726

Merged
Merged

Conversation

mrm9084
Copy link
Member

@mrm9084 mrm9084 commented Jul 3, 2023

Adds App Configuration Snapshots to Spring provider

@github-actions github-actions bot added the azure-spring All azure-spring related issues label Jul 3, 2023
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@mrm9084 mrm9084 changed the base branch from main to feature/azconfig-spring/Snapshots August 1, 2023 17:19
@mrm9084 mrm9084 requested a review from alzimmermsft as a code owner August 3, 2023 22:38
store.getEndpoint(), client, selectedKeys.getKeyFilter(),
selectedKeys.getLabelFilter(profiles));
store.getEndpoint(), client,
selectedKeys.getKeyFilter(), selectedKeys.getLabelFilter(profiles));

propertySource.initProperties();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why there is no need to pass store.trim() for feature flags? Is it becasuse the trim is not available for feature flags?

Copy link
Member Author

Choose a reason for hiding this comment

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

The prefix on feature flags is predetermined. i.e. it is always .appconfig.featureflag/ as defined by our design. I believe that this is consistent across all of our libraries.

Comment on lines 92 to 97
} else if (setting instanceof FeatureFlagConfigurationSetting
&& FEATURE_FLAG_CONTENT_TYPE.equals(setting.getContentType())) {
handleFeatureFlag(key, (FeatureFlagConfigurationSetting) setting, trimStrings);
} else if (StringUtils.hasText(setting.getContentType())
&& JsonConfigurationParser.isJsonContentType(setting.getContentType())) {
handleJson(setting, trimStrings);
Copy link
Member

Choose a reason for hiding this comment

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

Why does this trimSettings need to pass down to these two ifs?

Copy link
Member Author

Choose a reason for hiding this comment

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

So, it needs to be passed down in both as both by default call the json code. The json code needs it as we allow for trimming of prefixes from the fully formed JSON key name.

@mrm9084 mrm9084 requested a review from saragluna September 7, 2023 17:49
@mrm9084 mrm9084 merged commit 15ffff2 into Azure:feature/azconfig-spring/Snapshots Sep 11, 2023
@mrm9084 mrm9084 mentioned this pull request Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants