Open pjmonks opened 3 years ago
The PR #649 has introduced a new tree view component that is more simplified, the key part is that the code to fetch more child nodes on expand is separated into a custom DataSource
which makes the code much simpler to follow (and removes a lot of issues I've highlighted in previous comments). Once that PR is merged, it might be worthwhile revisiting this issue to see if it helps.
Background
There are a number of custom tree components (or wrappers around the tree components) which the UI uses, such as:
mdm-folder-tree
- the main catalogue item tree view, containing a lot of additional functionality - drag/drop, multi-selection etcmdm-model-tree-selector
- wrapper component to usemdm-folder-tree
in form field selectorsmdm-models
- another big wrapper aroundmdm-folder-tree
to display the core catalogue item tree for browsing.Issues
The issues found with these are that the data sources are tightly coupled to these components, for example the
mdm-folder-tree
is aware of how to expand each catalogue item further by directly called theMdmResourcesService
. While this works, there are disadvantages too:Discussions
As part of the "Clean Up" project, we should discuss whether the tree components can be tidied up to resolve some/all of these issues: