minor
minor
For model-based search, filters can be configured (tl:ModelBasedSearch$SearchConfig) to, for example, restrict the search to specific types.
As part of Ticket #24085, new views can be created dynamically. To generate a table, for example, a type is required for the list items. The options should be calculated using the same filters as in model-based search and, in general, with the same filters.
Currently, the filters are hard-coded for model-based search. This should be generalized so that it can also be used in in-app creation.
Implementation
The configuration of `tl:ModelService` now also implements `tl:ModelFilterConfig`. The `tl:ModelService` makes the configured filter available to the application via `filterModel()`.
Migration
Some classes are now located 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 model-based search, as well as when creating a new table within the app, a filtered set of options for the type is displayed. In particular, no tl:TLAssociation entries should be displayed.