Open DrMurx opened 4 years ago
Related/affected: #539
Related/affected: #539
Related, but luckily almost not affected. The API for the MAD config already uses some kind of dedicated unified data provider.
These changes have been merged into #539, f620b6c
@Expl0dingBanana Only the first patch ;) more to come.
@DrMurx Do you still need this enhancement open?
@Expl0dingBanana Absolutely. I'll go forward with that as soon as my spare time allows.
The current database access is a historically grown monster structure. It lacks separation of concerns, is a mix of data provider, mapper/converter and other parts of the business logic that don't belong here.
Dropping monocle support opened the door for some refactoring. This would include the following steps:
dbWrapperBase
andrmWrapper
into a single, humongousDbWrapper
to ease up the further steps.DbWrapper
into smaller "data providers" for the different parts of the application (MITM, Route planning, Webhook, Map/Madmin).This is a meta issue to track and discuss the progress.