[PR #2239] [MERGED] scheduled reports init #1909

Closed
opened 2026-03-02 02:25:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amidaware/tacticalrmm/pull/2239
Author: @sadnub
Created: 6/5/2025
Status: Merged
Merged: 10/10/2025
Merged by: @wh1te909

Base: developHead: feat-scheduledreports


📝 Commits (10+)

  • 6c9bcaa scheduled reports init
  • b64e0f7 set report history prune days to 0, add daily schedulers options
  • ebf302d add run report schedule option. refactor report running to avoid code duplication
  • b09274e set last_run when report schedule is ran. Implement locked_at when repot is run from scheduled task
  • ea0bfc3 code formatting
  • 45f4f9c fix email sending
  • 9fcf0ac fix db, merge migrations into one and code formatting
  • fc14dfe fix scheduler functions
  • c691bc6 fix schedule functions
  • 2a24b70 fix schedule reports erroring out

📊 Changes

30 files changed (+2005 additions, -158 deletions)

View changed files

api/tacticalrmm/accounts/migrations/0039_role_can_manage_schedules_role_can_view_schedules.py (+23 -0)
📝 api/tacticalrmm/accounts/models.py (+2 -0)
📝 api/tacticalrmm/core/admin.py (+2 -1)
api/tacticalrmm/core/migrations/0050_schedule_coresettings_report_history_prune_days_and_more.py (+45 -0)
📝 api/tacticalrmm/core/models.py (+98 -2)
📝 api/tacticalrmm/core/permissions.py (+8 -0)
📝 api/tacticalrmm/core/serializers.py (+72 -1)
📝 api/tacticalrmm/core/tasks.py (+4 -0)
api/tacticalrmm/core/tests_pytest/test_scheduler.py (+158 -0)
📝 api/tacticalrmm/core/urls.py (+2 -0)
📝 api/tacticalrmm/core/views.py (+51 -1)
📝 api/tacticalrmm/ee/reporting/admin.py (+10 -1)
📝 api/tacticalrmm/ee/reporting/constants.py (+26 -0)
📝 api/tacticalrmm/ee/reporting/management/commands/generate_json_schemas.py (+13 -1)
api/tacticalrmm/ee/reporting/migrations/0004_reportdataquery_created_by_and_more.py (+119 -0)
📝 api/tacticalrmm/ee/reporting/models.py (+74 -4)
api/tacticalrmm/ee/reporting/serializers.py (+24 -0)
api/tacticalrmm/ee/reporting/tasks.py (+141 -0)
📝 api/tacticalrmm/ee/reporting/tests/test_data_queries.py (+182 -17)
📝 api/tacticalrmm/ee/reporting/tests/test_import_export_template_views.py (+0 -1)

...and 10 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amidaware/tacticalrmm/pull/2239 **Author:** [@sadnub](https://github.com/sadnub) **Created:** 6/5/2025 **Status:** ✅ Merged **Merged:** 10/10/2025 **Merged by:** [@wh1te909](https://github.com/wh1te909) **Base:** `develop` ← **Head:** `feat-scheduledreports` --- ### 📝 Commits (10+) - [`6c9bcaa`](https://github.com/amidaware/tacticalrmm/commit/6c9bcaac3ed4b7c2150d020ef1680d279b453c10) scheduled reports init - [`b64e0f7`](https://github.com/amidaware/tacticalrmm/commit/b64e0f71d7f5a7f25c3d079fa4e73ec0a4171ec1) set report history prune days to 0, add daily schedulers options - [`ebf302d`](https://github.com/amidaware/tacticalrmm/commit/ebf302d1f3c5a14841ecc90540c4104513bfc887) add run report schedule option. refactor report running to avoid code duplication - [`b09274e`](https://github.com/amidaware/tacticalrmm/commit/b09274ef9acbbb36931f9342ce601651c89428bd) set last_run when report schedule is ran. Implement locked_at when repot is run from scheduled task - [`ea0bfc3`](https://github.com/amidaware/tacticalrmm/commit/ea0bfc3f7849762460e606aaeea7b050455d1ec0) code formatting - [`45f4f9c`](https://github.com/amidaware/tacticalrmm/commit/45f4f9c45c84e816e9b939735f186fb761f8604c) fix email sending - [`9fcf0ac`](https://github.com/amidaware/tacticalrmm/commit/9fcf0acf9e376dcf1140eeb846eecebbc4ed3823) fix db, merge migrations into one and code formatting - [`fc14dfe`](https://github.com/amidaware/tacticalrmm/commit/fc14dfe75d224633d6b54c055f0c6157bcca0c21) fix scheduler functions - [`c691bc6`](https://github.com/amidaware/tacticalrmm/commit/c691bc65e1ee04bf539fef1124dabe746f952c97) fix schedule functions - [`2a24b70`](https://github.com/amidaware/tacticalrmm/commit/2a24b70a5e523b4af7b480c26b995498fc2bd180) fix schedule reports erroring out ### 📊 Changes **30 files changed** (+2005 additions, -158 deletions) <details> <summary>View changed files</summary> ➕ `api/tacticalrmm/accounts/migrations/0039_role_can_manage_schedules_role_can_view_schedules.py` (+23 -0) 📝 `api/tacticalrmm/accounts/models.py` (+2 -0) 📝 `api/tacticalrmm/core/admin.py` (+2 -1) ➕ `api/tacticalrmm/core/migrations/0050_schedule_coresettings_report_history_prune_days_and_more.py` (+45 -0) 📝 `api/tacticalrmm/core/models.py` (+98 -2) 📝 `api/tacticalrmm/core/permissions.py` (+8 -0) 📝 `api/tacticalrmm/core/serializers.py` (+72 -1) 📝 `api/tacticalrmm/core/tasks.py` (+4 -0) ➕ `api/tacticalrmm/core/tests_pytest/test_scheduler.py` (+158 -0) 📝 `api/tacticalrmm/core/urls.py` (+2 -0) 📝 `api/tacticalrmm/core/views.py` (+51 -1) 📝 `api/tacticalrmm/ee/reporting/admin.py` (+10 -1) 📝 `api/tacticalrmm/ee/reporting/constants.py` (+26 -0) 📝 `api/tacticalrmm/ee/reporting/management/commands/generate_json_schemas.py` (+13 -1) ➕ `api/tacticalrmm/ee/reporting/migrations/0004_reportdataquery_created_by_and_more.py` (+119 -0) 📝 `api/tacticalrmm/ee/reporting/models.py` (+74 -4) ➕ `api/tacticalrmm/ee/reporting/serializers.py` (+24 -0) ➕ `api/tacticalrmm/ee/reporting/tasks.py` (+141 -0) 📝 `api/tacticalrmm/ee/reporting/tests/test_data_queries.py` (+182 -17) 📝 `api/tacticalrmm/ee/reporting/tests/test_import_export_template_views.py` (+0 -1) _...and 10 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 02:25:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#1909
No description provided.