Skip to content
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

phet.joist.sim.version is "joist internal" #179

Open
pixelzoom opened this issue Mar 7, 2017 · 4 comments
Open

phet.joist.sim.version is "joist internal" #179

pixelzoom opened this issue Mar 7, 2017 · 4 comments

Comments

@pixelzoom
Copy link
Contributor

pixelzoom commented Mar 7, 2017

ArithmeticModel contains this bit of code:

if ( ArithmeticQueryParameters.autoAnswer && window.phet.joist.sim.version.indexOf( '-' ) > 0 ) {
  this.autoAnswer();
}

window.phet.joist.sim.version is annotated as @public (joist-internal), so Arithmetic should not be using it. And it's causing me problems over in phetsims/joist#406, where I am investigating making sim.version go away.

@pixelzoom pixelzoom changed the title window.phet.joist.sim.version is "joist internal" phet.joist.sim.version is "joist internal" Mar 7, 2017
@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 7, 2017

Looks like the above code is basically doing what we're trying to accomplish in phetsims/joist#406 -- that is, provide a way to decide whether to show answers. So once phetsims/joist#406 is addressed, it can be used here.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 9, 2017

If the identified code is intended to enable answers for dev & rc versions, it is incorrect. Published phetio versions also contain a '-', e.g. 1.0.0-phetio.

This points out another problem. Sims should not be parsing the version identifier. The version identifier should be read by something like SimVersion which handles the parsing, and provides clients with an API for accessing the version identifier. See phetsims/joist#411.

@pixelzoom
Copy link
Contributor Author

3/9/17 developer meeting:
When phetsims/joist#411 is completed, use the API provided to address this issue.

@jbphet jbphet removed their assignment Apr 5, 2018
@marlitas
Copy link
Contributor

It does not look like phetsims/joist#411 is complete, and PhET-iO will not be part of the upcoming region and culture publication. Marking as deferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants