-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Spring Snapshots #35726
Conversation
API change check API changes are not detected in this pull request. |
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Outdated
Show resolved
Hide resolved
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Outdated
Show resolved
Hide resolved
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Outdated
Show resolved
Hide resolved
store.getEndpoint(), client, selectedKeys.getKeyFilter(), | ||
selectedKeys.getLabelFilter(profiles)); | ||
store.getEndpoint(), client, | ||
selectedKeys.getKeyFilter(), selectedKeys.getLabelFilter(profiles)); | ||
|
||
propertySource.initProperties(); |
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.
Why there is no need to pass store.trim()
for feature flags? Is it becasuse the trim
is not available for feature flags?
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.
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.
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Outdated
Show resolved
Hide resolved
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Outdated
Show resolved
Hide resolved
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Outdated
Show resolved
Hide resolved
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Outdated
Show resolved
Hide resolved
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Outdated
Show resolved
Hide resolved
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Outdated
Show resolved
Hide resolved
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Outdated
Show resolved
Hide resolved
...zure/spring/cloud/appconfiguration/config/implementation/AppConfigurationPropertySource.java
Show resolved
Hide resolved
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Show resolved
Hide resolved
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Show resolved
Hide resolved
...appconfiguration/config/implementation/AppConfigurationApplicationSettingPropertySource.java
Outdated
Show resolved
Hide resolved
} 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); |
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.
Why does this trimSettings need to pass down to these two ifs?
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.
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.
Adds App Configuration Snapshots to Spring provider