bctiemann
353214098b
4867 multiple mac addresses ( #17902 )
...
* Create MACAddress model and migrations to convert existing .mac_address fields to standalone objects
* Add migrations
* All views/filtering working and documentation done; no unit tests yet
* Redo migrations following VLAN Translation
* Remove mac_address filter fields and add table columns for device/vm
* Remove unnecessary "bulk rename"
* Fix filterset tests for Device
* Fix filterset tests for Interface
* Fix tests on single-object forms
* Fix serializer tests
* Fix filterset tests for VMInterface
* Fix filterset tests for Device and VirtualMachine
* Move new field check into lookup_map iteration
* Fix general MACAddress filter tests
* Add GraphQL types/filters/schema
* Fix bulk edit/create tests (bulk editing Interfaces will be unsupported because of inheritance from ComponentBulkEditForm)
* Make mac_address read_only on InterfaceSerializer/VMInterfaceSerializer
* Undo unrelated work
* Cleanup unused IPAddress derived stuff
* API endpoints
* Add serializer objects to interface serializers
* Clean up unnecessary bulk create forms/views/routes
* Add SearchIndex and adjust indexable fields for Interface and VMInterface
* Reorganize MACAddress classes out of association with DeviceComponents
* Move MACAddressSerializer
* Enforce saving only a single is_primary MACAddress per interface/vminterface
* Perform is_primary validation on MACAddress model and just check if one already exists for the interface
* Remove form-level validation
* Fix check for current is_primary setting when reassigning
* Model cleanup
* Documentation notes and cleanup
* Simplify serializer and add ip_addresses
* Add to VMInterfaceSerializer too
* Style cleanup
* Standardize "MAC Address" instead of "MAC"
* Remove unused views
* Add is_primary field for bulk edit
* HTML cleanup and add copy-to-clipboard button
* Remove mac_address from Interface and VMInterface bulk-edit forms
* Add device and VM filtering
* Use combined assigned_object_parent in table to match structure of IPAddressTable
* Add GFK fields to MACAddressSerializer
* Reorganize "Addressing" sections to remove from proximity to "Device Components" and related groupings
* Clean up migrations
* Misc cleanup
* Add filterset test
* Remove mac_address field from interface forms
* Designate primary MAC address via a ForeignKey on the interface models
* Add serializer fields for primary_mac_address
* Update docs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-18 15:11:24 -05:00
Jeremy Stretch
b4f15092db
Closes #5858 : Implement a quick-add UI widget for related objects ( #18016 )
...
* WIP
* Misc cleanup
* Add warning re: nested quick-adds
2024-11-18 14:44:57 -05:00
Arthur Hanson
9fe6685562
17929 Add Scope Mixins to Prefix ( #17930 )
...
* 17929 Add Scope Mixins to Prefix
* 17929 Add Scope Mixins to Prefix
* 17929 fixes for tests
* 17929 merge latest scope changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 17929 fix migrations
2024-11-15 14:55:46 -05:00
Arthur Hanson
6ab0792f02
Closes #11279 : Replace _name natural key sorting with collation ( #18009 )
...
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 fix tables /tests
* 11279 fix tests
* 11279 refactor VirtualDisk
* Clean up migrations
* Misc cleanup
* Correct errant file inclusion
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-15 09:32:09 -05:00
Arthur Hanson
75aeaab8ee
12596 Add Allocated Resources to Cluster API ( #17956 )
...
* 12596 Add Allocated Resources to Cluster API
* 12596 Add Allocated Resources to Cluster API
* 12596 Add Allocated Resources to Cluster API
* 12596 Add Allocated Resources to Cluster API
* 12596 review changes
* 12596 review changes
2024-11-15 07:55:32 -05:00
github-actions
05daa16aed
Update source translation strings
2024-11-13 05:02:11 +00:00
Jeremy Stretch
9c532c7d89
Fixes #17986 : Correct label for disk size when bulk editing virtual machines ( #17992 )
...
* Fixes #17986 : Correct label for disk size when bulk editing virtual machines
* Correct label for VirtualDisk.size
2024-11-12 14:53:57 -05:00
Jeremy Stretch
c34fea6c9b
Fixes #17969 : Fix system info export when a config revision exists
2024-11-12 14:35:10 -05:00
Jeremy Stretch
2ed0534117
Fixes #17963 : Fix selection of all listed objects during bulk edit
2024-11-12 14:33:57 -05:00
Jeremy Stretch
954e29aec3
Fixes #17972 : Force evaluation of LOGIN_REQUIRED when requesting static media ( #17990 )
2024-11-12 12:19:37 -05:00
Antoine Keranflec'h
113c8d1d85
Merge branch 'netbox-community:develop' into 17542-Contact_Assignment_to_vpn_tunnels
2024-11-12 14:17:05 +01:00
github-actions
494d410847
Update source translation strings
2024-11-08 05:02:01 +00:00
Jeremy Stretch
03d413565f
Fix linter error
2024-11-07 14:10:15 -05:00
Jeremy Stretch
a183048891
Closes #17951 : Extend Ruff ruleset
2024-11-07 11:52:02 -05:00
Arthur Hanson
812ce8471a
10711 Add Scope to WirelessLAN ( #17877 )
...
* 7699 Add Scope to Cluster
* 7699 Serializer
* 7699 filterset
* 7699 bulk_edit
* 7699 bulk_import
* 7699 model_form
* 7699 graphql, tables
* 7699 fixes
* 7699 fixes
* 7699 fixes
* 7699 fixes
* 7699 fix tests
* 7699 fix graphql tests for clusters reference
* 7699 fix dcim tests
* 7699 fix ipam tests
* 7699 fix tests
* 7699 use mixin for model
* 7699 change mixin name
* 7699 scope form
* 7699 scope form
* 7699 scoped form, fitlerset
* 7699 review changes
* 7699 move ScopedFilterset
* 7699 move CachedScopeMixin
* 7699 review changes
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 7699 review changes
* 7699 refactor mixins
* 7699 _sitegroup -> _site_group
* 7699 update docstring
* fix model
* remove old constants, update filtersets
* 10711 fix GraphQL
* 10711 fix API
* 10711 add tests
* 10711 review changes
* 10711 add tests
* 10711 add scope to detail template
* 10711 add api test
* Extend CSV test data
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-07 10:28:02 -05:00
Pl0xym0r
fe0ae39903
Closes : #17871 - Add cluster on bulkedit device ( #17920 )
...
* 17871 add cluster on bulkedit device
* Make cluster assignment nullable; reorder imports
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-07 09:26:14 -05:00
bctiemann
f873735dd4
Closes : #15239 - Allow adding/removing tagged VLANs in bulk editing of Interfaces ( #17524 )
...
* Allow adding/removing tagged VLANs in bulk editing of Interfaces
* Move vlan/interface-specific field operations to an overrideable method
* Ensure interfaces are MODE_TAGGED before adding/removing tagged vlans
* Add docstring for generic extra_object_field_operations
* Move tagging ops into post_save_operations and use a TabbedGroup in the form
2024-11-07 09:14:33 -05:00
Arthur Hanson
27d15615b3
17898 upgrade to django-rq v3 ( #17911 )
...
* 17898 upgrade to django-rq v3
* Unpin base requirements
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-01 15:14:11 -04:00
Alexander Haase
4bba92617d
Closes #16971 : Add system jobs ( #17716 )
...
* Fix check for existing jobs
If a job is to be enqueued once and no specific scheduled time is
specified, any scheduled time of existing jobs will be valid. Only if a
specific scheduled time is specified for 'enqueue_once()' can it be
evaluated.
* Allow system jobs to be registered
A new registry key allows background system jobs to be registered and
automatically scheduled when rqworker starts.
* Test scheduling of system jobs
* Fix plugins scheduled job documentation
The documentation reflected a non-production state of the JobRunner
framework left over from development. Now a more practical example
demonstrates the usage.
* Allow plugins to register system jobs
* Rename system job metadata
To clarify which meta-attributes belong to system jobs, each of them is
now prefixed with 'system_'.
* Add predefined job interval choices
* Remove 'system_enabled' JobRunner attribute
Previously, the 'system_enabled' attribute was used to control whether a
job should run or not. However, this can also be accomplished by
evaluating the job's interval.
* Fix test
* Use a decorator to register system jobs
* Specify interval when registering system job
* Update documentation
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-01 14:56:08 -04:00
Jeremy Stretch
81f00fd03a
Fixes #17895 : Ensure GraphiQL UI resources are served locally
2024-11-01 14:51:41 -04:00
Arthur Hanson
6dc75d8db1
7699 Add Scope to Cluster ( #17848 )
...
* 7699 Add Scope to Cluster
* 7699 Serializer
* 7699 filterset
* 7699 bulk_edit
* 7699 bulk_import
* 7699 model_form
* 7699 graphql, tables
* 7699 fixes
* 7699 fixes
* 7699 fixes
* 7699 fixes
* 7699 fix tests
* 7699 fix graphql tests for clusters reference
* 7699 fix dcim tests
* 7699 fix ipam tests
* 7699 fix tests
* 7699 use mixin for model
* 7699 change mixin name
* 7699 scope form
* 7699 scope form
* 7699 scoped form, fitlerset
* 7699 review changes
* 7699 move ScopedFilterset
* 7699 move CachedScopeMixin
* 7699 review changes
* 7699 review changes
* 7699 refactor mixins
* 7699 _sitegroup -> _site_group
* 7699 update docstring
* Misc cleanup
* Update migrations
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-01 14:18:23 -04:00
Jeremy Stretch
8767fd8186
Closes #13428 : Q-in-Q VLANs ( #17822 )
...
* Initial work on #13428 (QinQ)
* Misc cleanup; add tests for Q-in-Q fields
* Address PR feedback
2024-10-31 14:17:06 -04:00
Jeremy Stretch
74315080a3
Release v4.1.6
2024-10-31 13:31:11 -04:00
Arthur Hanson
a8eb455f3e
9604 Add Termination to CircuitTermination ( #17821 )
...
* 9604 add scope type to CircuitTermination
* 9604 add scope type to CircuitTermination
* 9604 add scope type to CircuitTermination
* 9604 model_forms
* 9604 form filtersets
* 9604 form bulk_import
* 9604 form bulk_edit
* 9604 serializers
* 9604 graphql
* 9604 tests and detail template
* 9604 fix migration merge
* 9604 fix tests
* 9604 fix tests
* 9604 fix table
* 9604 updates
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* 9604 remove provider_network
* 9604 fix tests
* 9604 fix tests
* 9604 fix forms
* 9604 review changes
* 9604 scope->termination
* 9604 fix _circuit_terminations
* 9604 fix _circuit_terminations
* 9604 sitegroup -> site_group
* 9604 update docs
* 9604 fix form termination side reference
* Misc cleanup
* Fix terminations in circuits table
* Fix missing imports
* Clean up termination attrs display
* Add termination & type to CircuitTerminationTable
* Update cable tracing logic
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-31 09:55:08 -04:00
github-actions
4ca2b21a70
Update source translation strings
2024-10-31 05:02:35 +00:00
bctiemann
f74a9a1c76
Fixes : #7336 - VLAN Translation ( #17745 )
...
* VLANTranslationPolicy and VLANTranslationRule models and all associated UI classes
* Change VLANTranslationPolicy to a PrimaryModel and make name unique
* Add serializer classes to InterfaceSerializer
* Remake migrations
* Add GraphQL typing
* Skip tagged models in test
* Missing migration
* Remove get_absolute_url methods
* Remove package-lock.json
* Rebuild migration and add constraints and field options
* Rebuild migrations
* Use DynamicModelChoiceField for policy field
* Make vlan_translation_policy fields on filtersets more consistent with existing __name convention
* Add vlan_translation_table to VMInterface detail page
* Add vlan_translation_policy to VMInterfaceSerializer
* Move vlan_translation_policy fields to model and filterset mixins
* Protect in-use policies against deletion
* Add vlan_translation_policy to fields in VMInterfaceSerializer
* Cleanup indentation
* Remove unnecessary ordering column
* Rebuild migrations
* Search methods and registration
* Ensure 'id' column is present by default
* Add graphql types/filters/schema for VLANTranslationRule
* Filterset tests
* View tests
* API and viewset tests (incomplete)
* Add tags to VLANTranslationRuleForm
* Complete viewset tests for VLANTranslationRule
* Make VLANTranslationRule.policy nullable (but still required)
* Revert "Make VLANTranslationRule.policy nullable (but still required)"
This reverts commit 4c1bb437ef .
* Revert nullability
* Explicitly prefetch policy in graphql
* Documentation of new and affected models
* Add note about select_related in graphql
* Rework policy/rule documentation
* Move vlan_translation_policy into 802.1Q Switching fieldset
* Remove redundant InterfaceVLANTranslationTable
* Conditionally include vlan_translation_table in interface.html and vminterface.html
* Add description field to VLANTranslationRule
* Define vlan_translation_table conditionally
* Add policy (name) filter to VLANTranslationRuleFilterSet
* Revert changes to adding-models.md (moved to another PR)
* Dynamic table for linked rules in vlantranslationpolicy.html
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-30 17:09:46 -04:00
Jeremy Stretch
19c5c32965
Merge branch 'develop' into feature
2024-10-30 13:10:47 -04:00
Jeremy Stretch
1e5f79a8ed
Fixes #17884 : Fix translation support for certain tab headings
2024-10-30 08:48:37 -04:00
Jeremy Stretch
f00a93c066
Fixes #17700 : Fix warning when no scripts are found within a script module
2024-10-30 08:47:46 -04:00
Arthur Hanson
5f94dff815
17885 fix script running by providing script name to job
2024-10-29 16:47:15 -04:00
github-actions
576498955f
Update source translation strings
2024-10-29 05:02:05 +00:00
Arthur Hanson
99904c1518
Merge branch 'develop' into feature
2024-10-28 14:29:48 -07:00
Jeremy Stretch
813347121e
Release v4.1.5
2024-10-28 16:59:44 -04:00
transifex-integration[bot]
c383086aac
Updates for project NetBox ( #17875 )
...
* Translate django.po in cs
100% translated source file: 'django.po'
on 'cs'.
* Translate django.po in de
100% translated source file: 'django.po'
on 'de'.
* Translate django.po in es
100% translated source file: 'django.po'
on 'es'.
* Translate django.po in it
100% translated source file: 'django.po'
on 'it'.
* Translate django.po in tr
100% translated source file: 'django.po'
on 'tr'.
* Translate django.po in fr
100% translated source file: 'django.po'
on 'fr'.
* Translate django.po in ja
100% translated source file: 'django.po'
on 'ja'.
* Translate django.po in pt
100% translated source file: 'django.po'
on 'pt'.
* Translate django.po in da
100% translated source file: 'django.po'
on 'da'.
* Translate django.po in nl
100% translated source file: 'django.po'
on 'nl'.
* Translate django.po in zh
100% translated source file: 'django.po'
on 'zh'.
* Translate django.po in ru
100% translated source file: 'django.po'
on 'ru'.
* Translate django.po in uk
100% translated source file: 'django.po'
on 'uk'.
* Translate django.po in pl
100% translated source file: 'django.po'
on 'pl'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-10-28 16:50:34 -04:00
Jeremy Stretch
8279eaff5b
Update source translation strings
2024-10-28 15:22:19 -04:00
bctiemann
ca210168df
Fixes : #17358 - Ensure correct comparison of overlapping IPRanges ( #17391 )
...
* Add new INET lookups for net_host_lt/gt/lte/gte comparisons irrespective of subnet inclusion
* Refactor Lookup subclasses to be more DRY
* Move comparison_sql to class attribute
* Add HostAsInet(Transform) to perform cast
* Remove unnecessary Lookup comparison classes
* Chain Host and Inet instead of making a new transform
2024-10-28 15:07:59 -04:00
Arthur Hanson
476194f0aa
17460 make ModuleType / DeviceType bulk buttons consistent ( #17463 )
...
* 17460 make ModuleType / DeviceType bulk buttons consistent
* 17460 refactor moduletype/devicetype to use standardized object_children
* 17460 refactor moduletype/devicetype to use standardized object_children
* 17460 refactor moduletype/devicetype to use standardized object_children
2024-10-28 15:04:45 -04:00
Alexander Haase
69e1394fef
Fix job field validation
...
Previously, fields in the Job model were not validated when the job was
created. Now 'full_clean()' is called before saving the job to ensure
valid data.
2024-10-28 13:40:20 -04:00
xee8ai
ce67d2c13b
Fix ambiguous shebang in netbox/manage.py.
2024-10-24 09:04:49 -04:00
Jeremy Stretch
97eb5bda50
Closes #17832 : Don't validate terminations on Cable instance when importing from serialzied data
2024-10-24 08:28:30 -04:00
Jeremy Stretch
ef1fdf0a01
Closes #17761 : Store empty CharField choices as null
2024-10-21 13:12:05 -04:00
github-actions
bb06b733c4
Update source translation strings
2024-10-19 05:02:04 +00:00
Jeremy Stretch
75270c1aef
Closes #6414 : Enable assigning prefixes to various object types ( #17692 )
...
* Replace site FK on Prefix with scope GFK
* Add denormalized relations
* Update prefix filters
* Add generic relations for Prefix
* Update GraphQL type for Prefix model
* Fix tests; misc cleanup
* Remove prefix_count from SiteSerializer
* Remove site field from PrefixBulkEditForm
* Restore scope filters for prefixes
* Fix scope population on PrefixForm init
* Show scope type
* Assign scope during bulk import of prefixes
* Correct handling of GenericForeignKey in PrefixForm
* Add prefix counts to all scoped objects
* Fix migration; linter fix
* Add limit_choices_to on scope_type
* Clean up cache_related_objects()
* Enable bulk editing prefix scope
2024-10-18 15:45:22 -04:00
Jeremy Stretch
c78da79ce6
Merge branch 'develop' into feature
2024-10-18 13:18:11 -04:00
Jeremy Stretch
538f3255a7
Closes #17789 : Use a single scope field for VLANGroup bulk edit
2024-10-18 13:16:24 -04:00
Arthur Hanson
b9c6def8ab
15093 Allow plugins to register events pipeline ( #17717 )
...
* 15093 add events_pipeline registration to plugins
* 15093 use list
* 15093 add documentation
* Update docs/configuration/index.md
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update docs/configuration/miscellaneous.md
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 15093 review changes
* 15093 review changes
* Formatting & readability
* 15093 review changes
* 15093 add test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-18 12:47:16 -04:00
Arthur Hanson
a2cd4d0983
17635 fix script AbortTransaction ( #17764 )
...
* 17635 fix script AbortTransaction
* 17635 review changes
2024-10-18 10:55:17 -04:00
Arthur Hanson
e13bc0694d
17374 correct background color in dark mode for active list item ( #17792 )
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-18 10:48:15 -04:00
Alexander Haase
ac9f561372
Fix social auth for Entra ID
...
Previously Azure AD was renamed to Entra ID. However, as django social
auth didn't change its API, just the display names must be changed but
not the API names.
2024-10-18 10:45:34 -04:00
atownson
5ddbacaa1f
Fixes #17802 - Added opaque background to Rename buttons ( #17805 )
...
* Added btn-float class to the Rename button
* Added btn-float class to the Rename button
2024-10-18 09:49:17 -04:00
Jeremy Stretch
a8ec06687a
Reomove obsolete nested serializers
2024-10-18 08:16:30 -04:00
Jeremy Stretch
6aeb553391
Closes #17029 : Deprecate PluginTemplateExtension.model
2024-10-18 08:15:31 -04:00
github-actions
110b2b3d97
Update source translation strings
2024-10-18 05:02:11 +00:00
Jeremy Stretch
6a316df787
Closes #17789 : Use a single scope field for VLANGroup bulk edit
2024-10-17 15:39:42 -04:00
github-actions
9f7743e5da
Update source translation strings
2024-10-17 05:03:07 +00:00
Arthur Hanson
27a39339df
17464 fix margins for custom-field markdown description ( #17775 )
...
* 17464 fix margins for custom-field markdown description
* 17464 fix margins for custom-field markdown description
* 17464 review changes
* 17464 update comments
2024-10-16 16:53:21 -04:00
Brian Tiemann
81108e405f
Add webp to the list of acceptable extensions for handling filenames in image_upload
2024-10-16 16:30:21 -04:00
Arthur Hanson
82de559317
17754 fix per-page on version history ( #17766 )
...
* 17754 fix per-page on version history
* 17754 remove htmx table
* Use non-HTMX template for static tables
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-16 14:15:36 -04:00
corubba
532dbabbab
Fixes #17749 : Add missing graphql fields
2024-10-16 13:40:38 -04:00
Artem Kotik
e8e95f5e97
Add job timeout handling in JobRunner for periodic jobs
2024-10-16 13:11:05 -04:00
Arthur Hanson
aa3f4cb5f5
17710 remove cached fields from CableTermination GraphQL
2024-10-16 13:05:41 -04:00
Jeremy Stretch
e7bd0e53d7
Closes #17776 : Add support for different HTTP methods to HTMXSelect
2024-10-16 12:56:46 -04:00
Jeremy Stretch
e370cadcef
Merge branch 'develop' into feature
2024-10-16 08:13:43 -04:00
github-actions
dbc52dc6c7
Update source translation strings
2024-10-16 05:02:10 +00:00
Jeremy Stretch
d2cbdfe7d7
Release v4.1.4
2024-10-15 13:42:25 -04:00
Jeremy Stretch
5c5a53bf3f
subscriptions_enabled was removed in strawberry-graphql v0.245.0
2024-10-15 13:38:51 -04:00
transifex-integration[bot]
75225c6c75
Updates for project NetBox ( #17762 )
...
* Translate django.po in cs
100% translated source file: 'django.po'
on 'cs'.
* Translate django.po in fr
100% translated source file: 'django.po'
on 'fr'.
* Translate django.po in uk
100% translated source file: 'django.po'
on 'uk'.
* Translate django.po in it
100% translated source file: 'django.po'
on 'it'.
* Translate django.po in de
100% translated source file: 'django.po'
on 'de'.
* Translate django.po in zh
100% translated source file: 'django.po'
on 'zh'.
* Translate django.po in da
100% translated source file: 'django.po'
on 'da'.
* Translate django.po in ja
100% translated source file: 'django.po'
on 'ja'.
* Translate django.po in es
100% translated source file: 'django.po'
on 'es'.
* Translate django.po in nl
100% translated source file: 'django.po'
on 'nl'.
* Translate django.po in ru
100% translated source file: 'django.po'
on 'ru'.
* Translate django.po in pl
100% translated source file: 'django.po'
on 'pl'.
* Translate django.po in tr
100% translated source file: 'django.po'
on 'tr'.
* Translate django.po in pt
100% translated source file: 'django.po'
on 'pt'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-10-15 13:30:35 -04:00
Jeremy Stretch
ba4b5fed0b
Merge branch 'develop' into issue_16009
2024-10-15 12:55:48 -04:00
Erik Hetland
111a1ad888
Fixes #17400 : Handle cablepaths directly via multiple single-position rear ports
2024-10-15 12:28:46 -04:00
github-actions
55fad2f533
Update source translation strings
2024-10-12 05:02:27 +00:00
Arthur Hanson
fcc498641f
17644 fix login icon size ( #17730 )
...
* 17644 fix login icon size
* 17644 fix login icon size
* 17644 review changes
2024-10-11 16:06:31 -04:00
Arthur Hanson
9a655d80e1
17614 Disallow removal of virtual chassis from device if set as master ( #17731 )
...
* 17614 Disallow removal of virtual chassis from device if set as master
* 17614 review changes
* 17614 review changes
2024-10-11 16:04:42 -04:00
Jeremy Stretch
727de0fb59
Remove unused imports
2024-10-11 12:27:39 -04:00
Jeremy Stretch
b99c356d1d
Fix migrations conflict
2024-10-11 11:36:56 -04:00
Jeremy Stretch
256b5dc676
Merge branch 'develop' into feature
2024-10-11 11:29:36 -04:00
Jeremy Stretch
7ac6dff96d
Closes #17733 : Replace pycodestyle with ruff ( #17734 )
...
* Resolve F541 errors
* Resolve F841 errors
* Resolve F811 errors
* Resolve F901 errors
* Resolve E714 errors
* Ignore F821 errors for GraphQL mixins
* Replace pycodestyle with ruff
* Move ignores to ruff.toml
2024-10-11 07:43:46 -04:00
github-actions
1e6f222475
Update source translation strings
2024-10-11 05:02:14 +00:00
Arthur Hanson
4e763462e6
17713 fix underscore in datasource.sync ( #17729 )
2024-10-10 16:08:48 -04:00
Jeremy Stretch
e59f776e02
Closes #17725 : Clean up import statements ( #17728 )
...
* #17725 : Resolve all F401 errors
* Tweak noqa designation
2024-10-10 14:52:47 -04:00
Arthur Hanson
65687851fe
16547 Add distance to Circuit ( #17629 )
...
* 16547 Add distance to Circuit
* 16547 fix test cases
* 16547 fix test cases
* 16547 add distance to API, forms, tables
* 16547 fixes
* 16547 fixes
* 16547 review changes
* 16547 review changes
* Clean up DistanceColumn
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-10 14:37:33 -04:00
Jeremy Stretch
bc597c3c5d
Closes #17472 : Deprecate the staged changes API
2024-10-10 14:32:39 -04:00
Arthur Hanson
ed1327eeb7
16546 define get_absolute_url method in NetBoxModel ( #17693 )
...
* 16546 define get_absolute_url method in NetBoxModel
* 16546 define get_absolute_url method in NetBoxModel
* 16546 define get_absolute_url method in NetBoxModel
* 16546 move get_absolute_url to NetBoxFeatureSet
* 16546 fix CircuitTermination
* Fix linebreaks
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-10 09:59:19 -04:00
Antoine Keranflec'h
5b2241aaaf
fix(17542) add contact to tunnels
2024-10-10 15:38:48 +02:00
Arthur Hanson
3f469b0b0a
17476 Upgrade to Django 5.1 ( #17620 )
...
* 17476 Upgrade to Django 5.1
* 16136 fix migrations
* 17476 update remove GFK from fields
* 17476 fix
* 17476 update django to bugfix release
* fix comma
2024-10-10 09:08:58 -04:00
github-actions
e3c3ca191c
Update source translation strings
2024-10-10 05:02:05 +00:00
gellis713
ec89a9b106
Fix parsing of extra_choices ( #17691 )
...
* Align strawberry resolver with expected return type
* Align test data with expected representation of extra_choices in CustomFieldChoiceSet model
---------
Co-authored-by: Griffin Ellis <griffin.ellis@pico.net>
2024-10-09 10:30:40 -04:00
Craig Askings
2172ddde61
Add EVPN-VPWS to L2VPNTypeChoices ( #17694 )
...
* Add EVPN-VPWS to the availbable L2VPN Connection Types
* Updated documentation to reference the new L2VPN type.
2024-10-09 10:28:53 -04:00
Daniel Sheppard
23e6534060
Fixes : #17636 - Correct typo in Power Outlet Template form for Power Port field
2024-10-09 10:18:49 -04:00
github-actions
ccb2480e98
Update source translation strings
2024-10-08 05:02:15 +00:00
Daniel Sheppard
2fd23f35c8
Fixes : #17648 - Fix exception thrown in Job.delete() when no object_type specified ( #17657 )
...
* Fixes : #17648 - Fix exception thrown in `Job.delete()` when no object_type specified
* Remove unrelated fix
* Change back elif to if
* Remove unused imports
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-07 08:59:48 -04:00
Thor Selmer Dreier-Hansen
364826d2d8
limits vlans on interface tables ( #17662 )
...
* limits vlans on interface tables
* limits vlans on interface tables
* limits vlans on interface tables
* limits vlans on interface tables
2024-10-07 08:45:53 -04:00
Daniel Sheppard
4b6e8a9e75
Fixes : #17566 - Fix issue Job.get_absolute_url() to prevent exception being thrown if no object_type is set ( #17661 )
...
* Fixes : #17566 - Fix issue `Job.get_absolute_url()` to prevent exception being thrown if no object_type is set
* Add back whitespace after statements
* Remove whitespace. Change to if statement
2024-10-07 08:35:47 -04:00
Costas Drongos
66d792e0d8
fixes: 17079 add more device airflow choices
2024-10-07 08:32:02 -04:00
github-actions
8e802abf0d
Update source translation strings
2024-10-04 05:02:12 +00:00
Jeremy Stretch
fec0badd5a
Closes #17669 : Enable filtering VLANs by assigned interface ( #17674 )
...
* Closes #17669 : Enable filtering VLANs by assigned interface
* Add tests
2024-10-03 13:56:26 -04:00
bctiemann
ce04ec20e8
Fixes : #17663 - Only remove extraneous attributes from extra if changing to a BooleanFilter ( #17670 )
...
* Only remove extraneous attributes from extra if changing to a BooleanField
* Add tests for MultipleChoiceField icontains and negation
* Use enum in test consistently
* Reorganize tests
* Add __empty test to base filter lookup tests
* Fix test name
* Change var name for clarity
2024-10-03 13:50:07 -04:00
Arthur Hanson
dda7837069
17671 fix RackType search
2024-10-03 13:30:03 -04:00
Alexander Haase
bfcae8088d
Rename Microsoft Azure AD to Entra ID
...
Occurrences of the old term have been replaced by the new term. However,
the documentation still needs some work to reflect the new Entra ID
screenshots and terminology.
2024-10-03 13:25:48 -04:00
Jeremy Stretch
f11dc00fae
Change attr_type from list to str for MultipleChoiceFilter ( #17638 )
2024-10-03 13:24:00 -04:00
Daniel Sheppard
648aeaaf14
Closes : #11671 - Add position display to cable trace
2024-10-03 13:20:44 -04:00
Arthur Hanson
1969f0dc71
fix migrations
2024-10-02 12:52:27 -07:00
Jeremy Stretch
6a6154f02f
Release v4.1.3
2024-10-02 14:41:09 +01:00
Arthur Hanson
2c68aca344
17195 Add color to PowerOutlet ( #17623 )
...
* 17195 Add color to PowerOutlet
* 17195 Add color to PowerOutlet
* Reorder serializer fields
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-02 08:51:41 -04:00
github-actions
23f94839ad
Update source translation strings
2024-10-02 05:01:57 +00:00
Arthur Hanson
92d8aa583a
Add support for socks connection to Git backend ( #17640 )
...
* Add support for socks connection to Git backend
* cleanup socks detection
* add documentation for installing python_socks
* dont need lower()
* cleanup
* refactor Socks to utilities
* fix imports
* fix missing comma
* Update docs/features/synchronized-data.md
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* review feedback
* Update docs/features/synchronized-data.md
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* review changes
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-01 12:11:44 -04:00
github-actions
d9028f9202
Update source translation strings
2024-10-01 05:02:14 +00:00
Arthur Hanson
8cd0a3215c
16783 Add status field to InventoryItem ( #17627 )
...
* 16783 Add status field to InventoryItem
* 16783 fix tests
* 16783 fix tests
* 16783 review changes
2024-09-30 18:26:14 -04:00
Arthur Hanson
a9fee5cd32
17558 raise validation error if removing used choice from ChoiceSet ( #17591 )
...
* 17558 raise validation error if removing choice from choiceset that is currently used
* 17558 raise validation error if removing choice from choiceset that is currently used
* 17558 raise validation error if removing choice from choiceset that is currently used
* 17558 add tests
* 17558 add tests
* Tightened up choice evaluation logic a bit; cleaned up test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-09-30 13:17:01 -04:00
Arthur Hanson
c60a0f4f56
16136 remove Django Admin ( #17619 )
...
* 16136 remove Django Admin
* 16136 fix plugin test
* 16136 fix migrations
* Revert "16136 fix migrations"
This reverts commit 80296fa1ec .
* Remove obsolete admin module from dummy plugin
* Remove obsolete admin site configuration
* Remove unused import statement
* Remove obsolete admin module
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-09-27 08:33:02 -04:00
github-actions
8624734610
Update source translation strings
2024-09-27 05:01:59 +00:00
Jeremy Stretch
b4e181c015
Release v4.1.2
2024-09-26 16:13:57 -04:00
transifex-integration[bot]
2a8b11de8e
Updates for project NetBox ( #17624 )
...
* Translate django.po in fr
100% translated source file: 'django.po'
on 'fr'.
* Translate django.po in it
100% translated source file: 'django.po'
on 'it'.
* Translate django.po in ru
100% translated source file: 'django.po'
on 'ru'.
* Translate django.po in de
100% translated source file: 'django.po'
on 'de'.
* Translate django.po in uk
100% translated source file: 'django.po'
on 'uk'.
* Translate django.po in nl
100% translated source file: 'django.po'
on 'nl'.
* Translate django.po in ja
100% translated source file: 'django.po'
on 'ja'.
* Translate django.po in pl
100% translated source file: 'django.po'
on 'pl'.
* Translate django.po in tr
100% translated source file: 'django.po'
on 'tr'.
* Translate django.po in cs
100% translated source file: 'django.po'
on 'cs'.
* Translate django.po in zh
100% translated source file: 'django.po'
on 'zh'.
* Translate django.po in da
100% translated source file: 'django.po'
on 'da'.
* Translate django.po in pt
100% translated source file: 'django.po'
on 'pt'.
* Translate django.po in es
100% translated source file: 'django.po'
on 'es'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-09-26 16:08:01 -04:00
Costas Drogos
dee8e6f733
Fixes : #17611 : Fix a ValidationError message
2024-09-26 16:04:17 -04:00
bctiemann
e93719e4f9
Fixes : #17360 - Ensure model is defined when rendering bulk_edit_button ( #17535 )
...
* Ensure model is defined when rendering bulk_edit_button
* Move model check to inner conditional
* Set model in context
* Return child_model instead of model for use in bulk_edit_button
2024-09-26 15:36:42 -04:00
bctiemann
52a0b454c0
Fixes : #17497 - Handle invalid accessor fields in bulk import forms ( #17594 )
...
* Add handling for FieldError to CSVModelChoiceField.to_python to handle invalid accessor field
* manufacturer & default_platform should be CSVModelChoiceFields
* Fix string translation
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-09-26 15:31:07 -04:00
Arthur Hanson
0ec632e548
17419 fix MPTT issue with migrations for nested module bays ( #17553 )
...
* 17419 rebuild module bay tree on upgrade
* 17419 rebuild module bay tree on upgrade
* 17419 use get_model
2024-09-26 15:24:32 -04:00
Brian Tiemann
cc6f21ded2
Change manufacturer to a CSVModelChoiceField in DeviceTypeImportForm
2024-09-26 15:17:28 -04:00
Jeremy Stretch
b4dd71d578
Fixes #17511 : Restore consistent font support for non-Latin characters
2024-09-26 14:59:10 -04:00
Arthur Hanson
9bccc11c28
17604 fix cluster disk space display
2024-09-26 14:58:00 -04:00
Alexander Haase
5485b04bcd
Add interface type SFP (100 Base-FX)
2024-09-26 14:55:08 -04:00
Alexander Haase
68bd37a08f
Add return URL to available IPs table link
...
As with other buttons to create objects, the 'x IPs available' button
in tables now returns to this URL after the IP address has been created.
2024-09-26 14:51:11 -04:00
Jeremy Stretch
85396866bc
Fixes #17601 : Record change to terminating object when disconnecting a cable
2024-09-25 10:20:31 -04:00
github-actions
50df0a1073
Update source translation strings
2024-09-25 05:02:13 +00:00
bctiemann
cfb5696d29
Fixes : #17126 - Respect the weight unit of the DeviceType when displaying the Device detail ( #17579 )
...
* Respect the weight unit of the DeviceType when displaying the Device details
* Reuse the same weight formatting construct as in rack.html, and add placeholder in rack if empty
2024-09-24 16:53:39 -04:00
Arthur Hanson
8420af8562
17569 Add help text to VLAN Group that is not saved on the interface ( #17578 )
...
* 17569 Add help text to VLAN Group that is not saved on the interface
* 17569 review changes
2024-09-24 16:49:41 -04:00
iamk3
b7df06ae7f
create 802.15.4 interface type
2024-09-24 10:18:19 -04:00
Arthur Hanson
88abb6902d
17537 add name field to ASN Range Search
2024-09-24 10:05:04 -04:00
bctiemann
116a423d8f
Closes : #16837 - Fix type__empty filter in character-based filters ( #17574 )
...
* Fix type__empty filter in character-based filters
* Add tests
2024-09-24 10:02:49 -04:00
Arthur Hanson
9c9c4fbd6e
17501 fix showing last run of script execution in list view ( #17581 )
...
* 17501 fix showing last run of script job execution in list view
* 17501 fix showing last run of script job execution in list view
2024-09-24 09:45:38 -04:00
Arthur Hanson
896b5b9b74
17555 fix interface filter on device for hide-disconnected
2024-09-24 09:31:52 -04:00
Jeremy Stretch
b46a89640f
Closes #17577 : Reference ModelState when determining whether an object is being created
2024-09-24 09:14:07 -04:00
atownson
3c36549ff1
Satisfy prettier check
2024-09-23 14:59:16 -05:00
atownson
6d5af67da8
Update TS styling
2024-09-23 13:42:37 -05:00
atownson
1bfb6e6f34
Added null check for the button group
2024-09-23 13:26:47 -05:00
atownson
0cf8264c0e
Fix TS import
2024-09-23 13:16:05 -05:00
atownson
1e03eb4eb8
Added TypeScript to handle conditionally floating the object list forms
2024-09-23 13:06:46 -05:00
atownson
3b8a3dc66a
Added style classes to represent left and right justified floating button groups
2024-09-23 13:04:44 -05:00
atownson
30e67047d3
#16009 Removed floating div background and moved filter form buttons outside of card
2024-09-20 11:02:59 -05:00
github-actions
6b219a279b
Update source translation strings
2024-09-20 05:02:25 +00:00
bctiemann
2dd5c82845
Fixes : #15408 - Add primary_ip4 and primary_ip6 to bulk import form for VDC ( #17509 )
...
* Add primary_ip4 and primary_ip6 to bulk import form for VDC
* Specify IPAddress querysets with address field accessor and labels
* Filter primary_ip4/ip6 querysets to only those IPs available on the device
* Fix comment
* Make ipv6 help text more correct
* Shorten IPv6 example
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-09-19 13:51:24 -04:00
Arthur Hanson
f4d4483050
17517 fix cable creation when switching device type
2024-09-19 13:24:49 -04:00
Jeremy Stretch
7de5efda2a
Merge branch 'develop' into issue_16009
2024-09-19 13:09:44 -04:00
bctiemann
8deaaae44b
Fixes : #17083 - Wrap labels in a div to reduce inadvertently clickable area to their left in forms ( #17525 )
...
* Wrap labels in a div to reduce inadvertently clickable area to their left in forms
* Set form label to be inline-block
2024-09-19 13:07:36 -04:00
Arthur Hanson
6d0a3485a1
17522 enable localization of user preference form
2024-09-19 10:11:56 -04:00
Arthur Hanson
8e6a15a25e
14201 allow searching for ASN with prefix AS
2024-09-19 10:08:54 -04:00
Arthur Hanson
44c7786cd9
17521 fix error message toast color in dark mode
2024-09-19 10:04:04 -04:00
github-actions
f7dd09da08
Update source translation strings
2024-09-18 05:02:30 +00:00
atownson
8715f6fe87
#16009 Added btn-float-group style class and added to form templates for floating button groups
2024-09-17 13:36:05 -05:00
Jonathan Senecal
c79c664e96
Update choices.py to add C39 Type outlets
...
(cherry picked from commit e92d0ec2e642b00506a64c1333e95cea8a36feae)
2024-09-17 09:28:21 -04:00
Arthur Hanson
f5d6f5d997
17406 allow deletion of plugin custom field if plugin removed
2024-09-17 09:26:33 -04:00
Arthur Hanson
48ca5d4d7e
17406 allow deletion of plugin custom field if plugin removed
2024-09-17 09:26:33 -04:00
Daniel Sheppard
893adef79c
Fixes : #17492 - Change methods on NetBox*HyperlinkedIdentityField to use get_viewname
2024-09-17 09:21:18 -04:00
Jeremy Stretch
65f81ab81d
Closes #17482 : Ignore Branch & StagedChange in nbshell
2024-09-16 09:10:21 -04:00
Jeremy Stretch
fa1e89d3d2
Closes #17477 : Upgrade tabler to 1.0.0-beta21
2024-09-16 08:45:44 -04:00
Jeremy Stretch
18935687ae
Release v4.1.1
2024-09-12 14:28:56 -04:00
transifex-integration[bot]
84ea437345
Updates for project NetBox ( #17474 )
...
* Translate django.po in cs
100% translated source file: 'django.po'
on 'cs'.
* Translate django.po in nl
100% translated source file: 'django.po'
on 'nl'.
* Translate django.po in ru
100% translated source file: 'django.po'
on 'ru'.
* Translate django.po in pl
100% translated source file: 'django.po'
on 'pl'.
* Translate django.po in es
100% translated source file: 'django.po'
on 'es'.
* Translate django.po in pt
100% translated source file: 'django.po'
on 'pt'.
* Translate django.po in da
100% translated source file: 'django.po'
on 'da'.
* Translate django.po in ja
100% translated source file: 'django.po'
on 'ja'.
* Translate django.po in uk
100% translated source file: 'django.po'
on 'uk'.
* Translate django.po in de
100% translated source file: 'django.po'
on 'de'.
* Translate django.po in fr
100% translated source file: 'django.po'
on 'fr'.
* Translate django.po in it
100% translated source file: 'django.po'
on 'it'.
* Translate django.po in tr
100% translated source file: 'django.po'
on 'tr'.
* Translate django.po in zh
100% translated source file: 'django.po'
on 'zh'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-09-12 14:16:39 -04:00
Jeremy Stretch
5ce8b6b825
Delete obsolete static resources
2024-09-12 13:43:26 -04:00
Jeremy Stretch
114b8a2860
Fixes #17437 : Fix exception when specifying a bridge relationship on an interface template
2024-09-12 10:22:43 -04:00
Arthur Hanson
52299faecd
17333 don't prefetch jobs on script api call
2024-09-12 09:12:03 -04:00
Arthur Hanson
ee7ac6f041
17444 fix event rules jobs enqueue ( #17458 )
...
* 17444 fix event rules jobs enqueue
* 17444 fix event rules jobs enqueue
* 17444 fix event rules jobs enqueue
* 17444 cleanup
* 17444 cleanup
2024-09-12 08:42:29 -04:00
Arthur Hanson
c0d5d98df2
17457 Make NumericArrayFilter optional
2024-09-12 08:31:02 -04:00
github-actions
af5fb8f923
Update source translation strings
2024-09-12 05:02:14 +00:00
pl0xym0r
213eb610de
Fixes #17362 : Fix unicity of VRF returned by filter_present_in_vrf function
2024-09-11 09:43:21 -04:00
Arthur Hanson
5f32b23c35
17410 only add debug middleware if DEBUG
2024-09-11 08:53:41 -04:00
Brian Tiemann
bf7b8b2458
Fix migration dependencies for 3.7->4.1 path
2024-09-11 08:51:31 -04:00
github-actions
ce372ce7a6
Update source translation strings
2024-09-11 05:02:05 +00:00
Arthur Hanson
353db09656
17422 update custom field group display tag ( #17423 )
...
* 17422 update custom field group display tag
* 17422 review changes
2024-09-10 14:02:03 -04:00
Arthur Hanson
81a1280b65
17414 allow single vlan in vlan group ( #17418 )
...
* 17414 allow single vlan in vlan group
* 17414 add test
2024-09-10 09:03:50 -04:00
amit177
93eea95735
Add NEMA L22-20
2024-09-10 08:48:38 -04:00
github-actions
0c2861e02c
Update source translation strings
2024-09-10 05:02:11 +00:00
bchow
43b949779d
Closes #16926 Adds various USB cable types to front/rear ports and cable choices ( #16951 )
...
* Closes #16926 Adds various USB cable types to front/rear ports and cable choices
* Closes #16926 Changes USB cable types to reflect versions-physical differences. Updated human readable labels on USB front/rear ports to match style of usb console ports
* Closes #16926 Removes USB cable type choices in favor of single, generic 'USB' cable
2024-09-09 10:49:04 -04:00
Arthur Hanson
aca693b1c3
17066 fix put/patch for Script OpenAPI docs
2024-09-09 08:33:21 -04:00
Peter Eckel
16f74f7b03
Fixed view permissions for ObjectChange
2024-09-05 12:58:37 -04:00
github-actions
684cdda8f4
Update source translation strings
2024-09-05 05:02:14 +00:00
Arthur Hanson
7404caed3a
17353 make map buttons consistent ( #17371 )
...
* 17353 make map buttons consistent
* 17353 fix margin
2024-09-04 17:01:16 -04:00
Jeremy Stretch
5c33aa8bdd
Fixes #17332 : Restore pagination for object list dashboard widgets
2024-09-04 16:20:19 -04:00
Arthur Hanson
8cc0616019
17354 fix import with custom-field ( #17368 )
...
* 17354 fix import with custom-field
* 17354 change to use kwargs
2024-09-04 16:15:44 -04:00
github-actions
886d635524
Update source translation strings
2024-09-04 05:02:15 +00:00
Jeremy Stretch
9cfb3bf24d
Release v4.1.0
2024-09-03 14:45:28 -04:00
Jeremy Stretch
a777850702
Merge branch 'develop' into feature
2024-09-03 11:59:59 -04:00
Jeremy Stretch
e174a8af09
Release v4.0.11
2024-09-03 10:33:47 -04:00
Jeremy Stretch
77d1dc4807
Compile translations
2024-09-03 10:16:26 -04:00
dependabot[bot]
2f1798c7de
Bump micromatch from 4.0.5 to 4.0.8 in /netbox/project-static
...
Bumps [micromatch](https://github.com/micromatch/micromatch ) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases )
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8 )
---
updated-dependencies:
- dependency-name: micromatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03 10:12:50 -04:00
transifex-integration[bot]
52b7f62b10
Updates for project NetBox ( #17345 )
...
* Translate django.po in es
100% translated source file: 'django.po'
on 'es'.
* Translate django.po in ru
100% translated source file: 'django.po'
on 'ru'.
* Translate django.po in ja
100% translated source file: 'django.po'
on 'ja'.
* Translate django.po in cs
100% translated source file: 'django.po'
on 'cs'.
* Translate django.po in da
100% translated source file: 'django.po'
on 'da'.
* Translate django.po in nl
100% translated source file: 'django.po'
on 'nl'.
* Translate django.po in de
100% translated source file: 'django.po'
on 'de'.
* Translate django.po in pl
100% translated source file: 'django.po'
on 'pl'.
* Translate django.po in it
100% translated source file: 'django.po'
on 'it'.
* Translate django.po in tr
100% translated source file: 'django.po'
on 'tr'.
* Translate django.po in uk
100% translated source file: 'django.po'
on 'uk'.
* Translate django.po in pt
100% translated source file: 'django.po'
on 'pt'.
* Translate django.po in fr
100% translated source file: 'django.po'
on 'fr'.
* Translate django.po in zh
100% translated source file: 'django.po'
on 'zh'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-09-03 10:11:56 -04:00
Brian Candler
7a2ff96abe
Hide exception in ObjectCountsWidget for models without a xxx_list view function ( #17342 )
...
* Hide exception in ObjectCountsWidget for models without a `xxx_list` view function
Fixes #17341
* Disable hyperlink for invalid view names
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-09-03 09:38:06 -04:00
Jeremy Stretch
814b699204
Fixes #17323 : Associate job with script object when executed using runscript command
2024-09-03 09:20:18 -04:00
Jeremy Stretch
d18a853baa
Fixes #17337 : Fix ordering of virtual device contexts by device name
2024-09-03 08:58:13 -04:00
Arzhel Younsi
b2bbdbf1d9
runscript: use the previously defined "user"
...
There is already a logic set earlier in the code to define "user" if --user is passed as parameter, and default to the user with the lowest ID no none is provided.
This patch uses this "user" to run the job instead of always applying the default.
2024-09-03 08:42:37 -04:00
Jeremy Stretch
56f110c2a9
Closes #17288 : Limit the number of aliases within a GraphQL API requests to 10 ( #17329 )
...
* Closes #17288 : Limit the number of aliases within a GraphQL API request to 10
* Introduce GRAPHQL_MAX_ALIASES config parameter
2024-09-02 09:30:41 -04:00
Jeremy Stretch
31d5d8c395
Fixes #17301 : Fix script module edit & delete button styling ( #17328 )
2024-09-02 08:38:16 -04:00
Arthur Hanson
00874ac9e7
17289 enforce minimum password strength ( #17299 )
...
* 17289 add password validation
* 17289 add password validation
* 17289 fix tests
* 17289 fix tests
* Update netbox/utilities/password_validation.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/utilities/password_validation.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/utilities/password_validation.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 17289 update tests
* 17289 remove common password check
* 17289 fix user create
* 17289 revert _post_clean
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-30 17:23:01 -04:00
Daniel Sheppard
4fead1c85f
Fixes : #17310 - Properly restrict GraphQL related object queries ( #17312 )
...
* Fixes : #17310 - Fix GraphQL restriction of related objects
* Fix some failing tests
* Fix test
2024-08-30 14:22:58 -04:00
Jeremy Stretch
b4dd57f3c7
#8198 : Rename CustomField.validation_unique to unique ( #17325 )
...
* #8198 : Rename CustomField.validation_unique to unique
* Update CustomField model documentation
2024-08-30 13:44:03 -04:00
Arthur Hanson
8fff4e2a5d
12826 make RackType.form_factor required ( #17327 )
...
* 12826 make RackType.form_factor required
* 12826 fix tests
2024-08-30 13:43:07 -04:00
Arthur Hanson
829bef041d
11969 remove airflow from racktype ( #17324 )
...
* 11969 remove airflow from racktype
* 11969 remove airflow from racktype
* 11969 update docs
* 11969 fix rack edit
* Rename migration
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-30 13:30:51 -04:00
Jeremy Stretch
b797fcc03d
Closes #17318 : Include provider in nested API representation of circuits
2024-08-30 13:13:33 -04:00
Jeremy Stretch
a6b1f97525
#16782 : Fix help text on form field
2024-08-30 09:36:27 -04:00
Jeremy Stretch
a09c1667ff
#15106 : Put distance & distance_unit on same line in model form
2024-08-30 08:40:16 -04:00
github-actions
91ad3f22a3
Update source translation strings
2024-08-30 05:02:15 +00:00
Arthur Hanson
2f53dc0095
17302 fix log level filtering
2024-08-29 15:58:13 -04:00
Arthur Hanson
a9a926cc72
17306 fix vlan group utilization
2024-08-29 15:56:06 -04:00
Jeremy Stretch
00d8eb40fc
#11969 : Cleanup ( #17308 )
...
* Shorten choice constant names
* Add filter tests for airflow
2024-08-29 15:47:11 -04:00
Jeremy Stretch
db6246a437
#10500 : Cleanup ( #17305 )
...
* Use MPTTColumn for module bays
* Fix return URLs
* Omit extraneous relationships from nested serializers
* Add note re: v4.1
2024-08-29 15:38:53 -04:00
Jeremy Stretch
9a11191ac5
#7025 : Cleanup
2024-08-29 15:38:16 -04:00
Jeremy Stretch
6f7bf5baf4
Merge branch 'develop' into feature
2024-08-29 10:51:38 -04:00
Jeremy Stretch
31f167d0f9
PRVB
2024-08-29 09:51:06 -04:00
Jeremy Stretch
97cd6b89fd
Release v4.0.10
2024-08-29 09:25:58 -04:00
transifex-integration[bot]
3684e011e6
Updates for project NetBox ( #17296 )
...
* Translate django.po in cs
100% translated source file: 'django.po'
on 'cs'.
* Translate django.po in es
100% translated source file: 'django.po'
on 'es'.
* Translate django.po in de
100% translated source file: 'django.po'
on 'de'.
* Translate django.po in da
100% translated source file: 'django.po'
on 'da'.
* Translate django.po in fr
100% translated source file: 'django.po'
on 'fr'.
* Translate django.po in it
100% translated source file: 'django.po'
on 'it'.
* Translate django.po in uk
100% translated source file: 'django.po'
on 'uk'.
* Translate django.po in pt
100% translated source file: 'django.po'
on 'pt'.
* Translate django.po in zh
100% translated source file: 'django.po'
on 'zh'.
* Translate django.po in ja
100% translated source file: 'django.po'
on 'ja'.
* Translate django.po in nl
100% translated source file: 'django.po'
on 'nl'.
* Translate django.po in tr
100% translated source file: 'django.po'
on 'tr'.
* Translate django.po in pl
100% translated source file: 'django.po'
on 'pl'.
* Translate django.po in ru
100% translated source file: 'django.po'
on 'ru'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2024-08-29 09:21:52 -04:00
bctiemann
a150e5d561
Fixes : #16905 - Allow filtering on Device Status in InventoryItemTable ( #17260 )
...
* Add device_status as filtering option (and configurable column) for InventoryItemTable
* Add device_status to common superclasses for Device Components, and refactor ChoiceFieldColumn to support a "color" callable allowing get_FOO_color behavior to be overridden
* Remove unnecessary 'device_status' in fields
* Add unit tests for device_status
2024-08-29 08:10:30 -04:00
Jeremy Stretch
8282a6ddfe
Fixes #17279 : Do not regenerate key when updating a token via REST API
2024-08-29 07:51:09 -04:00
github-actions
07b1362b5e
Update source translation strings
2024-08-29 05:02:20 +00:00
Jeremy Stretch
e3e351d1f0
Fixes #17278 : Rebuild the tree after bulk editing MPTT-enabled object types
2024-08-28 16:25:36 -04:00
Jeremy Stretch
50839fcb6b
Fixes #16756 : Fix table pagination for custom script results
2024-08-28 16:24:16 -04:00
Arthur Hanson
cac92352ca
17286 fix add member to virtual chassis
2024-08-28 12:29:04 -04:00
Daniel Sheppard
0464dacf7e
Fixes : #16292 - Properly restrict GraphQL queries for querys with pk set ( #17244 )
...
* Fixes : #16292 - Properly restrict GraphQL queries for querys with pk set
* Update netbox/netbox/settings.py
* Apply schema adaptations across all apps
* Extend GraphQL API tests
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-28 12:23:25 -04:00
github-actions
cf62178471
Update source translation strings
2024-08-28 05:02:04 +00:00
Arthur Hanson
7bae448eaf
16733 fix bulk edit/delete buttons with quick search ( #17130 )
...
* 16733 fix bulk edit/delete buttons with quick search
* 16733 fix bulk edit/delete buttons with quick search
* 16733 fix bulk edit/delete buttons with quick search
* Wrap bulk action buttons with .bulk-action-buttons for replacement via HTMX
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-27 16:50:05 -04:00
mcmehrtens
5ebdb7c9d2
Closes #17007 : Center SSO if display name is an empty string
2024-08-27 16:41:40 -04:00
Arthur Hanson
0157ac6c9b
17186 change custom link button color from outline-dark to outline-se… ( #17248 )
...
* 17186 change custom link button color from outline-dark to outline-secondary
* 17186 change choice to default
* 17186 change choice to default
* 17186 change choice to default
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-27 15:08:39 -04:00
Arthur Hanson
d23b9370f6
17219 fix custom validator display if function ( #17247 )
...
* 17219 fix custom validator display if function
* 17219 fix custom validator display if function
* 17219 use custom json encoder
* Fix system config export
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-27 14:19:16 -04:00
Jeremy Stretch
c2d67fa17e
Closes #17256 : Fix translation support in VLAN group scope assignment form ( #17270 )
...
* Closes #17256 : Fix translation support in VLAN group scope assignment form
* Disable scope field if scope type not selected; update label on type change
* Reset selected scope object when changing scope type
2024-08-27 13:58:56 -04:00
Arthur Hanson
4f225b4e56
16670 fix OpenAPI schema generation with nested serializers ( #17078 )
...
* 16670 fix OpenAPI schema generation with nested serializers
* 16670 fix comment
* Add comment; misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-27 12:57:14 -04:00
Arthur Hanson
0238aeec22
16959 Fix filter reset button ( #17154 )
...
* 16959 fix filter reset button
* 16959 fix filter reset button
* Move reset button initialization logic to initFormElements()
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-27 12:01:16 -04:00
Arthur Hanson
3fee28cd5e
16946 return empty queryset if filterset is not valid ( #17015 )
...
* 16946 raise error if filterset is not valid
* 16946 cleanup
* 16946 change to None qs return and add test
* Remove obsolete logic
* Clean up test case
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-27 10:59:14 -04:00
Jeremy Stretch
515d041560
Fixes #17230 : Ensure consistent rendering for all dashboard widget colors
2024-08-27 10:14:07 -04:00
Jonathan Senecal
8bea914163
Update related_objects.html
2024-08-27 09:35:21 -04:00
Jeremy Stretch
420613daed
Fixes #16385 : Restore support for white, gray, and black background colors
2024-08-27 09:12:40 -04:00
github-actions
fd013d6c5c
Update source translation strings
2024-08-27 05:02:05 +00:00
bctiemann
a7f83de8c4
Fixes : #16973 - Resolve $user token to User.id for use in permissions based on custom fields ( #17268 )
...
* Resolve $user token to User.id for use in permissions based on custom fields
* Cleaner type check
* Simplify User object check by updating tokens instead of resolved values
2024-08-26 16:41:58 -04:00
Arthur Hanson
35e2cf9cec
17117 change caret to html entity to fix safari performacne issue ( #17246 )
...
* change caret to html entity to fix safari performacne issue
* change caret to html entity to fix safari performacne issue
* 17117 use material icon
* 17117 use material icon
* 17117 use material icon
* 17117 fix vertical align
* Add comments & tweak padding
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-26 15:36:04 -04:00
bctiemann
1d2ea90fd4
Fixes : #17108 - Update isotime and isodate filters to be timezone-aware ( #17267 )
...
* Update isotime and isodate filters to be timezone-aware for display in templates (particularly Scripts)
* Handle naive datetimes gracefully
2024-08-26 14:37:20 -04:00
bctiemann
dab27695b9
Add styling to rendered-markdown class to clamp height and add scrollbar ( #17237 )
...
* Add clamp_height to the markdown filter which limits max height to 200 (scrollable) on the container div
* Remove clamp_height option, apply scrolling style to all markdown divs inside td's
2024-08-23 09:35:01 -04:00
Jeremy Stretch
91df0c0686
Closes #17221 : Extend ObjectEditView to support HTMX requests
2024-08-23 08:26:19 -04:00
github-actions
d4dd86eb04
Update source translation strings
2024-08-23 05:02:05 +00:00
Brian Tiemann
5bd4fc862d
Add a Devices column with device_count hyperlink (via count_related) to SiteListView
2024-08-22 13:03:49 -04:00
Brian Tiemann
85f8364cd7
Set ImageAttachmentSerializer.image_width and image_height to read_only
2024-08-22 10:59:52 -04:00
bctiemann
8903e4649c
Fixes : #17072 - Make active links of phone and email in Contact Assignments table ( #17233 )
...
* Add linkify_email and apply with linkify_phone to ContactAssignmentTable
* Use EmailColumn instead of linkify_email
2024-08-22 10:57:53 -04:00
Brian Tiemann
38a26a7908
Add "facility" field to LocationFilterForm
2024-08-22 10:56:27 -04:00
Arthur Hanson
fb6c7d7619
17174 add version to plugin catalog ( #17192 )
...
* 17174 add version to plugin catalog
* Retain the created & updated columns for optional use
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-19 12:01:54 -04:00
Arthur Hanson
3412139acc
17193 update logo in Readme ( #17194 )
...
* 17193 update logo in Readme
* 17193 update logo in Readme
* 17193 remove .png
* 17194 favicon, apple
2024-08-19 11:22:40 -04:00
github-actions
e656e2da24
Update source translation strings
2024-08-17 05:03:01 +00:00
Arthur Hanson
c457f01b19
16640 fix JSON custom field save nul ( #16713 )
...
* 16640 fix JSON custom field save nul
* 16640 explicitly check against None
* 16640 convert JSON field from str to dict
2024-08-16 10:29:57 -04:00
Jeremy Stretch
1504fb5ac2
Closes #17173 : Update GraphQL web front end dependencies
2024-08-15 12:05:26 -04:00
Jeremy Stretch
dd3166a4ed
Fixes #17097 : Record static object representation when calling NotificationGroup.notify() ( #17161 )
...
* Fixes #17097 : Record static object representation when calling NotificationGroup.notify()
* Redirect to notifications list when marking as read notifications for deleted objects
* Link to object in notifications dropdown only for non-destructive events
2024-08-15 12:04:19 -04:00
Jeremy Stretch
b6071a80d9
Closes #16574 : Add last_synced time to REST API serializer for data sources
2024-08-15 10:20:21 -04:00
Arthur Hanson
93a13ce311
17169 use config_name for matching in plugin catalog ( #17172 )
...
* 17169 use config_name for matching
* 17169 remove cache buster
2024-08-15 10:18:34 -04:00
Arthur Hanson
122522a625
17163 Fix services list on IPAddress view
2024-08-15 10:06:37 -04:00
Arthur Hanson
a3befd0abe
17159 fix plugin install instructions
2024-08-15 09:59:31 -04:00
Jeremy Stretch
51c3d94725
Merge branch 'develop' into feature
2024-08-15 08:46:54 -04:00
Jeremy Stretch
e3d681be54
Closes #17143 : Deprecate the use of dedicated nested API serializers
2024-08-15 08:00:33 -04:00