tuwien-csd / damap-backend

MIT License
5 stars 6 forks source link

General Search Interface #249

Open rekt-hard opened 2 months ago

rekt-hard commented 2 months ago

Description A streamlined approach for the search process, possibilities and configurations. Possibility to pass possible config and filters to the front end for re-usability. Based on the config, the front end can build a UI with filter options and sort options. This will allow to have a common front end component for each search - reducing UI logic and code duplication.

Outcome of such an approach will provide the following benefits:

Proposed solution

Possible Architecture

In essence, a first possible architecture approach is to set it up as follows.

Layers

Resource Layer

Actions:

Service Layer

Actions:

Data Layer

Actions:

Configurations

For this, additional configs have to be in place.

Service

Relevant issues/PRs

First implementation #246

Alternative solution Hard code possible search methods and options per service (duplication of code and logic)