amidaware / tacticalrmm

A remote monitoring & management tool, built with Django, Vue and Go.
https://docs.tacticalrmm.com
Other
3.25k stars 447 forks source link

Deleted Automation policy check items don't clean up checkresult model #2069

Open silversword411 opened 3 days ago

silversword411 commented 3 days ago

Server Info (please complete the following information):

Describe the bug When you delete a check in automation manager it doesn't cleanup all the data in the checkresult model

To Reproduce Steps to reproduce the behavior:

  1. Create automation > check > script item. Get some history.
  2. Delete the check from automation manager.
  3. recreate the item in automation manager
  4. See many checks of the same item

Expected behavior Deleted automation manager check should clean up results

Screenshots

2024-11-14_132715 - trmm automation policy results

Here's a report with the extra checks listed

All Fields - Task Resultv9 - showchecknames test-export.json

P6g9YHK6 commented 2 days ago

probably the same issue as https://github.com/amidaware/tacticalrmm/issues/1928