Commit fcc255b
Runtime rules engine (#148)
* bump to alpha version for python3 support
This is the "official" repo, but has been virtually abandoned. the 2017 alpha release is what we need though
* runtime rule NO MATCH ✅
* dry distinct id
* DRY user context
* helper to build context with runtime data
* use helper everywhere for runtime data
* ensure priority is given to new rule
* test all use-cases
* global import
* Update mixpanel/flags/local_feature_flags.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update mixpanel/flags/test_local_feature_flags.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update mixpanel/flags/local_feature_flags.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update mixpanel/flags/local_feature_flags.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* unnest prod vs legacy comparisons
* case-insensitivity ❌
* case-insensitivity ✅
* add tests for error cases
* only lowercase leaf nodes of rule
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 71c22a2 commit fcc255b
File tree
4 files changed
+359
-60
lines changed- mixpanel/flags
4 files changed
+359
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
320 | 361 | | |
321 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
322 | 377 | | |
323 | 378 | | |
324 | 379 | | |
325 | 380 | | |
326 | 381 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 382 | + | |
| 383 | + | |
331 | 384 | | |
332 | 385 | | |
333 | 386 | | |
334 | | - | |
| 387 | + | |
335 | 388 | | |
336 | 389 | | |
337 | | - | |
| 390 | + | |
338 | 391 | | |
339 | 392 | | |
340 | 393 | | |
| |||
0 commit comments