Commit 1aed3cb
Config v6 (#50)
* Expose Python 3.11 support
* add a tox.ini config for easier local testing
* Drop unsupported Python versions and update syntax accordingly
* Add Flake8 linting to tox
* Fix semver deprecations warnings
* Export typing using PEP-561 py.typed
* Add typing check and expose linting settings
* Simplify github actions workflow
- run test and coverage in a single pass
- use official codecov action to upload coverage
- add typing analysis
- run flake8 once and rely on settings
* Fix all lints
* Update contributing guide and document `tox` usage
* Ignore python:S4790 intentional Sonar errors
* reverse commit: Drop unsupported Python versions and update syntax accordingly
* update CONTRIBUTING.md
* remove MyPy check
* universal bdist_wheel
* intro config v6 json format
* add comparators
* conditions check
* dependent flag logging into the same log_entries
* configclient get_config fixes
* dependency loop check
* testmatrix comparators_v6
* testmatrix segments
* testmatrix dependent flag
* testmatrix: AndOr
* dependent flag logging
* comments
* TODO: percentage_rule_attribute
* sdk key validation check
* percentage_rule_attribute log
* move sha256 calculation into a function
* finalize no percentage_rule_attribute error handling
* introduce typed value in override + test fixes
* linter fixes
* cleanup
* github test fix
* custom percentage attribute
* IS NOT IN SEGMENT fix
* operator updates
* update tests
* lint fixes
* circular dependency test
* new evaluation logging (WIP)
* github action: python 2.7 support
* fix user json key order on python 2.7
* Remove the u prefix from unicode strings on python 2.7 in the eval log tests
* evaluation logging
* lint fixes
* fix tests
* test_options_within_targeting_rule
* lint fix
* typo fix
* handling the modified config json format
* evaluation log test + generator + data
* lint fix
* Adjust evaluation and update evaluation tests
* In case of local only flag overrides mode, we accept any SDK Key format
* rename comparators
* NOT STARTS WITH ANY OF (hashed), NOT ENDS WITH ANY OF (hashed) comparators
* eval log tests: validation error handling
* lint fixes
* consistent trim logic during evaluation
* log fix
* test incorrect json
* evaluation log update: hashed value + max 10 length lists
* indentation fix
* matched_evaluation_rule -> matched_targeting_rule, matched_evaluation_percentage_rule -> matched_percentage_rule
* evallogging: list logging fix
* update matrix tests + eval log tests
* Fix list_truncation.txt
* Turn off python 2.7 build
* attr_value_from_datetime + attr_value_from_list
* inline salt, segment for handling flag override
* fix python 3.5 test
* check if the prerequisite key exists
* remove unnecessary served_value get
* add `any of` tests to testmatrix_comparators_v6
* rename config members (comparision_rule -> user_condition, segment_rule -> segment_condition)
* config descriptor
* github-ci fix
* fix python 2.7 tests
* github ci: python 3.5
* Adjust config model and tests to config v6 schema changes
* matrix test update + new cleartext comparators
* unicode tests
* segments_old matrix test + segment eval log fix
* python 2.7 unicode support
* fix evaluation log test on python <= 3.5
* type mismatched user attribute warning
* python 3.12 support
* lint fix + review fixes
* python 2.7 fix
* github ci: win test fix
* review fixes + exceptions in prerequisite flag evaluation
* lint fix
* don't force users to pass user object attributes as strings
* test: evaluation_details_matched_evaluation_rule_and_percentage_option
* DefaultValue and SettingType mismatch warning
* forced setting_type check
* python 2.7 support (timezone, unicode/str handling)
* Read cache upon each setting read (lazy cache fix)
* fix coding convention
* bump version 9.0.0
* ConfigService's refresh offline warning
* comment updates
* remove unsupported value error log
---------
Co-authored-by: Axel H <[email protected]>1 parent 241805f commit 1aed3cb
File tree
114 files changed
+3715
-721
lines changed- .github/workflows
- configcatclienttests
- data
- evaluation
- 1_targeting_rule
- 2_targeting_rules
- and_rules
- comparators
- epoch_date_validation
- list_truncation
- number_validation
- options_after_targeting_rule
- options_based_on_custom_attr
- options_based_on_user_id
- options_within_targeting_rule
- prerequisite_flag
- segment
- semver_validation
- simple_value
- configcatclient
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
114 files changed
+3715
-721
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
0 commit comments