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
DROOLS-2883: [DMN Designer] Add a Search bar in the Data Type dialog for search top level custom Data Types / DROOLS-3030: [DMN Designer] Expand / Collapse all #2333
Conversation
50b9d38
to
2486206
Compare
…og for search top level custom Data Types * DROOLS-3030: [DMN Designer] Expand / Collapse all
Jenkins please retest this (now the BPMN2 file indexer test is fixed) |
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.
Code looks OK to me; however I can break it quite easily:
- Launch workbench/webapp
- Create new DMN file
- Select "Data Type" tab
- Add 'a'
- Add 'b'
- Search for 'a' ('a' is shown, 'b' is not. Great!). Do not clear/reset search
- Click Add
- New item not shown
- Clear/reset search and they appear (so search is acting more like a "dynamic filter")
- Select one of the new items created (that was hidden) and "Remove" it
- "No custom Data Types found" shown. Need to clear/reset search (again)
- Repeat..
- Click expand/collapse NPE.
@karreiro postponing my review until you address Michael's comments to avoid spotting the same. |
* DROOLS-3329: [DMN Designer] Memory leak in DataTypeList
Thank you, @manstis. Regarding the issue when the user adds a new Data Type.. I'm reseting the search bar in this scenario. When users are filtering data types, they are looking for something, and when they are creating a new top-level DT, they don't need to keep the old search. About the bug related to the "Remove" operation.. the search bar exposed an existing issue, the DROOLS-3329. It's fixed now. Finally, the NPE with expand/collapse was related to the DROOLS-3329 too. Thus, changes applied :-) Thanks! @jomarko Feel free to take a look now ;-) |
@karreiro HI, found one minor issue on edge DROOLS-3426. And here are some comments with questions, proposals, let me know if I should file jiras for them.
Otherwise works fine. Tested manually, still need to check code. |
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.
Works well now; thanks @karreiro
Code looks fine |
@jomarko If the code is fine and you've tested manually could you please approve the PR? |
@manstis Thank you ;-) @jomarko Thank you! Regarding the "Expand/Collapse" improvement, I think we can handle this in a separated JIRA. Also, about the filter behavior (we the user updates a DT), personally I think that the current operation looks like something I expect as a user. But, we can create a UX JIRA to have a broader discussion there about it (but, for now, I think that we're fine). |
See:
DROOLS-2883:
DROOLS-3030: