zskarte / zskarte-client

Zivilschutz-Karte allows to draw situation maps for disaster management
https://www.zskarte.ch/
MIT License
13 stars 8 forks source link

Log is not consistency #425

Open therapac opened 4 months ago

therapac commented 4 months ago

When a symbol is deleted, the entry in the log is removed. To my understanding, the creation and deletion of symbols should be logged and NEVER removed from the log.

swerder commented 4 months ago

The question for me is, how to separate:

Perhaps for the 2nd reason of deletion it should not be deleted but instead hidden by corresponding option on the symbol.

But having information about when the hidding had happen, or also when the object is updated could be relevant. As I see in the code currently the "log" only show all current available elements and there creation date, there is not "logging" of changes available.

therapac commented 4 months ago

I believe that everything that is created and deleted must be displayed in the log. It doesn't matter whether it is a deletion due to an error or because the event no longer exists. This log serves as a means of control and traceability. Perhaps a recovery function can be integrated for the deleted items later on.