Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6db8216
Adding Telemetry
mrm9084 Apr 5, 2024
acc62d9
Telemetry Support
mrm9084 Apr 15, 2024
c333311
fixing formatting
mrm9084 Apr 17, 2024
2893693
Update _azureappconfigurationprovider.py
mrm9084 Apr 24, 2024
6ade779
Update _azureappconfigurationproviderasync.py
mrm9084 Apr 24, 2024
3ec51ec
formatting
mrm9084 Apr 24, 2024
d1c5a17
changing doc style due to pylint-next
mrm9084 Apr 24, 2024
5595657
fixing kwargs docs
mrm9084 Apr 24, 2024
246d259
Formatting
mrm9084 Apr 25, 2024
07c771a
Review comments
mrm9084 Apr 29, 2024
26f5042
Changed label checking.
mrm9084 Apr 29, 2024
5d485ab
black format changes
mrm9084 Apr 29, 2024
c09247b
pylint
mrm9084 Apr 29, 2024
958761e
Update sdk/appconfiguration/azure-appconfiguration-provider/azure/app…
mrm9084 Apr 30, 2024
fac284f
added space checks
mrm9084 Apr 30, 2024
50755b0
Update conftest.py
mrm9084 May 10, 2024
ce64aca
Merge remote-tracking branch 'upstream/main' into TelemetrySupport
mrm9084 Jul 2, 2024
c727b1c
Merge branch 'main' into TelemetrySupport
mrm9084 Aug 19, 2024
33ae94e
moved telemetry to client wrapper
mrm9084 Aug 19, 2024
c8f3b40
fixing format
mrm9084 Aug 19, 2024
79c9053
Merge branch 'main' into TelemetrySupport
mrm9084 Aug 28, 2024
d9cd086
Merge remote-tracking branch 'upstream/main' into TelemetrySupport
mrm9084 Sep 6, 2024
0456c6d
updating after merge
mrm9084 Sep 6, 2024
411dd2e
Merge remote-tracking branch 'upstream/main' into TelemetrySupport
mrm9084 Sep 9, 2024
7e33ecb
fixing black issue
mrm9084 Sep 9, 2024
126937a
removing unused imports
mrm9084 Sep 9, 2024
3261601
AllocationId
mrm9084 Sep 12, 2024
963c0f4
Update CODEOWNERS
mrm9084 Sep 12, 2024
58cccc2
Merge branch 'main' into AllocationId
mrm9084 Sep 12, 2024
775df1a
Update CODEOWNERS
mrm9084 Sep 12, 2024
e5f6ed4
fixing issues
mrm9084 Sep 12, 2024
0f688d2
Merge branch 'AllocationId' of https://github.com/mrm9084/azure-sdk-f…
mrm9084 Sep 12, 2024
b73b002
Update _client_manager_base.py
mrm9084 Sep 12, 2024
923362f
Fixing configuration value empty in calc
mrm9084 Sep 12, 2024
274c372
fixing pylint
mrm9084 Sep 12, 2024
c4dd229
Merge branch 'main' into AllocationId
mrm9084 Sep 13, 2024
6421788
Update _constants.py
mrm9084 Sep 13, 2024
59b745c
Merge remote-tracking branch 'upstream/main' into AllocationId
mrm9084 Oct 4, 2024
185389d
review comments
mrm9084 Oct 11, 2024
e36cc7d
fixing allocation check
mrm9084 Oct 11, 2024
50fe5fe
format fix
mrm9084 Oct 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into TelemetrySupport
  • Loading branch information
mrm9084 committed Jul 2, 2024
commit ce64aca13a1fae4a4d421d87fc16c29120a67f41
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import datetime
import hashlib
import base64
from importlib.metadata import version, PackageNotFoundError
from threading import Lock
import logging
from typing import (
Expand Down Expand Up @@ -55,6 +56,13 @@
ETAG_KEY,
FEATURE_FLAG_REFERENCE_KEY,
FEATURE_FLAG_ID_KEY,
PERCENTAGE_FILTER_NAMES,
TIME_WINDOW_FILTER_NAMES,
TARGETING_FILTER_NAMES,
CUSTOM_FILTER_KEY,
PERCENTAGE_FILTER_KEY,
TIME_WINDOW_FILTER_KEY,
TARGETING_FILTER_KEY,
)
from ._user_agent import USER_AGENT

