Sergi Delgado Segura
5bf8dbd9de
Improves load_watcher_appointments and adds methods for batch updating the db
...
Dumping data into the db became a bottleneck mainly due to not using batch aggregation when dealing with huge amounts of info.
2020-01-31 12:52:12 +01:00
Sergi Delgado Segura
6884db9f58
Updates logger codebase-wise to match the Logger updates
...
Logger instances now specify the logger prefix so the logger can be properly loaded, fixing the issues with the cli file logger
2020-01-23 18:16:25 +01:00
Sergi Delgado Segura
fd6c85ced2
Moves logs to be consistent with the rest of db logs. Adds missing docs and adds an exception if the db is alredy being used
2020-01-22 15:21:55 +01:00
Sergi Delgado Segura
a95e301713
Renames some DBManager methods and adds new functionality
...
- Refactors store_update_locator_map name to create_append_locator_map, which is a better fit.
- Adds update_locator_map method to update maps by removing some uuids (store_update_locator_map was not covering this, what was misleading).
- Adds missing docs.
2020-01-21 19:09:39 +01:00
Sergi Delgado Segura
f6af67be87
Refactors db_manager to have a new entry type for the triggered appointmnets. Adds methods to create, load a and remove this new entries
2020-01-09 18:14:19 +01:00
Sergi Delgado Segura
77b191dde2
Moves Logger to common
2019-12-16 14:15:30 +01:00
Sergi Delgado Segura
e2ca226b11
Last formatting details troughout the codebase
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
d881706eb3
Refactors the codebase to match the new naming from 793d563b8c053136dd5f936b0ef0cd88af215b06 and 3046eae38ee3f34857c96e6b9d43e645f7d2de2d
2019-12-13 18:13:29 +01:00
Sergi Delgado Segura
c17c3af32a
DBManager docstrings
2019-12-10 20:10:22 +01:00
Sergi Delgado Segura
add5d262b6
Includes Appointment docstrings and redesigns triggered flag
...
The triggered flag is only used to interact with the DB but it was kept as an Appointment attribute. Now it is only used when exporting to json, which is used to store data into the db.
2019-12-09 14:36:16 +01:00
Sergi Delgado Segura
3a1bf0cc8a
Updates API to use DB on get methods
2019-11-14 17:38:26 +00:00
Sergi Delgado Segura
20f296c9d4
Reformats code to match code guidelines
2019-11-07 15:47:35 +00:00
Sergi Delgado Segura
99bda73eff
Applies fixes after PR review
2019-11-07 15:07:58 +00:00
Sergi Delgado Segura
810f6ec525
Adds methods to store the locator map in the db
...
In order to use the db for system monitoring we need a way of mapping the locator the the uuids the appointments/jobs are identified in the db. First steps towards #15
2019-11-06 17:08:05 +00:00
Sergi Delgado Segura
4bdadc1836
Loads only non-triggered appointments for the watcher
2019-11-05 19:13:16 +00:00
Sergi Delgado Segura
bc7c7dc26f
Fixes based on DBManager unit tests
2019-10-29 14:52:27 -07:00
Sergi Delgado Segura
db87fab9ee
Fixes prefix encoding
2019-10-28 14:38:56 -07:00
Sergi Delgado Segura
594cc6ca22
Fixes logging actor
2019-10-28 14:38:56 -07:00
Sergi Delgado Segura
a0538739d2
Starts data persistence integration
...
The difference between master and the old data-persistence branch was huge, seems more effective to manually cherry pick the changes and integrate them
2019-10-28 14:38:50 -07:00