Per von Zweigbergk
218ac240e6
Removed extra newline
2023-09-09 15:02:25 +02:00
Per von Zweigbergk
8bd37d339e
Improve error message
2023-09-09 14:56:59 +02:00
Per von Zweigbergk
9f3c15201a
Fix bogus test_invalid_range_alphanumeric test
...
Input errors should throw exceptions, not return an empty list. Should
not significantly change external behaviour, in the old versions a "Field is
required" message was an end result of these cases.
2023-09-09 14:46:46 +02:00
Per von Zweigbergk
e485ed30c7
Rewrite parse_alphanumeric_range to fix #13722
2023-09-09 14:41:19 +02:00
Per von Zweigbergk
a8c6f10b06
Add test for #13722
2023-09-09 14:41:01 +02:00
Per von Zweigbergk
834d34a01c
Simplify expand_alphanumeric_pattern
...
The regex search of the pattern is unneccessary. Instead, we rely on the
new behaviour that terminates early if there are no patterns.
2023-09-09 14:21:59 +02:00
Per von Zweigbergk
d40a49e6e3
Refactor of expand_alphanumeric_pattern and tests
...
The new behaviour of expand_alphanumeric_pattern is to return the input
unmodified if there are no expansion patterns in it. Unit tests changed
to reflect this new behaviour. This is fine because the only place that
calls expand_alphanumeric_pattern was doing this check before anyway
(and that place has been changed in this commit), this aligns the unit
tests better with actual application behaviour, without changing
external behaviour at all.
2023-09-09 14:16:25 +02:00
Jeremy Stretch
a8a36c0a8f
PRVB
2023-09-06 14:26:19 -04:00
Jeremy Stretch
99ab054ea0
Merge pull request #13705 from netbox-community/develop
...
Release v3.6.1
2023-09-06 14:23:36 -04:00
Jeremy Stretch
90ab4b3c86
Release v3.6.1
2023-09-06 14:04:57 -04:00
Arthur Hanson
bb6b4d01c1
12553 prefix serializer to IPAddress ( #13592 )
...
* 12553 prefix serializer to IPAddress
* Introduce IPNetworkField to handle prefix serialization
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-06 10:49:40 -04:00
Daniel Sheppard
2d1457b94b
Fixes : #13682 - Fix custom field exceptions and validation ( #13685 )
...
* Fixes : #13682 - Fix custom field exceptions and validation
* Add tests
* Remove default setting for multi-select/multi-object and return slice of choices and annotate.
* Remove redundant default choice valiadtion; introduce values property on CustomFieldChoiceSet
* Refactor test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-06 10:47:18 -04:00
Arthur Hanson
9d851924c8
13674 fix ReportSerializer ( #13688 )
...
* 13674 fix ReportSerializer
* Remove test_methods attr from Report class
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-06 08:44:25 -04:00
Jeremy Stretch
9be5918c83
Fixes #13684 : Enable modying the configuration when maintenance mode is enabled
2023-09-05 14:09:38 -04:00
Jeremy Stretch
6db6616892
Changelog for #12870 , #13444 , #13596 , #13642 , #13657
2023-09-01 17:14:59 -04:00
Abhimanyu Saharan
004daca862
Adds rename button on the list page for device components ( #13564 )
...
* adds interface rename button on the list page #13444
* adds rename view on all device components #13564
* Condense component views to a single template
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-01 16:58:31 -04:00
Jeremy Stretch
559f65f6b2
Add #12906 to v3.6.0 changelog
2023-09-01 13:22:07 -04:00
Jeremy Stretch
c38884fa11
Add description & expires fields to token test
2023-09-01 12:33:02 -04:00
Abhimanyu Saharan
7848beedce
adds additional parameters for token provision api #12870
2023-09-01 12:33:02 -04:00
Jeremy Stretch
296166da95
Fixes #13656 : Correct decoding of BinaryField content for Django 4.2
2023-09-01 11:06:19 -04:00
Jeremy Stretch
679cc8fdda
Fixes #13596 : Always display "render config" tab for devices & VMs
2023-08-31 14:36:03 -04:00
Jeremy Stretch
0cdc26e013
Fixes #13642 : Move migration logic overrides from individual mgmt commands to core
2023-08-31 14:34:26 -04:00
Jeremy Stretch
2503568875
Changelog for #13619 , #13620 , #13622 , #13628 , #13632 , #13638
2023-08-31 12:23:59 -04:00
Jeremy Stretch
78966e12a9
Fixes #13620 : Show admin menu items only for staff users
2023-08-31 12:20:46 -04:00
Jeremy Stretch
f962fb3b53
Closes #13638 : Add optional staff_only attribute to MenuItem ( #13639 )
...
* Closes #13638 : Add optional staff_only attribute to MenuItem
* Add missing file
* Add release note
2023-08-31 11:23:44 -04:00
Jeremy Stretch
2544e2bf18
Fixes #13622 : Fix exception when viewing current config and no revisions have been created
2023-08-31 11:11:56 -04:00
Jeremy Stretch
06f2c6f867
Fixes #13632 : Avoid raising exception when checking if FHRP group IP address is primary
2023-08-31 11:09:49 -04:00
Abhimanyu Saharan
272d2c54d4
removes napalm references #13628
2023-08-31 09:54:35 -04:00
Jeremy Stretch
cb93abb0f4
Fixes #13626 : Correct filtering of recent activity list under user view
2023-08-31 08:19:17 -04:00
Jeremy Stretch
316d991b33
Fixes #13630 : Fix display of active status under user view
2023-08-31 08:16:11 -04:00
Jamie (Bear) Murphy
46f734eba2
fix error for is_oob_ip for non-device parents ( #13621 )
...
* fix error for is_oob_ip for non-device parents
* adjust oob_ip_id check to use hasattr
2023-08-31 07:57:14 -04:00
Jeremy Stretch
671a56100a
PRVB
2023-08-30 14:57:16 -04:00
Jeremy Stretch
dfcfbe240d
Merge pull request #13614 from netbox-community/develop
...
Release v3.6.0
2023-08-30 14:51:04 -04:00
Jeremy Stretch
b040fdcf2c
Release v3.6.0
2023-08-30 14:27:07 -04:00
Jeremy Stretch
8525f994c0
Fix invalid links
2023-08-30 14:21:04 -04:00
Jeremy Stretch
eb9a804914
#12591 : Add a dedicated view for the active config revision
2023-08-30 11:13:56 -04:00
Jeremy Stretch
210d7bb573
Display last_updated time only if defined
2023-08-30 11:13:02 -04:00
Jeremy Stretch
dc85476b9e
Changelog for #11478 , #13513 , #13599 , #13605
2023-08-30 09:36:44 -04:00
Daniel Sheppard
1854a6b76b
Fix #11478 - Add vc_interfaces flag to control selection of VC interfaces ( #13296 )
...
* Add `vc_interfaces` flag to control interface queryset
* Fix test failure
* Add new filters instead of using undocumented query params
* Cleanup filterset, add test
* Rename filter and re-introduce virtual_chassis filtering method (required)
* Fix test
* Adjust tests to more accurately provide coverage
* Add breaking change note
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-30 09:33:02 -04:00
Jeremy Stretch
aebf3288d1
Fixes #13605 : Specify batch size for cached counter migrations ( #13610 )
...
* Specify batch size for cached counter migrations
* Remove list() casting of querysets
2023-08-30 09:18:24 -04:00
Arthur Hanson
065a40dfb3
13599 fix cached counter for edit object ( #13600 )
...
* 13599 fix cache counter
* 13599 update test
* Merge conditionals
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-29 15:31:13 -04:00
Jeremy Stretch
83536fbb23
#12814 : Add context data section to config rendering doc
2023-08-29 14:43:07 -04:00
Jeremy Stretch
420090dc6c
#12590 : Exclude proxy model for Token from permission object types
2023-08-29 14:41:14 -04:00
Jeremy Stretch
4ab0eb570c
#11305 : Add latitude & longitude to DeviceWithConfigContextSerializer
2023-08-29 14:31:42 -04:00
Jeremy Stretch
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
Jeremy Stretch
0dbfbf6941
Merge pull request #13591 from netbox-community/develop
...
Correct version number
2023-08-28 17:07:15 -04:00
Jeremy Stretch
d515530277
Merge branch 'master' into develop
2023-08-28 17:05:59 -04:00
Jeremy Stretch
4343e0566b
Correct version number
2023-08-28 17:04:37 -04:00
Jeremy Stretch
8555269f7e
Merge pull request #13589 from netbox-community/develop
...
Release v3.5.9
2023-08-28 16:58:09 -04:00
Jeremy Stretch
f42a2ac10c
Merge branch 'master' into develop
2023-08-28 16:19:44 -04:00