Closed
Description
Describe the chore
Some ViewModel
s form the flask filter query themselves and then pass it on to their correspoding Service
s. An example would be EventsViewModel
forming the query in loadLocationEvents
method and passing it to EventService
.
The problem is that this moves the logic of retrieving data from Services
(where it belongs) to ViewModel
s. The ViewModel
s should not be concerned with how the data is being retrieved. That is Service
s role.
So, the flask filter query should be formed in the Service
s and not in the ViewModel
s.
Would you like to work on the issue?
- Yes
- No
Metadata
Metadata
Assignees
Labels
No labels