Skip to content

PageETage based refresh support#23

Merged
linglingye001 merged 5 commits into
release/v1.0.0-beta.2from
linglingye/refreshAll
May 16, 2025
Merged

PageETage based refresh support#23
linglingye001 merged 5 commits into
release/v1.0.0-beta.2from
linglingye/refreshAll

Conversation

@linglingye001
Copy link
Copy Markdown
Member

No description provided.

Comment thread azureappconfiguration/settings_client.go Outdated
Comment thread azureappconfiguration/settings_client.go
Comment thread azureappconfiguration/settings_client.go Outdated
Comment thread azureappconfiguration/azureappconfiguration.go Outdated
eTagChanged, err := refreshClient.monitor.checkIfETagChanged(ctx)
if err != nil {
return false, fmt.Errorf("failed to check if watched settings have changed: %w", err)
return false, fmt.Errorf("failed to check if key value settings have changed: %w", err)
Copy link
Copy Markdown
Member

@RichardChen820 RichardChen820 May 15, 2025

Choose a reason for hiding this comment

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

feels that the previous error message is just fine, "watched settings" is also accurate for "watch all" scenario.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We have WatchedSettings refer to sentinel keys, using watched settings in watchAll scenarios is a little ambiguous. Besides, we also have feature flag refresh in the future, "key values" here can differentiate these scenarios.

Comment thread azureappconfiguration/refresh_test.go
@@ -42,6 +42,8 @@ type AzureAppConfiguration struct {
watchedSettings []WatchedSetting

Copy link
Copy Markdown
Member

@RichardChen820 RichardChen820 May 15, 2025

Choose a reason for hiding this comment

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

There are blank lines between some fields, which seem to be used to categorize the fields, but I didn't get the underlying rule, it's likely just random to me for now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

At the top, keyValues and feastureFlags(in the future) are settings from store. In the middle, options configured by user. Next, cache for refresh scenario. clientManager and resolver are objects talk to service.

Copy link
Copy Markdown
Member

@RichardChen820 RichardChen820 May 15, 2025

Choose a reason for hiding this comment

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

How about adding some comments for them?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated.

Comment thread azureappconfiguration/azureappconfiguration.go
@linglingye001 linglingye001 merged commit a1bd37a into release/v1.0.0-beta.2 May 16, 2025
13 checks passed
@linglingye001 linglingye001 deleted the linglingye/refreshAll branch May 16, 2025 02:26
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