Conversation
…r deletion Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Documentation build overview
10 files changed ·
|
nhoening
left a comment
There was a problem hiding this comment.
Two larger comments:
- cleanup_sensor_references_in_assets() could be called from a more central place in data/services/sensors.oy, I believe we have a until function to delete sensors there, or not?
- we can assume that postgres is used, so some code can go.
ill check |
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
from my checks, no place solely handles the deletion of sensors in |
|
I see. I was thinking of services/generic_assets.py, where I refactored a bit a few months ago.
|
|
@joshuaunity I just noticed that I had written the same problem into an issue before: #2062 There I also proposed the new service method. And Felix suggested to ceate audit logs when removing the references - that makes some sense, too. |
…n for improved data integrity Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
…r improved traceability Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Following up on this, there is now:
|
Description
This PR implements a cleanup feature used to clean up sensor references on delete. Now, if a sensor is deleted, all its references in flex-config and sensors_to_show are deleted as well.
Look & Feel
None
How to test
Further Improvements
None
Related Items
This PR closes #2099
Sign-off