Closed pixelzoom closed 11 months ago
I discussed how to proceed with @zepumph and @samreid.
grunt generate-phet-io-api --stable
, then review and commit any that have changed.The fix is in https://github.com/phetsims/scenery-phet/commit/63d08531bcc98229cc727306cc925be88a594837.
Surprisingly, grunt generate-phet-io-api --stable
says that no API files are changed. So that means no migration rules.
@zepumph @samreid please check my work, then feel free to close.
I reviewed the commits and they look correct to me, thanks. Closing.
Discovered while instrumenting My Solar System for https://github.com/phetsims/my-solar-system/issues/237.
NumberDisplay provides the ability to opt-out of instrumenting its
valueText
(Text/RichText) subcomponent, a request that has been made numerous times by PhET-iO designers. That is accomplished like this:The bug is that
valueText
has childvalueStringProperty
, and it is instrumented asvalueText.valueStringProperty
regardless of the value ofoptions.textOptions.tandem
. Here's the relevant code that contains the bug:The bug is on line 207, noted above. The assignment to
valueTextTandem
is not considering that the default of "valueText" may have been overridden viaoptions.textOptions.tandem
.Fixing this will undoubtedly result in a PhET-iO API change for one or more sims, and may also require migration rules.
@zepumph @samreid @arouinfar FYI.