Detail
Detail
Filters can be configured for the model-based search (tl:ModelBasedSearch$SearchConfig), e.g. to restrict the search by type.
New views can be created dynamically within the scope of ticket #24085. To create a table, among other things, a type is needed for the list elements. The options should be calculated in the same way as in the model-based search and generally with the same filters.
At the moment the filters are fixed for the model based search. This should be generalized so that it can be used in the in-app creation as well.
Implementation
The configuration of tl:ModelService now also implements tl:ModelFilterConfig. Via filterModel(), the tl:ModelService provides the configured filter to the app.
Migration
Some classes are now in the com.top_logic.model.filter package:
- tl:TLNamedPartFilter -> com.top_logic.model.filter.TLNamedPartFilter
- tl:UselessTypeFilter -> com.top_logic.model.filter.UselessTypeFilter
- tl:ModuleNameFilter -> com.top_logic.model.filter.ModuleNameFilter
- tl:ModelFilter -> com.top_logic.model.filter.ModelFilter
Test
In the model based search as well as in the in-app creation of e.g. a new table, a filtered set of options for the type is displayed. In particular, no tl:TLAssociation should be displayed.