-
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
New Data loader #43802
base: SpringCloudAzure6.0-Preview
Are you sure you want to change the base?
New Data loader #43802
Conversation
...ing/cloud/appconfiguration/config/implementation/AppConfigurationSnapshotPropertySource.java
Show resolved
Hide resolved
.../com/azure/spring/cloud/appconfiguration/config/implementation/AzureAppConfigDataLoader.java
Outdated
Show resolved
Hide resolved
.../com/azure/spring/cloud/appconfiguration/config/implementation/AzureAppConfigDataLoader.java
Show resolved
Hide resolved
.../com/azure/spring/cloud/appconfiguration/config/implementation/AzureAppConfigDataLoader.java
Outdated
Show resolved
Hide resolved
.../spring/cloud/appconfiguration/config/implementation/AzureAppConfigDataLocationResolver.java
Show resolved
Hide resolved
Holder holder = new Holder(); | ||
|
||
if (context.getBootstrapContext().isRegistered(AppConfigurationProperties.class)) { | ||
properties = new AppConfigurationProperties(); |
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.
This is more of a question, when does this if
scenario happen? Who registers the class to the bootstrap context?
Bindable.of(AppConfigurationProviderProperties.class), bindHandler) | ||
.orElseGet(AppConfigurationProviderProperties::new); | ||
} | ||
|
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.
should we add appProperties.validateAndInit();
as well?
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.
AppProperties
are set by us and have default values. They are things like our maxRetries and stuff that the customer shouldn't be changing. I've been thinking about reworking this part of the library. I'll leave this comment open for now to track it.
@@ -14,8 +13,6 @@ | |||
|
|||
public class TracingInfo { | |||
|
|||
private boolean isDev = false; |
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 are we disbling dev tracing
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.
Because of the changes it made it rather difficult to detect if it was a "dev" request. Also it was using just a convention to guess if it was dev. In all the new libraries we are not including it, so I was told it was fine to remove.
Description
Fix of this, updated to main, #41539 (Had trouble merging it.)