Skip to content

Conversation

@kkthxbye-code
Copy link
Contributor

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.

@kkthxbye-code kkthxbye-code force-pushed the save-job-results branch 2 times, most recently from 8f25c05 to e459805 Compare March 25, 2022 20:41
@kkthxbye-code kkthxbye-code changed the base branch from develop to feature March 26, 2022 06:50
@kkthxbye-code kkthxbye-code changed the base branch from feature to develop March 26, 2022 06:53
@kkthxbye-code
Copy link
Contributor Author

Is it enough to just change the base branch on the PR via. the github ui?

@kkthxbye-code kkthxbye-code changed the base branch from develop to feature March 28, 2022 09:13
@jeremystretch
Copy link
Member

Is it enough to just change the base branch on the PR via. the github ui?

Yep that should work.

@kkthxbye-code
Copy link
Contributor Author

Should be good to go now then I guess.

@jeremystretch jeremystretch deleted the branch netbox-community:develop April 6, 2022 18:18
@jeremystretch jeremystretch reopened this Apr 6, 2022
@jeremystretch jeremystretch changed the base branch from feature to develop April 8, 2022 19:33
@jeremystretch jeremystretch merged commit 68b8cca into netbox-community:develop Apr 12, 2022
@jeremystretch
Copy link
Member

Thanks for all your work on this @kkthxbye-code!

@kkthxbye-code kkthxbye-code deleted the save-job-results branch May 9, 2022 16:36
wmfgerrit pushed a commit to wikimedia/operations-software-netbox-extras that referenced this pull request Jun 23, 2022
This CR updates the job so that it first deletes all previous versions
of this report before running.  The code is based on the PR that added
the JOBRESULT_RETENTION config item[1]

[1]netbox-community/netbox#8957

Bug: T311048
Change-Id: I8895a851592036fe34d1b24e42953510cbc754e6
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retain old JobResults

2 participants