-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SoluteIO 'name' does not update when locale is changed. #243
Comments
The easiest thing to do here would be to reimplement SoluteIO like this:
I'm not really convinced that showing Solute name and pH in Studio has much value. The instructional designer can always consult the running sim. @arouinfar your thoughts? |
I'll self-unassign until we hear from @arouinfar, but I agree if information is in the sim, it does not need to be restated in studio. |
Can we drop the name field and instead just include the phetioID and pH? We include the pH so users know the undiluted value. |
#243 (comment) seems fine to me. I see 2 other problems though:
If (1) was not the case, then #243 (comment) would be particularly ideal because we would be able to go to that in studio and see the state of it. @samreid, yet another time we wished we differentiated between allowing to have a serialized value VS. being included in state setting. |
How/why does it have any serialization potential other than "reference"? It has no Properties that it owns, and
That does seem buggy. I see the same problem in BLL with static solutes under |
@arouinfar please review. SoluteIO 'name' field was removed in the above commit. Here's how the value of a |
It's unclear if I need to comment on any parts of this, I'll self-unassign for now but please reinvite me if necessary. |
Yes @samreid -- I would still like you or @zepumph to reply to #243 (comment):
|
Dynamic, localized strings should not appear in IOType documentation or method names. If we need to link one PhetioObject to a LocalizedString, perhaps that could be done via a linked element? |
It's not appearing in IOType documentation or method names. It's in the state object.
That is the problem that resulted in phetsims/axon#414. LocalizedStrings are |
In phetsims/axon#414 we will make the localized strings linkable. Copying the current value of one instrumented property so it will show up in the state of another PhetioObject doesn't sound like a good idea to me.
This sounds like a job for linked elements, if I understand correctly. |
You understand correctly, and I agree. So I'll unassign @samreid and @zepumph. I'll create a new ph-scale issue to link Solute to its Remaining work here is review by @arouinfar, see #243 (comment). |
Looks good, thanks @pixelzoom. |
After adding support for dynamic locale in #239, we have a problem with SoluteIO. It is currently defined like this:
And the value shown in Studio displays 'phetioID', 'name', and 'pH' fields, for example:
The problem is that the name field is now dynamic (changes with localeProperty) and it does not update where SoluteIO is displayed in Studio.
@zepumph @samreid thoughts?
The text was updated successfully, but these errors were encountered: