Commit e09cb23
Add support for filtering by tags (#637)
* Adding allocation id
* serialize with sorted keys
* use string empty
* nit
* rename ff id to TelemetryVariantPercentile
* add more values
* dotnet format
* Version bump
* Add `RegisterAll` API to enable monitoring collections of key-values for refresh (#574)
* WIP
* WIP testing out client extensions methods
* WIP added selectors to multikeywatchers
* remove unused property
* WIP check for registerall changes to change refreshall
* WIP
* WIP fixing types and reslving errors
* WIP fixing client extensions class
* WIP
* WIP update feature flag logic
* WIP client extensions
* WIP reload all flags on change
* WIP
* WIP fixing tests to return response for getconfigurationsettingsasync
* WIP etag for tests
* fix watchedcollections null
* WIP tests, working for examples
* remove unused variables
* update to newest sdk version, remove unused
* WIP fixing tests
* WIP reworking testing to work with new etag approach
* tests passing, fix mockasyncpageable
* update sdk package version
* fix loghelper, tests
* WIP fixing aspages tests
* revert watchesfeatureflags test
* update test again
* WIP
* fixing watchconditions
* separate selected key value collections from feature flag collections, separate selectors, add new methods to support new logic
* comment and naming updates
* fixing unit tests, namespace of defining/calling code needs to be same
* fixing tests using AsPages
* fix tests with pageablemanager
* format
* fix tests
* fix tests
* remove unused extension test class
* fix comment, capitalization
* check etag on 200, fix tests
* add registerall test, fix refresh tests
* fix condition for pages and old match conditions
* WIP fixing PR comments, tests
* check status after advancing existing etag enumerator
* move around refresh logic
* null check page etag, revert break to existing keys check in getrefreshedcollections
* fix loadselected, replace selectedkvwatchers with registerall refresh time
* fix comment in options
* clean up tests
* PR comments
* PR comments
* don't allow both registerall and register
* fix check for calls to both register methods
* PR comments for rename/small changes
* fix compile error
* simplify refreshasync path, fix naming from comments
* remove redundant if check
* simplify logic for minrefreshinterval
* fix smaller comments
* call loadselected when refreshing collection, separate data for individual refresh
* in progress change to registerall include ff
* fix load order
* fix comments, rename logging constants to match new behavior
* pr comments, refactor refreshasync
* clean up etags dictionary creation
* PR comments
* add uncommitted changes to testhelper
* update tests for registerall with feature flags, check ff keys to remove flags on refresh
* PR comments
* PR comments
* use invalidoperationexception in configurerefresh, update loggingconstants to match behavior
* remove unused changes
* Give the users the ability to have control over ConfigurationClient instance(s) used by the provider (#598) (#617)
* Introduced a new `AzureAppConfigurationClientFactory` class to handle the creation of `ConfigurationClient` instances
* remove clients dictionary since we will not have hits and clients are already stored in ConfigurationClientManager
* revert
* add license + remove unused usings
* ran dotnet format
* add capability of fallback to different stores
* add explicit type
* address comments
* remove scheme validation
---------
Co-authored-by: Sami Sadfa <[email protected]>
Co-authored-by: Sami Sadfa <[email protected]>
* first draft tag filtering support
* add alternate APIs
* change to use ienumerable
* update featureflagoptions to match main options
* update keyvalueselector equals and hashcode
* update param comments for selects
* fix merge conflict errors
* add validation for tagsfilter param, add to comment
* edit error message for format
* edit comment
* add unit tests
* remove unused file
* revert versions
* update tests to include feature flag select
* add refresh test
* ff only refresh test
* update equals for selector
* fix equals
* update equals
* reorder properties in keyvalueselector
* upgrade to 8.2.0-preview (#638)
* fix incorrect test
* fix equals for selector
* update gethashcode for keyvalueselector
* PR comments, in progress
* update tests from PR comments
* add validation for number of tags, add test
* rename tagsFilter to tagsFilters everywhere
* fix usings, missing updates to ffoptions
* update ffoptions select again
* fix tests
* update sdk version
* update tagsfilters to tagfilters
* remove tagsfilters again
* PR comments
* PR comments
* Revert "Merge pull request #600 from Azure/rossgrambo/allocation_id"
This reverts commit 51d4ad7, reversing
changes made to d551536.
* Revert "Give the users the ability to have control over ConfigurationClient instance(s) used by the provider (#598) (#617)"
This reverts commit 6dc9ae2.
---------
Co-authored-by: Ross Grambo <[email protected]>
Co-authored-by: Sami Sadfa <[email protected]>
Co-authored-by: Sami Sadfa <[email protected]>
Co-authored-by: Sami Sadfa <[email protected]>1 parent bf8b06b commit e09cb23
File tree
8 files changed
+1250
-523
lines changed- src/Microsoft.Extensions.Configuration.AzureAppConfiguration
- FeatureManagement
- Models
- tests/Tests.AzureAppConfiguration
8 files changed
+1250
-523
lines changedLines changed: 537 additions & 517 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
828 | 829 | | |
829 | 830 | | |
830 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
831 | 840 | | |
832 | 841 | | |
833 | 842 | | |
| |||
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
103 | 121 | | |
104 | 122 | | |
105 | 123 | | |
| 124 | + | |
106 | 125 | | |
107 | 126 | | |
108 | 127 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
43 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
44 | 57 | | |
45 | 58 | | |
46 | 59 | | |
| |||
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
58 | 84 | | |
59 | 85 | | |
60 | 86 | | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments