-
Notifications
You must be signed in to change notification settings - Fork 113
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
Allow resetting VirtualizedDynamicScrollRectList (#540) #541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a unit test that validates the "reset" functionality.
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Outdated
Show resolved
Hide resolved
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Outdated
Show resolved
Hide resolved
Reset is a Monobehaviour method, hence renaming to avoid conflict
Thank you for reviewing the PR. I could use some insight into how the tests are structured. The Line 14 in f669f5a
This has some of the functionality I would use in the unit test. Would it be ok to move that to the package? or should I leave that script as it is? |
@ahmed-shariff , it looks like the original owner did not write Unit Tests for
I worry since this is not common/obvious functionality, there's a higher risk for regression if we don't provide a method to validate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for writing those Unit Test :) Thank you !
I have some very minor suggestions....
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Outdated
Show resolved
Hide resolved
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Outdated
Show resolved
Hide resolved
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@shaynie , @marlenaklein-msft , @keveleigh . Once the AZP build completes, I'll merge unless you have feedback |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing my vote.... the Unit Tests seem to be failing. Please fix Unit Tests
MixedReality.Toolkit.UX.Runtime.Tests.VirtualizedScrollRectListTests.TestVirtualizedScrollRectList_ResetLayout
Non of the expected items were found in the scollable list (set1).
Expected: True
But was: False
Not sure what is causing that. The tests were passing on my end. I have made a few updates to when frames are skipped, can we test if they pass again? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I'm guessing the Unit Tests were failing because of the previous |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve. Once @keveleigh approve we will merge
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Show resolved
Hide resolved
Signed-off-by: Ahmed Shariff <[email protected]>
org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs
Outdated
Show resolved
Hide resolved
…rollRectList.cs Co-authored-by: Kurtis <[email protected]> Signed-off-by: Ahmed Shariff <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
In response to #540
This PR add a
Reset
public method toVirtualizedScrollRectList
. TheOnValidate
method already contains the resetting functionality, this PR simply moves that to a newReset
method accessible from outside the class.