Commit db087fc
fix(nimbus): capture branch feature value changes in history changelog
Because
* NimbusBranchesForm.save() called super().save() which triggered
NimbusChangeLogFormMixin.save() to generate the changelog snapshot
before self.branches.save() ran, causing the changelog to capture
stale feature values instead of the updated ones
* Feature value changes were invisible on the History page
This commit
* Moves self.branches.save() before super().save() in
NimbusBranchesForm so that branch feature values are persisted
before the changelog snapshot is taken
* Adds a test that saves an experiment with initial feature values,
updates the values, and asserts the changelog captures the change
Fixes #14998
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 88efe41 commit db087fc
File tree
2 files changed
+13
-1
lines changed- experimenter/experimenter/nimbus_ui
- tests
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
833 | 832 | | |
| 833 | + | |
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3226 | 3226 | | |
3227 | 3227 | | |
3228 | 3228 | | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
3229 | 3241 | | |
3230 | 3242 | | |
3231 | 3243 | | |
| |||
0 commit comments