Commit f2033b5
committed
Bug 2045853 - Trigger postEnrolmentCalculation() on all enrollment changes
`postEnrolmentCalculation()` is responsible for recording the active
experiments and triggering the `onUpdatesApplied` observer -- which is
in turn used to invalidate the FML feature cache. Several enrolment
change mechanisms were not properly triggering `onUpdatesApplied`, which
has lead to stale feature value caching issues (see-also
mozilla-mobile/fenix#21838). These issues have
been band-aided by calling applyPendingExperiments() in most cases,
which results in ~correct behaviour but does a double update.
Now we trigger `postEnrolmentCalculation()` and therefore feature
invalidation on all enrollment changes.1 parent fcc5382 commit f2033b5
2 files changed
Lines changed: 39 additions & 20 deletions
File tree
- components/nimbus/android/src
- main/java/org/mozilla/experiments/nimbus
- test/java/org/mozilla/experiments/nimbus
Lines changed: 37 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
| 461 | + | |
464 | 462 | | |
465 | 463 | | |
466 | 464 | | |
| |||
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
491 | 492 | | |
492 | 493 | | |
493 | 494 | | |
494 | | - | |
495 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
496 | 500 | | |
497 | 501 | | |
| 502 | + | |
498 | 503 | | |
499 | 504 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
505 | 516 | | |
506 | 517 | | |
507 | 518 | | |
508 | 519 | | |
509 | 520 | | |
510 | | - | |
511 | | - | |
512 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
513 | 531 | | |
514 | 532 | | |
515 | 533 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
| 946 | + | |
946 | 947 | | |
947 | 948 | | |
948 | 949 | | |
| |||
0 commit comments