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

Convert types to use PhetioObject #46

Closed
samreid opened this issue Dec 14, 2017 · 26 comments
Closed

Convert types to use PhetioObject #46

samreid opened this issue Dec 14, 2017 · 26 comments

Comments

@samreid
Copy link
Member

samreid commented Dec 14, 2017

See https://github.com/phetsims/phet-io/issues/1227

@samreid samreid self-assigned this Dec 14, 2017
@samreid
Copy link
Member Author

samreid commented Dec 14, 2017

Beer's Law Lab is now using PhetioObject, see phetsims/beers-law-lab#219

@samreid samreid changed the title Convert objects to use PhetioObject Convert types to use PhetioObject Dec 15, 2017
samreid added a commit to phetsims/axon that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/forces-and-motion-basics that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/energy-skate-park-basics that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/john-travoltage that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/build-an-atom that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/shred that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/axon that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/build-an-atom that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/shred that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/axon that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/axon that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/axon that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/build-an-atom that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/charges-and-fields that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/charges-and-fields that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/charges-and-fields that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/charges-and-fields that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/charges-and-fields that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/color-vision that referenced this issue Dec 15, 2017
@samreid
Copy link
Member Author

samreid commented Dec 15, 2017

I've done several, but there are still 30 or so more cases to convert. Tagging @ariel-phet and @kathy-phet so they are aware I'll be working on this.

samreid added a commit to phetsims/color-vision that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/joist that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/molarity that referenced this issue Dec 15, 2017
samreid added a commit to phetsims/energy-skate-park that referenced this issue Nov 29, 2018
samreid added a commit to phetsims/build-an-atom that referenced this issue Nov 29, 2018
samreid added a commit to phetsims/scenery that referenced this issue Nov 29, 2018
samreid added a commit that referenced this issue Nov 29, 2018
samreid added a commit to phetsims/axon that referenced this issue Nov 29, 2018
@jonathanolson
Copy link
Contributor

Regarding 'Node.dispose() call is missing from an overridden dispose method' -- do we want that functionality it PhetioObject?

Presumably yes. Can test in the Scenery playground:

function SubNode() { scenery.Node.call( this ); }
phetCore.inherit( scenery.Node, SubNode, {
  dispose() { console.log( 'oops no super call' ) }
} );
var s = new SubNode();
s.dispose(); // no error

however if it's extremely rare to run into this for all devs, then I'm fine dropping it. Presumably the code could just be moved over to PhetioObject? (I'll test that and see if I run into assertions anywhere).

@jonathanolson
Copy link
Contributor

The other commits (tandem/axon/scenery) look good.

@jonathanolson
Copy link
Contributor

Adding the assertion found that ESPB/ESP Track.js inherits PhetioObject but doesn't do the super dispose.

@samreid
Copy link
Member Author

samreid commented Nov 29, 2018

That sounds like a good catch, do you want to commit the change to PhetioObject?

@samreid samreid assigned jonathanolson and unassigned samreid Nov 29, 2018
@pixelzoom
Copy link
Contributor

@samreid will commit the fix, then remove the "blocks" label. Wait on GQ and AM RCs until this is done.

@samreid
Copy link
Member Author

samreid commented Nov 29, 2018

Proposed fixes above and correctly flag problems in Energy Skate Park sims. Flagging @jessegreenberg so he is aware. Reassigned to @jonathanolson to review and close if all is well.

@pixelzoom
Copy link
Contributor

Increasing priority, since this is blocking Graphing Quadratics 1.0 RC. Please notify me when this is closed.

@samreid
Copy link
Member Author

samreid commented Nov 30, 2018

I also mentioned to @pixelzoom that he can review this if he gets to it first.

@pixelzoom
Copy link
Contributor

I'd prefer not to spend time familiarizing myself with this issue. But if @jonathanolson doesn't get to it by Monday morning, I'll dive in.

@jonathanolson
Copy link
Contributor

Looks good to me.

@pixelzoom
Copy link
Contributor

I took a look too, had some questions on Slack, was convinced that this has low risk to cause problems.

zepumph pushed a commit to phetsims/utterance-queue that referenced this issue Oct 22, 2019
zepumph pushed a commit to phetsims/utterance-queue that referenced this issue Oct 22, 2019
jessegreenberg pushed a commit to phetsims/greenhouse-effect that referenced this issue Apr 21, 2021
jessegreenberg pushed a commit to phetsims/greenhouse-effect that referenced this issue Apr 21, 2021
jessegreenberg pushed a commit to phetsims/greenhouse-effect that referenced this issue Apr 21, 2021
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

4 participants