Commit 1f50031
refactor(BA-5878): clarify legacy-direction in ValueType label helpers
The two helpers were named "to_live_stat_label" / "from_legacy_live_stat_label",
which obscured their actual asymmetry: only the encoder produces the
legacy "stats.<name>" form, while the decoder accepts both legacy and
current shapes. Rename them to:
- ValueType.to_legacy_live_stat_label — encoder, legacy emission
- ValueType.from_live_stat_label — decoder, accepts either form
and document the "stats." prefix as the legacy convention so the
removeprefix branch reads as historical compatibility, not generic
parsing.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent c45735f commit 1f50031
3 files changed
Lines changed: 7 additions & 5 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments