Commit Graph

11831 Commits

Author SHA1 Message Date
Jeremy Stretch
f4aa2e9f62 Revert disk space annotation 2023-11-14 14:13:07 -05:00
Arthur
031632162a 8356 review changes 2023-11-08 07:54:56 -08:00
Arthur
0b15732a31 Merge branch 'feature' into 8356-vm-virtual-disk 2023-11-08 07:24:24 -08:00
Jeremy Stretch
8dcbd66de6
Closes #13427: Public model registration (#14152)
* Initial work on #13427

* Clarify documentation

* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
Jeremy Stretch
4ae3f43b6a Merge branch 'feature' into 8356-vm-virtual-disk 2023-11-01 15:22:30 -04:00
Jamie (Bear) Murphy
f6338abf14
Closes #13690: List all objects to be deleted (#14089)
* show objects that would be deleted by cascade

* some items were not showing (eg ips on devices)

* dont include the item being deleted in the list of related items

* Revert "dont include the item being deleted in the list of related items"

This reverts commit 298a7860b2.

* cleanup

- migrate code to use collector directly instead of the NestedObjects wrapper from admin.utils

- adjust object names and text output

* requested adjustments

* remove comma from end of list

* linting

* refactor, add accordion

* migrate to defaultdict, use title for capitalisation of accordian titles

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-01 15:13:45 -04:00
Jeremy Stretch
944008d475
Closes #12135: Prevent the deletion of interfaces with children (#14091)
* Closes #12135: Prevent the deletion of interfaces with children

* Change PROTECT to RESTRICT

* Extend handle_protectederror() to also handle RestrictedError

* Fix string translation

* Update migrations

* Support bulk removal of parent interfaces via UI if all children are included

* Add support for the bulk deletion of restricted objects via REST API
2023-11-01 13:47:14 -04:00
Jeremy Stretch
c2d1988cb3
Closes #14035: Order global search results of equivalent weight by value (#14140) 2023-11-01 11:56:14 -04:00
Jeremy Stretch
77208bf5f3 Fix migrations 2023-10-31 08:41:24 -04:00
Jeremy Stretch
7323668dd0
Closes #13334: Record error message on failed jobs (#14106) 2023-10-31 08:34:57 -04:00
Arthur
442bfc8d0b 8356 fix test 2023-10-30 13:43:00 -07:00
Arthur
e25f58768b 8356 model property 2023-10-30 13:22:37 -07:00
Arthur
c53f8a0ceb 8356 update serializer 2023-10-30 12:44:08 -07:00
Arthur
f869fe6c77 8356 render single disk field 2023-10-30 11:38:40 -07:00
Jeremy Stretch
edc4a35296
Initial work on #10244: Protection rules (#14097) 2023-10-30 14:36:56 -04:00
Jeremy Stretch
c4e765c4a8
Closes #14141: translation cleanup (#14143)
* Translations cleanup

* Tweak variable names; misc string cleanup

* Misc cleanup
2023-10-30 13:38:03 -04:00
Jeremy Stretch
84b4ab1c5e Tweak display of deprecated disk field 2023-10-27 11:12:08 -04:00
Arthur
2b0e2fa923 8356 revert property 2023-10-24 10:45:33 -07:00
Arthur
a3059cef22 8356 move virtual disk size to property 2023-10-24 10:11:22 -07:00
Arthur
23b9dc31d7 8356 add virtual disk list to virtual machine detail view 2023-10-24 09:38:18 -07:00
Arthur
d75fd03488 8356 add total virtual disk size to api 2023-10-24 09:27:39 -07:00
Jeremy Stretch
30ce9edf1c
Closes #13381: Enable plugins to register custom data backends (#14095)
* Initial work on #13381

* Fix backend type display in table column

* Fix data source type choices during bulk edit

* Misc cleanup

* Move backend utils from core app to netbox

* Move backend type validation from serializer to model
2023-10-24 11:35:53 -04:00
Arthur Hanson
7274e75b26
13230 Allow Devices to be excluded from Rack utilization (#14099)
* 13230 add exclusion flag to device type

* 13230 forms, detail views

* 13230 add tests

* 13230 extraneous model field

* 13230 extraneous form field

* Update netbox/dcim/forms/bulk_edit.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* 13230 review feedback

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-24 11:29:24 -04:00
Arthur
b82647dc74 8356 split trans tag 2023-10-24 08:23:55 -07:00
Arthur
4d4acff1c4 8356 review changes 2023-10-24 07:46:15 -07:00
Jeremy Stretch
013a3ed71e Simplify view actions 2023-10-24 08:38:46 -04:00
Arthur Hanson
ae447bd187
12216 Add color to circuit-type and add to SVG rendering (#14098)
* 12216 add color to model

* 12216 add forms, serializers for color

* 12216 color to detail view, add type to svg

* 12216 add color to svg

* 12216 review changes
2023-10-24 08:19:04 -04:00
Arthur
670a53e622 8356 fix test 2023-10-23 13:28:59 -07:00
Arthur
ff68453b07 8356 fix test 2023-10-23 13:20:31 -07:00
Arthur
2f69eddb57 8356 review changes 2023-10-23 13:13:37 -07:00
Arthur
5aee492c7d 8356 deprecate disk field 2023-10-23 13:02:51 -07:00
Arthur
12aac64f7d 8356 fix test 2023-10-23 09:04:46 -07:00
Arthur
2718700c74 8356 review changes 2023-10-23 08:13:50 -07:00
Arthur
7e08c3474a 8356 add todo to remove disk from vm 2023-10-20 14:03:19 -07:00
Arthur
0fdbabfe87 Merge branch 'feature' into 8356-vm-virtual-disk 2023-10-20 14:01:52 -07:00
Arthur
96054f1f07 8356 fix test 2023-10-20 13:44:18 -07:00
Arthur
d33bac62dd 8356 VirtualDiskCreateForm 2023-10-20 13:40:58 -07:00
Jeremy Stretch
450790ab4a
Closes #13550: Refactor view action mappings (#14062)
* Merge actions and action_perms into a single mapping

* Update obsolete permission maps

* Update obsolete action lists

* Normalize empty permission mappings

* Cleanup

* Add deprecation warnings

* Introduce DEFAULT_ACTION_PERMISSIONS constant
2023-10-20 15:08:09 -04:00
Arthur
c119ade4f2 8356 news tests add rename 2023-10-20 11:52:53 -07:00
Arthur
30bcd3636b 8356 api tests 2023-10-20 10:27:27 -07:00
Arthur
20b0d6f976 8356 bulk add fixes 2023-10-20 09:41:26 -07:00
Arthur
2b92660c9e 8356 bulk add on virtualmachine 2023-10-20 09:31:03 -07:00
Arthur
896f5f3016 8356 add components button 2023-10-20 08:41:44 -07:00
Jeremy Stretch
3f40ee5501
Closes #14036: Move extras.plugins to netbox.plugins (#14086)
* Move extras.plugins to netbox.plugins & add deprecation warnings

* Move plugin template tags from extras to utilities

* Move plugins tests from extras to netbox

* Add TODO reminders for v4.0
2023-10-20 11:24:08 -04:00
Arthur
63f91851dc 8356 graphql 2023-10-19 16:11:18 -07:00
Arthur
1da002812a 8356 graphql 2023-10-19 16:10:03 -07:00
Arthur
fc6897d7c2 8356 cleanup 2023-10-19 15:51:48 -07:00
Arthur
3f59539ff3 8356 vm disk tables 2023-10-19 15:21:05 -07:00
Arthur
42abd90c07 8356 migrations 2023-10-19 14:53:28 -07:00
Arthur
b2bb6f68a2 8356 virtual machine tab 2023-10-19 14:46:37 -07:00