git: 5b7f4e1b29d3 - 2023Q4 - net-mgmt/netbox: Update to 3.6.8
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Dec 2023 16:38:54 UTC
The branch 2023Q4 has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=5b7f4e1b29d3bd7985da290484aac19ab255f64d commit 5b7f4e1b29d3bd7985da290484aac19ab255f64d Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2023-12-28 16:34:20 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-12-28 16:38:30 +0000 net-mgmt/netbox: Update to 3.6.8 * Prune specific update instructions for releases older than 3.2 while I'm here. Changelog: Enhancements: * List parent prefixes under IP range view * Print new NetBox version when running upgrade script * Add the available_at_site filter for VLANs * Match against description field when searching for devices Bug Fixes: * Correct display of error message when attempting invalid VLAN site & group assignment * Fix custom validation for many-to-many fields * Fix filtering custom multi-choice fields by null * Correct calculation of absolute lengths for zero-length cables * Update status of remote data source when syncing fails via syncdatasource management command * Fix cloning of objects which have a multi-choice custom field * Ensure reservations tab is always displayed under rack view * Device/VM change record should accurately reflect when primary/OOB IP is deleted * Fix association of job results when executing scripts via runscript management command * Do not escape exclamation marks in custom link URLs * Fix display of the tags column under VDC table * Fix display of current configuration parameters in UI https://github.com/netbox-community/netbox/releases/tag/v3.6.8 MFH: 2023Q4 (cherry picked from commit 426da115bce9dcbc7945289c17ded11aa77934d2) --- net-mgmt/netbox/Makefile | 4 +- net-mgmt/netbox/distinfo | 6 +- net-mgmt/netbox/files/pkg-message.in | 111 ----------------------------------- net-mgmt/netbox/pkg-plist | 2 + 4 files changed, 7 insertions(+), 116 deletions(-) diff --git a/net-mgmt/netbox/Makefile b/net-mgmt/netbox/Makefile index 27493a1b8293..707fb4a76c4e 100644 --- a/net-mgmt/netbox/Makefile +++ b/net-mgmt/netbox/Makefile @@ -1,6 +1,6 @@ PORTNAME= netbox DISTVERSIONPREFIX= v -DISTVERSION= 3.6.7 +DISTVERSION= 3.6.8 CATEGORIES= net-mgmt python MAINTAINER= kai@FreeBSD.org @@ -32,7 +32,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=4.2.6<4.3:www/py-django42@${PY_FLA ${PYTHON_PKGNAMEPREFIX}dj42-django-prometheus>=2.3.1<2.4:www/py-dj42-django-prometheus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dj42-django-redis>=5.4.0<6:www/py-dj42-django-redis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dj42-django-rich>=1.8.0<2:www/py-dj42-django-rich@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}dj42-django-rq>=2.9.0<2.10:devel/py-dj42-django-rq@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dj42-django-rq>=2.9.0<2.11:devel/py-dj42-django-rq@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dj42-django-tables2>=2.7<2.8:www/py-dj42-django-tables2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dj42-django-taggit>=4.0.0<5:www/py-dj42-django-taggit@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dj42-django-timezone-field>=6.1.0<7:www/py-dj42-django-timezone-field@${PY_FLAVOR} \ diff --git a/net-mgmt/netbox/distinfo b/net-mgmt/netbox/distinfo index ae86217c4af3..5f650fb7a1b4 100644 --- a/net-mgmt/netbox/distinfo +++ b/net-mgmt/netbox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1702731469 -SHA256 (netbox-community-netbox-v3.6.7_GH0.tar.gz) = ebb278511928a820f0a2cdd80d6e86d0d83111134c40eadc04ee1ad150ef93f3 -SIZE (netbox-community-netbox-v3.6.7_GH0.tar.gz) = 7283903 +TIMESTAMP = 1703715047 +SHA256 (netbox-community-netbox-v3.6.8_GH0.tar.gz) = c1b064ffe4539f08cb01aab95e85e28d17d309f93e45cc96302c13fa3c0ce27a +SIZE (netbox-community-netbox-v3.6.8_GH0.tar.gz) = 7286549 diff --git a/net-mgmt/netbox/files/pkg-message.in b/net-mgmt/netbox/files/pkg-message.in index 21ef608f2c4e..e5ac681ad52b 100644 --- a/net-mgmt/netbox/files/pkg-message.in +++ b/net-mgmt/netbox/files/pkg-message.in @@ -34,117 +34,6 @@ The following steps are required to finish the upgrade: 2. Restart WSGI/httpd environment (supervisord/apache/nginx/etc.) EOD } -{ type: upgrade - maximum_version: 3.0.4 - message: <<EOD -/!\ WARNING /!\ - -The NetBox 3.0 release contains major changes, so at least items 1.), 2.) and -3.) must be checked before proceeding with the upgrade! - -/!\ WARNING /!\ - -1. Please ensure that your local installation of net-mgmt/netbox is at - the 2.11 release before attemping to upgrade to NetBox 3.0 or later. - -2. Please also note that the previously deprecated secrets functionality has - been removed with NetBox 3.0. This means, all of the secrets still remain - in the database once upgraded, only the secrets functionality on the part of - NetBox is no longer given. - - In order to continue to be able to access the stored secrets as usual (and - then possibly migrate them to another solution, e.g. security/vault), please - install the security/py-netbox-secretstore port once NetBox has been - upgraded to 3.x and follow its installation instructions how to enable the - plugin. - -3. If plugins are used, they should be temporarily deactivated to avoid - disruptions during the upgrade process. - -4. Following items should be checked as well: - - * The default CSV export format for all objects now includes all available - data from the object list. Additionally, the CSV headers now use human- - friendly titles rather than raw field names. If backward compatibility - with the old format is desired, export templates can be written to - reproduce it. - - * The "invalidate" management command (which clears cached database queries) - is no longer needed and has been removed. - - * Support for queryset caching configuration (caching_config) has been - removed from the plugins API. - - * The cacheops_* metrics have been removed from the Prometheus exporter. - - * The "display_field" keyword argument has been removed from custom script - "ObjectVar" and "MultiObjectVar" fields. These widgets will use the - display value provided by the REST API. - - * The deprecated "display_name" field has been removed from all REST API - serializers. (API clients should reference the display field instead.) - - * The redundant REST API endpoints for console, power, and interface - connections have been removed. The same data can be retrieved by querying - the respective model endpoints with the ?connected=True filter applied. - - * Several changes to the REST API were made as well. Please check the - changelogs for further details. - -5. There's a new sample script for NetBox housekeeping tasks, which should run - once a day. If the EXAMPLES option is enabled (which is the default) it can - be found in the following directory: - - %%EXAMPLESDIR%%/850.netbox-housekeeping.sample - - Please run following commands to enable the new script: - - # cp %%EXAMPLESDIR%%/850.netbox-housekeeping.sample %%LOCALBASE%%/etc/periodic/daily/850.netbox-housekeeping - # chmod 555 %%LOCALBASE%%/etc/periodic/daily/850.netbox-housekeeping - # sysrc -f /etc/periodic.conf daily_netbox_housekeeping_enable="YES" -EOD -} -{ type: upgrade - maximum_version: 3.0.12_1 - message: <<EOD -Please run the following command to make the online help available that was -previously missing: - -# cd %%DATADIR%% -# python%%PYTHON_VER%% manage.py collectstatic --no-input -EOD -} -{ type: upgrade - maximum_version: 3.1.6 - message: <<EOD - -1. Please make sure that the PostgreSQL server for the NetBox instance is - running version 10 or higher. This is because PostgreSQL 9.6 is End-of-Life - since November 2021 and NetBox 3.1 makes use of the "macaddr8" field which - was introduced with PostgreSQL 10. - - -2. Following items should be checked as well: - - * The tenant and tenant_id filters for the Cable model now filter on the - tenant assigned directly to each cable, rather than on the parent object - of either termination. - - * The cable_peer and cable_peer_type attributes of cable termination models - have been renamed to link_peer and link_peer_type, respectively, to - accommodate wireless links between interfaces. - - * Exported webhooks and custom fields now reference associated content - types by raw string value (e.g. "dcim.site") rather than by - human-friendly name. - - * The 128GFC interface type has been corrected from 128gfc-sfp28 to - 128gfc-qsfp28. - - * Several changes to the REST API were made as well. Please check the - changelogs for further details. -EOD -} { type: upgrade maximum_version: 3.2.4 message: <<EOD diff --git a/net-mgmt/netbox/pkg-plist b/net-mgmt/netbox/pkg-plist index ff904c65bef4..af5794a78bb3 100644 --- a/net-mgmt/netbox/pkg-plist +++ b/net-mgmt/netbox/pkg-plist @@ -197,6 +197,7 @@ %%DATADIR%%/dcim/migrations/0179_interfacetemplate_rf_role.py %%DATADIR%%/dcim/migrations/0180_powerfeed_tenant.py %%DATADIR%%/dcim/migrations/0181_rename_device_role_device_role.py +%%DATADIR%%/dcim/migrations/0182_zero_length_cable_fix.py %%DATADIR%%/dcim/migrations/__init__.py %%DATADIR%%/dcim/models/__init__.py %%DATADIR%%/dcim/models/cables.py @@ -617,6 +618,7 @@ %%DATADIR%%/extras/tests/test_api.py %%DATADIR%%/extras/tests/test_changelog.py %%DATADIR%%/extras/tests/test_conditions.py +%%DATADIR%%/extras/tests/test_custom_validation.py %%DATADIR%%/extras/tests/test_customfields.py %%DATADIR%%/extras/tests/test_customvalidator.py %%DATADIR%%/extras/tests/test_filtersets.py