Expand Down Expand Up @@ -106,17 +114,21 @@ def load( # pylint: disable=docstring-keyword-should-match-keyword-only
after a fixed interval. This should be a list of Key-Label pairs for specific settings (filters and wildcards are
not supported).
:keyword int refresh_interval: The minimum time in seconds between when a call to `refresh` will actually trigger a
service call to update the settings. Default value is 30 seconds.
:keyword Optional[Callable] on_refresh_success: Optional callback to be invoked when a change is found and a
successful refresh has happened.
:keyword Optional[Callable[[Exception], None]] on_refresh_error: Optional callback to be invoked when an error
occurs while refreshing settings. If not specified, errors will be raised.
:keyword bool feature_flag_enabled: Optional flag to enable or disable the loading of feature flags. Default is
False.
:keyword List[SettingSelector] feature_flag_selectors: Optional list of selectors to filter feature flags. By
default will load all feature flags without a label.
:keyword bool feature_flag_refresh_enabled: Optional flag to enable or disable the refresh of feature flags.
Default is False.
service call to update the settings. Default value is 30 seconds.
:keyword on_refresh_success: Optional callback to be invoked when a change is found and a successful refresh has
happened.
:paramtype on_refresh_success: Optional[Callable]
:keyword on_refresh_error: Optional callback to be invoked when an error occurs while refreshing settings. If not
specified, errors will be raised.
:paramtype on_refresh_error: Optional[Callable[[Exception], None]]
:keyword feature_flag_enabled: Optional flag to enable or disable the loading of feature flags. Default is False.
:paramtype feature_flag_enabled: bool
:keyword feature_flag_selectors: Optional list of selectors to filter feature flags. By default will load all
feature flags without a label.
:paramtype feature_flag_selectors: List[SettingSelector]
:keyword feature_flag_refresh_enabled: Optional flag to enable or disable the refresh of feature flags. Default is
False.
:paramtype feature_flag_refresh_enabled: bool
"""


Expand Down Expand Up @@ -157,16 +169,20 @@ def load( # pylint: disable=docstring-keyword-should-match-keyword-only
not supported).
:keyword int refresh_interval: The minimum time in seconds between when a call to `refresh` will actually trigger a
service call to update the settings. Default value is 30 seconds.
:keyword Optional[Callable] on_refresh_success: Optional callback to be invoked when a change is found and a
successful refresh has happened.
:keyword Optional[Callable[[Exception], None]] on_refresh_error: Optional callback to be invoked when an error
occurs while refreshing settings. If not specified, errors will be raised.
:keyword bool feature_flag_enabled: Optional flag to enable or disable the loading of feature flags. Default is
False.
:keyword List[SettingSelector] feature_flag_selectors: Optional list of selectors to filter feature flags. By
default will load all feature flags without a label.
:keyword bool feature_flag_refresh_enabled: Optional flag to enable or disable the refresh of feature flags.
Default is False.
:keyword on_refresh_success: Optional callback to be invoked when a change is found and a successful refresh has
happened.
:paramtype on_refresh_success: Optional[Callable]
:keyword on_refresh_error: Optional callback to be invoked when an error occurs while refreshing settings. If not
specified, errors will be raised.
:paramtype on_refresh_error: Optional[Callable[[Exception], None]]
:keyword feature_flag_enabled: Optional flag to enable or disable the loading of feature flags. Default is False.
:paramtype feature_flag_enabled: bool
:keyword feature_flag_selectors: Optional list of selectors to filter feature flags. By default will load all
feature flags without a label.
:paramtype feature_flag_selectors: List[SettingSelector]
:keyword feature_flag_refresh_enabled: Optional flag to enable or disable the refresh of feature flags. Default is
False.
:paramtype feature_flag_refresh_enabled: bool
"""


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@
ETAG_KEY = "etag"
FEATURE_FLAG_REFERENCE_KEY = "feature_flag_reference"
FEATURE_FLAG_ID_KEY = "feature_flag_id"
PERCENTAGE_FILTER_NAMES = ["Percentage", "PercentageFilter", "Microsoft.Percentage", "Microsoft.PercentageFilter"]
TIME_WINDOW_FILTER_NAMES = ["TimeWindow", "TimeWindowFilter", "Microsoft.TimeWindow", "Microsoft.TimeWindowFilter"]
TARGETING_FILTER_NAMES = ["Targeting", "TargetingFilter", "Microsoft.Targeting", "Microsoft.TargetingFilter"]

CUSTOM_FILTER_KEY = "CSTM" # cspell:disable-line
PERCENTAGE_FILTER_KEY = "PRCNT" # cspell:disable-line
TIME_WINDOW_FILTER_KEY = "TIME"
TARGETING_FILTER_KEY = "TRGT" # cspell:disable-line
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
ETAG_KEY,
FEATURE_FLAG_REFERENCE_KEY,
FEATURE_FLAG_ID_KEY,
PERCENTAGE_FILTER_NAMES,
TIME_WINDOW_FILTER_NAMES,
TARGETING_FILTER_NAMES,
CUSTOM_FILTER_KEY,
PERCENTAGE_FILTER_KEY,
TIME_WINDOW_FILTER_KEY,
TARGETING_FILTER_KEY,
)
from .._azureappconfigurationprovider import (
_is_json_content_type,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.