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

Studio search feature is broken #172

Closed
pixelzoom opened this issue Jul 20, 2020 · 15 comments
Closed

Studio search feature is broken #172

pixelzoom opened this issue Jul 20, 2020 · 15 comments
Assignees
Labels

Comments

@pixelzoom
Copy link
Contributor

pixelzoom commented Jul 20, 2020

For phetsims/qa#514 and phetsims/qa#515.

See https://github.com/phetsims/studio/issues/171.

@pixelzoom
Copy link
Contributor Author

Assigning to @arouinfar, because this is blocked until we get her feedback on https://github.com/phetsims/studio/issues/171.

pixelzoom added a commit that referenced this issue Jul 30, 2020
pixelzoom added a commit to phetsims/ph-scale-basics that referenced this issue Jul 30, 2020
@pixelzoom
Copy link
Contributor Author

phetsims/studio#171 is resolved. I ran into merge issues when cherry-picking https://github.com/phetsims/studio/commit/f847cd4763c7619f731a24a0ec281134f48aa0ef, in the list of commits in https://github.com/phetsims/studio/issues/171#issuecomment-666481584. @zepumph and I resolved these problems by:

  1. Replacing the body of Search findMatches with the new implementation, then changing 2 uses of singleton studio to this.studio and Studio.
  2. In Select.js, moving constant screenPropertyID to a local variable at use sites, so that unit tests would pass (necessary to commit.)
  3. Run git add . and git commit, then proceed with cherry-picking.

@pixelzoom
Copy link
Contributor Author

Ready for testing in next RC.

@pixelzoom
Copy link
Contributor Author

This is not working correctly in master when "Featured" is selected. Reopening phetsims/studio#171, blocking.

@pixelzoom
Copy link
Contributor Author

Note to self: When phetsims/studio#171 is fixed, cherry-pick to ph-scale 1.4 and ph-scale-basics 1.4. Test in local builds.

@arouinfar
Copy link
Contributor

@pixelzoom
Copy link
Contributor Author

phetsims/studio#171 has been re-closed. The broken part of Search is now being tracked in phetsims/studio#175.

@pixelzoom
Copy link
Contributor Author

https://github.com/phetsims/studio/issues/175 is fixed and ready for cherry-pick to ph-scale 1.4 and ph-scale-basics 1.4.

In https://github.com/phetsims/studio/issues/175#issuecomment-673713352, @zepumph said:

... here is the ordered list to cherry-pick for this issue:
https://github.com/phetsims/studio/commit/130ca7d42b1097670fb57a77359ca26fbdabe2b4
https://github.com/phetsims/studio/commit/7b291656e59297e06353b7bdb3a59c1fed3cc09e
https://github.com/phetsims/studio/commit/b6fd9136e5d17d003f347f3afc4cc894730dad65

https://github.com/phetsims/studio/commit/130ca7d42b1097670fb57a77359ca26fbdabe2b4 cherry-picked OK.

https://github.com/phetsims/studio/commit/7b291656e59297e06353b7bdb3a59c1fed3cc09e is causing merge conflicts in both Select.js and Studio.js. No idea how to resolve these, because it looks like there have been other changes since shas were taken for ph-scale. And I may have already picked Studio.js changes for #168.

https://github.com/phetsims/studio/commit/b6fd9136e5d17d003f347f3afc4cc894730dad65 cherry-pick hasn't been attempted yet.

I'm going to need assistance from the iO team on this.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Aug 17, 2020

@samreid @chrisklus and I spent ~45 minutes working on this via Zoom. After cherry-picking phetsims/studio@130ca7d, we had to manually apply relevant changes from the remaining 2 shas, and you can see the result in https://github.com/phetsims/studio/commit/decf8af891e15c850bf61bfe189d1d8ddcf97491.

To verify in the next RC:

  1. Run the sim in Studio
  2. Verify that you can search for an element using it full phetioID, like phScaleBasics.macroScreen.view.drainFaucetNode.visibleProperty.
  3. Verify that you can search by partial phetioID, like view.navigationBar.phetButton.

@pixelzoom
Copy link
Contributor Author

The cherry-picks that I picked up above apparently also include fixes for https://github.com/phetsims/studio/issues/168 (Studio clears tree selection when switching between "Featured" and "All" radio buttons). So I've updated #172 (comment) to include tests for that issue.

@zepumph
Copy link
Member

zepumph commented Aug 21, 2020

The cherry-picks that I picked up above apparently also include fixes for phetsims/studio#168 (Studio clears tree selection when switching between "Featured" and "All" radio buttons)

This is not true, that issue is not fixed, please don't test that for the RC.
Please see https://github.com/phetsims/studio/issues/168#issuecomment-678446412 for further explanation and feel free to reach out to me for more discussion.

@pixelzoom
Copy link
Contributor Author

OK, I will remove verification of phetsims/studio#168 from the steps in #172 (comment).

@brooklynlash
Copy link

Looks like this works on Chromebook.

@pixelzoom
Copy link
Contributor Author

Thanks @brooklynlash.

@KatieWoe are you planning to test on other platforms, or can this be closed?

@KatieWoe
Copy link
Contributor

Closing

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

No branches or pull requests

5 participants