Leantime/leantime

Move all repo calls from controllers to services

Open

#1,532 opened on Mar 31, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)PHP (957 forks)batch import
Help Wantedgood-first-issue

Repository metrics

Stars
 (9,827 stars)
PR merge metrics
 (Avg merge 12h 22m) (61 merged PRs in 30d)

Description

The controllers should not be calling the repos directly. Instead they should call a service method. The service layer should be the layer calling the repo.

As such the task is to go through all controllers and update repository calls to be service calls. If the method does not exist in the service a wrapper service method should be created.

Contributor guide