ugent-library / old-people-service

People service
Apache License 2.0
0 stars 0 forks source link

[Services] Deprecate the Services() object #26

Closed netsensei closed 1 year ago

netsensei commented 1 year ago

Story

Biblio Backoffice uses a global Services struct which initializes all the objects when the program is executed. Via the Services() function, it's possible to request an initialized object. We've learned through OAI Service and Deliver that this extra level of abstraction is actually unnecessary. Moreover, it adds complexity making it harder to read / debug code.

This epic intends to remove the Services() code and bring the codebase more in line with how services are initialized in OAI Service and Deliver.

Success criteria

Implementation suggestion

Before moving the repositories from Services(), the instantiation of both repository and UGentLDAP objects needs to be put in line with how this happens in OAI Service and Deliver. This requires refactoring their respective constructors first.

Automatic testing scenario

n/a

Additional information