mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Fixes #12109: Fix migration error when replicating more than 100 job results
This commit is contained in:
parent
f18f6e2856
commit
cdad50e051
@ -1,6 +1,6 @@
|
|||||||
# NetBox v3.5
|
# NetBox v3.5
|
||||||
|
|
||||||
## v3.5-beta1 (2023-03-30)
|
## v3.5.0 (FUTURE)
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
@ -68,6 +68,10 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`.
|
|||||||
* [#12068](https://github.com/netbox-community/netbox/issues/12068) - Enable generic foreign key relationships from jobs to NetBox objects
|
* [#12068](https://github.com/netbox-community/netbox/issues/12068) - Enable generic foreign key relationships from jobs to NetBox objects
|
||||||
* [#12085](https://github.com/netbox-community/netbox/issues/12085) - Add a file source view for reports
|
* [#12085](https://github.com/netbox-community/netbox/issues/12085) - Add a file source view for reports
|
||||||
|
|
||||||
|
### Bug Fixes (From Beta1)
|
||||||
|
|
||||||
|
* [#12109](https://github.com/netbox-community/netbox/issues/12109) - Fix migration error when replicating more than 100 job results
|
||||||
|
|
||||||
### Other Changes
|
### Other Changes
|
||||||
|
|
||||||
* [#10604](https://github.com/netbox-community/netbox/issues/10604) - Remove unused `extra_tabs` block from `object.html` generic template
|
* [#10604](https://github.com/netbox-community/netbox/issues/10604) - Remove unused `extra_tabs` block from `object.html` generic template
|
||||||
|
@ -27,6 +27,7 @@ def replicate_jobresults(apps, schema_editor):
|
|||||||
)
|
)
|
||||||
if len(jobs) == 100:
|
if len(jobs) == 100:
|
||||||
Job.objects.bulk_create(jobs)
|
Job.objects.bulk_create(jobs)
|
||||||
|
jobs = []
|
||||||
if jobs:
|
if jobs:
|
||||||
Job.objects.bulk_create(jobs)
|
Job.objects.bulk_create(jobs)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ from netbox.constants import RQ_QUEUE_DEFAULT, RQ_QUEUE_HIGH, RQ_QUEUE_LOW
|
|||||||
# Environment setup
|
# Environment setup
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION = '3.5-beta1'
|
VERSION = '3.5.0-dev'
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
HOSTNAME = platform.node()
|
HOSTNAME = platform.node()
|
||||||
|
Loading…
Reference in New Issue
Block a user