Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jan 2020 17:55:47 +0000 (UTC)
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r521755 - in head/net-mgmt/netbox: . files
Message-ID:  <202001011755.001HtlsO076729@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kai
Date: Wed Jan  1 17:55:47 2020
New Revision: 521755
URL: https://svnweb.freebsd.org/changeset/ports/521755

Log:
  net-mgmt/netbox: Update to 2.6.9
  
  * Remove two backported patches that are no longer required. [1]
  * Backport a patch from upstream that fixes a regression when accessing the
    API documentation.
  * Update the WWW field.
  
  Changelog:
  
  Enhancements:
  * Include direct link to rack elevations on site view
  * Move virtual machine results near devices in global search
  * Added copy button for API tokens
  
  Bug Fixes:
  * Prevent the deletion of a virtual chassis when a cross-member LAG
    is present
  * Respect custom field default values when creating objects via the REST API
  * Fix exception on password change page for local users [1]
  * Fix unable to assign IP to interface [1]
  
  MFH:		2020Q1

Added:
  head/net-mgmt/netbox/files/patch-netbox_extras_api_customfields.py   (contents, props changed)
Deleted:
  head/net-mgmt/netbox/files/patch-netbox_ipam_tables.py
  head/net-mgmt/netbox/files/patch-netbox_users_views.py
Modified:
  head/net-mgmt/netbox/Makefile
  head/net-mgmt/netbox/distinfo
  head/net-mgmt/netbox/pkg-descr   (contents, props changed)

Modified: head/net-mgmt/netbox/Makefile
==============================================================================
--- head/net-mgmt/netbox/Makefile	Wed Jan  1 17:51:00 2020	(r521754)
+++ head/net-mgmt/netbox/Makefile	Wed Jan  1 17:55:47 2020	(r521755)
@@ -2,8 +2,7 @@
 
 PORTNAME=	netbox
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.6.8
-PORTREVISION=	1
+DISTVERSION=	2.6.9
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	kai@FreeBSD.org

Modified: head/net-mgmt/netbox/distinfo
==============================================================================
--- head/net-mgmt/netbox/distinfo	Wed Jan  1 17:51:00 2020	(r521754)
+++ head/net-mgmt/netbox/distinfo	Wed Jan  1 17:55:47 2020	(r521755)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1575996489
-SHA256 (netbox-community-netbox-v2.6.8_GH0.tar.gz) = fb146bdb0369e59034f24b1523ec5025575b3fb9ad473896fd43fc9faffdc9b0
-SIZE (netbox-community-netbox-v2.6.8_GH0.tar.gz) = 2416523
+TIMESTAMP = 1576569679
+SHA256 (netbox-community-netbox-v2.6.9_GH0.tar.gz) = 82b993a4002ad68f0d572591f81958aa88a37244c9d76646c01c210fdd57bdb9
+SIZE (netbox-community-netbox-v2.6.9_GH0.tar.gz) = 2417598

Added: head/net-mgmt/netbox/files/patch-netbox_extras_api_customfields.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netbox/files/patch-netbox_extras_api_customfields.py	Wed Jan  1 17:55:47 2020	(r521755)
@@ -0,0 +1,18 @@
+Fix AttributeError exception in API docs when accessing api/docs
+
+Obtained from:
+
+https://github.com/netbox-community/netbox/commit/55b503da5bdf2a95e903fb657ade195ff89cae91
+
+--- netbox/extras/api/customfields.py.orig	2019-12-16 21:32:00 UTC
++++ netbox/extras/api/customfields.py
+@@ -124,6 +124,9 @@ class CustomFieldModelSerializer(ValidatedModelSeriali
+ 
+         else:
+ 
++            if not hasattr(self, 'initial_data'):
++                self.initial_data = {}
++
+             # Populate default values
+             if fields and 'custom_fields' not in self.initial_data:
+                 self.initial_data['custom_fields'] = {}

Modified: head/net-mgmt/netbox/pkg-descr
==============================================================================
--- head/net-mgmt/netbox/pkg-descr	Wed Jan  1 17:51:00 2020	(r521754)
+++ head/net-mgmt/netbox/pkg-descr	Wed Jan  1 17:55:47 2020	(r521755)
@@ -12,4 +12,4 @@ management:
 - Data circuits - Long-haul communications circuits and providers
 - Secrets - Encrypted storage of sensitive credentials
 
-WWW: https://github.com/digitalocean/netbox
+WWW: https://github.com/netbox-community/netbox



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001011755.001HtlsO076729>