[PR #8957] [MERGED] Fix #8956: Save old JobResults #13413

Closed
opened 2025-12-29 22:27:16 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8957
Author: @kkthxbye-code
Created: 3/24/2022
Status: Merged
Merged: 4/12/2022
Merged by: @jeremystretch

Base: developHead: save-job-results


📝 Commits (3)

  • f13a00b Save old JobResults
  • aa2ec3b Add dynamic config JOBRESULT_RETENTION
  • c216405 Change default JOBRESULT_RETENTION from 0 to 90

📊 Changes

11 files changed (+55 additions, -41 deletions)

View changed files

📝 docs/administration/housekeeping.md (+1 -0)
📝 docs/configuration/dynamic-settings.md (+12 -0)
📝 netbox/extras/admin.py (+1 -1)
📝 netbox/extras/api/views.py (+2 -2)
📝 netbox/extras/management/commands/housekeeping.py (+28 -0)
📝 netbox/extras/management/commands/runscript.py (+0 -7)
📝 netbox/extras/reports.py (+0 -9)
📝 netbox/extras/scripts.py (+1 -10)
📝 netbox/extras/views.py (+2 -2)
📝 netbox/netbox/config/parameters.py (+7 -0)
📝 netbox/netbox/views/__init__.py (+1 -10)

📄 Description

Fixes: #8956

Removes all logic that deletes old JobResults. Also tweaks the view querysets to only return the newest terminal result.

Lastly removes unused JobResults in the homepage view, which seems like a leftover from the v2 -> v3 split.


🔄 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/netbox-community/netbox/pull/8957 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 3/24/2022 **Status:** ✅ Merged **Merged:** 4/12/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `save-job-results` --- ### 📝 Commits (3) - [`f13a00b`](https://github.com/netbox-community/netbox/commit/f13a00b2dd33bffc3048c861b494096df457f212) Save old JobResults - [`aa2ec3b`](https://github.com/netbox-community/netbox/commit/aa2ec3b9c9d91e1b03429a508249fe516e3e4a84) Add dynamic config JOBRESULT_RETENTION - [`c216405`](https://github.com/netbox-community/netbox/commit/c216405a8109c7e9769782cf7732b11d99903102) Change default JOBRESULT_RETENTION from 0 to 90 ### 📊 Changes **11 files changed** (+55 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `docs/administration/housekeeping.md` (+1 -0) 📝 `docs/configuration/dynamic-settings.md` (+12 -0) 📝 `netbox/extras/admin.py` (+1 -1) 📝 `netbox/extras/api/views.py` (+2 -2) 📝 `netbox/extras/management/commands/housekeeping.py` (+28 -0) 📝 `netbox/extras/management/commands/runscript.py` (+0 -7) 📝 `netbox/extras/reports.py` (+0 -9) 📝 `netbox/extras/scripts.py` (+1 -10) 📝 `netbox/extras/views.py` (+2 -2) 📝 `netbox/netbox/config/parameters.py` (+7 -0) 📝 `netbox/netbox/views/__init__.py` (+1 -10) </details> ### 📄 Description ### Fixes: #8956 Removes all logic that deletes old JobResults. Also tweaks the view querysets to only return the newest terminal result. Lastly removes unused JobResults in the homepage view, which seems like a leftover from the v2 -> v3 split. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:27:16 +01:00
adam closed this issue 2025-12-29 22:27:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13413