v4.0-beta1 - 2024-04-03 #15601
Replies: 11 comments 16 replies
-
Having imported a v3.7.4 pg_dump and trying to upgrade to v4-beta, there are some problems. Firstly, migrations fail if you have any existing scripts but they are invalid or not compatible with Netbox 4. For example:
(Note: that's a script not a report, so it shouldn't need to be changed anyway) You can
Then you do Next error I got was a missing sequence:
The actual objects I have in the original Netbox database are:
I'm guessing it really wants to refer to "extras_customfield_obj_type_id_seq". I could manually rename that sequence, but I decided to leave it there. EDIT: actually I can see from logs[^1] that it's trying to do a rename: possibly that rename took place as part of one of the earlier failed migrations. Maybe it will work if I restore and start from scratch.
(Aside: the migration gives a rename target of "extras_customfield_object_types_id_seq", and what I actually have is "extras_customfield_obj_type_id_seq") [^1] I have in my configuration.py:
EDIT 2: nope, after dropping and restoring the database, and starting
(Aside: this is postgres 12 I'm running with) |
Beta Was this translation helpful? Give feedback.
-
Does this mean that there is a specific upgrade path to follow, for old NetBox users? |
Beta Was this translation helpful? Give feedback.
-
The link does not work |
Beta Was this translation helpful? Give feedback.
-
What's the configuration setting edit that is needed to fix the datetime format back to earlier format?
In earlier version:
|
Beta Was this translation helpful? Give feedback.
-
Is this beta1 going to be made available at https://beta-demo.netbox.dev/ ? |
Beta Was this translation helpful? Give feedback.
-
Nice that now the footer links and NetBox version number are visible also on iPad/Safari, previously it was a pain to remember what is the link again to see the swagger UI... Thanks! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
With the new UI there is no more graphical highlighting of/differentiation between interfaces that are unconnected, connected, virtual, disabled, etc. Is this final? |
Beta Was this translation helpful? Give feedback.
-
What does this mean? |
Beta Was this translation helpful? Give feedback.
-
I like the new UI, but find the new dark theme hard to read. In general, its okay but blue links on blue background are harder to distinguish as blue on black as before. The WCAG accessibility standard therefore requires a bare minimum contrast ratio of 3:1, the current colors have 2.92:1. Can we address this in a feature request before release? |
Beta Was this translation helpful? Give feedback.
-
I was loosely testing the Strawberry Graphql endpoint and ran across an error. I'm not sure if this is a bug or if my query needs revision.
Results:
The query is successful with NetBox v3.7.0. |
Beta Was this translation helpful? Give feedback.
-
Warning
This is a beta release of NetBox intended for testing and evaluation. Do not use this software in production. Also be aware that no upgrade path is provided to future releases.
Tip
Plugin maintainers: Please see the dedicated plugin migration guide for a checklist of changes that may be needed to ensure compatibility with NetBox v4.0.
Breaking Changes
device_role
&device_role_id
filters for devices have been removed. (Userole
androle_id
instead.)device_role
field has been removed from the REST API serializer for devices. (Userole
instead.)parent
andparent_id
filters for locations now return only immediate children of the specified location. (Useancestor
andancestor_id
to return all descendants.)object_type
field on the CustomField model has been renamed torelated_object_type
.utilities.utils
module has been removed and its resources reorganized into separate modules organized by function.NullableCharField
class has been removed. (Use Django's stockCharField
class withnull=True
instead.)New Features
Complete UI Refresh (#12128)
The NetBox user interface has been completely refreshed and updated. This massive effort entailed:
Dynamic REST API Fields (#15087)
The REST API now supports specifying which fields to include in the response data. For example, the response to a request for
will include only the four specified fields in the representation of each site. Additionally, the underlying database queries effected by such requests have been optimized to omit fields which are not included in the response, resulting in a substantial performance improvement.
Strawberry GraphQL Engine (#9856)
The GraphQL engine has been changed from using Graphene-Django to Strawberry-Django. Changes include:
Advanced Form Rendering Functionality (#14739)
New resources have been introduced to enable advanced form rendering without a need for custom HTML templates. These include:
Legacy Admin UI Disabled (#12325)
The legacy admin user interface is now disabled by default, and the few remaining views it provided have been relocated to the primary UI. NetBox deployments which still depend on the legacy admin functionality for plugins can enable it by setting the
DJANGO_ADMIN_ENABLED
configuration parameter to true.Enhancements
htmx_talble
template tag to simplify the rendering of embedded tablesfacility
field to Location modeldescription
field in "brief" REST API serializationsnested
keyword argument allowing it to represent a related objectOther Changes
DJANGO_ADMIN_ENABLED
to True to enable it)extras.plugins
(nownetbox.plugins
)ActionsMixin
process_webhook()
fromextras.webhooks_worker
(nowextras.webhooks.send_webhook()
)BootstrapMixin
form mixin classready()
method of individual app configs, rather than relying on theclass_prepared
signaldevice_role
anddevice_role_id
filters for devicesNullableCharField
classpsycopg
librarydevice_role
attribute from Device model (this field was renamed torole
in v3.6)object_type
field on the CustomField model has been renamed torelated_object_type
to avoid confusion with itsobject_types
fieldutilities.utils
moduleThis discussion was created from the release v4.0-beta1 - 2024-04-03.
Beta Was this translation helpful? Give feedback.
All reactions