Add dropdown selection handler after binding#14744
Merged
QilongTang merged 1 commit intomasterfrom Dec 12, 2023
Merged
Conversation
UI Smoke TestsTest: failure. 1 passed, 1 failed. |
UI Smoke TestsTest: success. 2 passed, 0 failed. |
Contributor
|
@twastvedt tested this a bit seems good |
QilongTang
approved these changes
Dec 12, 2023
Member
|
What’s with the failing net8 smoke test ? |
Contributor
I believe that TOU smoke test fail sporadically. |
QilongTang
pushed a commit
that referenced
this pull request
Dec 12, 2023
QilongTang
added a commit
that referenced
this pull request
Dec 12, 2023
* DYN-6524 Packages Tour Regression (#14721) I did several updates for the Packages guide: I've splitted the functionality of collapseExpandPackage so now we will have one method for collapse and another one for expand, so the function collapseExpandPackage was renamed to expandPackageDiv. Some Steps in the dynamo_guides.json were modified to stick to the functionality of expanding the package when passing from Step8 to Step9. Finally I added a validation in the function that highlight a div so if the div is already highlighted when we don't add the functionality ( this will prevent showing the orange rectangle when closing the guide ). * DYN-6055 Lucene Search Category Based. (#14663) * DYN-6055 Lucene Search Category Based. I've updated the Lucene Search in a way that if the user type the "." character then the search will be "category based" (e.g. the search criteria "list.r" will find all the nodes which belong to the list category and the node name starts with r). For this implementation I've indexed two new fields: NameSplitted and CategorySplitted. For NameSplitted when the node name contains the Category (like List.Shop) then we will be using the last part (after the "." character), the same case for CategorySplitted, we will be using the last part after the "." character. * DYN-6055 Lucene Search Category Based Code Review I've added more comments I've changed the validation for always taking the last two sections (the NameSplitted can be empty due that later there is a validation) so if the search criteria use a large category like "Core.File.FileSystem.A". it will take only the last two sections. * DYN-6055 Lucene Search Category Based Code Review Adding a unit test that will validate category search based. * Fixing Search Regressions (#14738) For the test SearchingForACategoryReturnsAllItsChildren now with my changes related to category based search the term "Category.Child" will be searching the nodes with Category = Category and Name=Child so that's why was not returning results adding an extra "." in the search term fixed it. The same case for the test LuceneSearchNodesByCategoryValidation, was expecting all the nodes under the category "Core.Input" so we have to add an extra "." in the search term. For the test LuceneSearchNodesOrderingValidation I have to change a node due that with my changes the order changed and now is one position below (for the search term "list.join" we only guarante that the items at the top will be Category = list and the name starts with "join"). * mark test failure * Add selection handler after binding. (#14744) --------- Co-authored-by: Roberto T <[email protected]> Co-authored-by: Trygve Wastvedt <[email protected]>
saintentropy
pushed a commit
to saintentropy/Dynamo
that referenced
this pull request
Mar 14, 2024
(cherry picked from commit 8435171)
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This fixes a bug where opening a graph with a dropdown node in it caused the graph to immediately show as modified in Dynamo. This was because of a SelectionChanged event on the dropdown which was triggered when the SelectedIndex property was first bound to the model. Moving the event subscription to after the view has bound the SelectedIndex property seems to fix the bug.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Don't set dropdowns as modified on first load of graph.
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of