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-iO API error when using 'screens' query parameter #190

Closed
pixelzoom opened this issue Jul 29, 2020 · 9 comments
Closed

PhET-iO API error when using 'screens' query parameter #190

pixelzoom opened this issue Jul 29, 2020 · 9 comments

Comments

@pixelzoom
Copy link
Contributor

See phetsims/tandem#194. No idea if I need to address this for ph-scale RC.

@pixelzoom
Copy link
Contributor Author

This apparently does need to be addressed for RC.

@pixelzoom
Copy link
Contributor Author

phetsims/tandem#194 has been addressed and verified in master. But I've hit a merge conflict trying to cherry-pick the changes, see phetsims/tandem#194 (comment). I'll need assistance from @zepumph.

@pixelzoom
Copy link
Contributor Author

@zepumph provide details on how to resolve merge conflicts in phetsims/tandem#194 (comment), so I'll try again.

@pixelzoom
Copy link
Contributor Author

I resolved the merge conflict in phetioApiValidation.js by changing this:

    this.enabled = assert &&
                   Tandem.VALIDATION &&
                   phet.chipper.queryParameters.screens === null &&
                   phet.chipper.queryParameters.homeScreen;

... to this:

    this.enabled = assert &&
                   Tandem. PHET_IO_ENABLED &&
                   phet.chipper.queryParameters.screens === null &&
                   phet.chipper.queryParameters.homeScreen;

Seems to work OK in ph-scale 1.4 and ph-scale-basics-1.4, but makes me nervous to be doing partial cherry-picks.

Ready for testing in next RC.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Aug 4, 2020

This is irrelevant for ph-scale-basics.

To verify in the next ph-scale RC:

  1. Run the sim in Studio with ?screens=1
  2. Verify that the sim is run with the first screen only.
  3. Verify that there are no errors in the console.

It is expected that all 3 screens will still be shown in the Studio tree.

@brooklynlash
Copy link

No API error and no console issues, all screens are still showed in the Studio tree but only the name property.

@pixelzoom
Copy link
Contributor Author

... all screens are still showed in the Studio tree but only the name property.

@brooklynlash You're probably only seeing nameProperty for screens in Studio because you have the "Featured" radio button selected for "PhET-iO Elements". You'll need to select the "All" radio button. Please verify that that is the case.

@brooklynlash
Copy link

Yes, my mistake. I need to remember to do that next time

@pixelzoom
Copy link
Contributor Author

Great, thanks. Closing.

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

2 participants