-
Notifications
You must be signed in to change notification settings - Fork 5
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
Review and Testing for IO Types #217
Comments
@zepumph replied:
|
@ariel-phet said:
|
Dev testing for Gravity and Orbits completed and no issues related to this were identified. Based on the preceding 2 comments, can @zepumph review and test the IO type changes (see bullet list 2 comments beforehand)? Perhaps this should block next PhET-iO RCs. |
I feel like studio is testament that this works well. I looked at the rendered jsdoc, though I don't think that was the point of this review, and found a bug fixed in the above commit. I noticed phetsims/scenery#1047 (comment).
// {string} Documentation that appears in PhET-iO Studio, supports HTML markup.
documentation: `IO Type for ${ioTypeName.substring( 0, ioTypeName.length - PhetioConstants.IO_TYPE_SUFFIX.length )}`,
if ( this.hasOwnProperty( 'api' ) ) {
assert && assert( this.api instanceof Object, 'Object expected for api' );
assert && assert( Object.getPrototypeOf( this.api ) === Object.prototype, 'no extra prototype allowed on API object' );
} I promoted this to a TODO so that it would be dealt with here: @samreid please take a look at my suggestions and commit. Everything here seems pretty minor. I'd be fine with you taking off the blocking label, but I think we should try to finish up these loose ends eagerly. |
Thanks for the feedback. I addressed them. I didn't see a robust way to detect FunctionIO in phetioCommandProcessor, so I gave the option a better name. Should we move // TODO: What about EmitterIO<> that has no parameter types? See #217 to another issue? Can you recommend how to process that case? Please review my commits. Can this issue be closed? |
Yes new issue sounds good. Please create. EDIT: I'll make one now, at 10:35MT 10/29 |
Everything else looks great. |
I created #223, I'm going to close this issue. |
From #211, we have made significant improvements to IO Types, and more changes are planned in issues like:
#212
https://github.com/phetsims/phet-io/issues/1709
#213
We want to be confident these changes are all set for production. Here is the thread from #211:
All TODOs have been addressed or moved to other issues. The last topic for this issue is how it should be tested. Some options:
The lazy approach may be sufficient in this case, but we have discussed moving toward the eager approach for certain things. @zepumph and @ariel-phet what do you recommend?
The text was updated successfully, but these errors were encountered: