Commit Graph

10672 Commits

Author SHA1 Message Date
jeremystretch
d48b15a559 Changelog for #8424, #10491 2022-10-03 13:58:04 -04:00
jeremystretch
e3e3656a70 Closes #10346: Document how to access plugin config parameters 2022-10-03 13:56:46 -04:00
Arthur Hanson
200d295660 8424 device location (#10544)
* 8424 fix merge

* 8424 fix merge

* 8424 fix merge

* 8424 fix merge
2022-10-03 13:55:05 -04:00
Jeremy Stretch
40b6924ae9 Merge pull request #10525 from netbox-community/10491-delete-dependant
10491 improve error message for ProtectedError on contact assignment
2022-10-03 13:27:34 -04:00
jeremystretch
8d6c315513 Fixes #10513: Disable the reassignment of a module to a new device 2022-10-03 11:11:51 -04:00
jeremystretch
679a731f2c Changelog for #9880 2022-09-30 17:30:18 -04:00
Jeremy Stretch
cfe97c2983 Merge pull request #10502 from jsenecal/9880-allow-plugins-to-register-apps
Allow Plugins to register a list of Django apps to be appended to INSTALLED_APPS
2022-09-30 17:28:56 -04:00
jeremystretch
5341f59fa5 Rename plugin_apps to django_apps for clarity 2022-09-30 17:18:12 -04:00
jeremystretch
be18d8e389 Docs cleanup 2022-09-30 17:18:12 -04:00
Jonathan Senecal
addd7fecfb Update plugins development docs 2022-09-30 17:18:12 -04:00
Jonathan Senecal
2d8a1eb975 PEP8 fixes 2022-09-30 17:18:12 -04:00
Jonathan Senecal
53b9330dae Initial implementation
- Allows to specify a list of django-apps to be "installed" alongside the plugin.

(cherry picked from commit 6c7296200d756d2acbba3a589a7759f3a690cc48)
2022-09-30 17:18:12 -04:00
Jonathan Senecal
ad1d7b3ade Tidy-up imports and typing
(cherry picked from commit adee5cf6a8856ceda0170a4382cec8fd784be93b)
2022-09-30 17:18:12 -04:00
Patrick Hurrelmann
16c33475d7 Fixes: #10465 Format all remaining displayed rackunits with floatformat (#10481)
* Fixes: #10465 Try to finish #10268 and format all remaining displayed rackunits with floatformat

* #10465: PEP8 fix

Co-authored-by: Patrick Hurrelmann <patrick.hurrelmann@nfon.com>
Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-30 17:18:12 -04:00
jeremystretch
4a4fea40f5 Merge branch 'develop' into feature 2022-09-30 17:17:18 -04:00
jeremystretch
dc85a56118 Changelog for #9654, #10348 2022-09-30 16:37:07 -04:00
Arthur Hanson
57cbd5243d 9654 device weight (#10448)
* 9654 add weight fields to devices

* 9654 changes from code review

* 9654 change _abs_weight to grams

* Resolve migrations conflict

* 9654 code-review changes

* 9654 total weight on devices

* Misc cleanup

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-09-30 16:31:04 -04:00
Arthur Hanson
84f997dff4 10348 add decimal custom field (#10422)
* 10348 add decimal custom field

* 10348 fix tests

* 10348 add documentation

* Rearrange custom fields to be ordered consistently

* Rename number_field to integer_field for clarity

* Clean up validation logic

* Apply suggested changes from PR

* Store decimal custom field values natively

* Fix filter test

* Update custom field model migrations to use new encoder

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-30 16:03:24 -04:00
jeremystretch
25f59316f0 Closes #10529: Run validation on each value of a multi-value filter 2022-09-30 15:05:13 -04:00
Arthur
44f9565c4d 10491 improve error message for ProtectedError on contact assignment 2022-09-30 09:09:21 -07:00
jeremystretch
de1bd6e1b6 Add workflow_dispatch event 2022-09-29 12:36:10 -04:00
jeremystretch
abd775b899 Move permissions block to root 2022-09-29 12:17:10 -04:00
jeremystretch
708b840269 Bump stale to v6 2022-09-29 12:00:44 -04:00
jeremystretch
1777ae6586 Tweak workflow permissions 2022-09-29 11:59:15 -04:00
Alex
23b7f5e9eb GitHub Workflows security hardening (#10456)
* build: harden lock.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden stale.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden ci.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-29 11:41:33 -04:00
jeremystretch
9327341ad1 Changelog for #9045, #9046, #9071 2022-09-28 17:18:31 -04:00
Jeremy Stretch
5f550fecbe Merge pull request #10441 from netbox-community/9071-plugin-menu
9071 add header to plugin menu
2022-09-28 17:08:10 -04:00
Jeremy Stretch
4d40a52ccd Merge pull request #10488 from netbox-community/9249-device-vm-names
Closes #9249: Ignore case for device/VM names
2022-09-28 17:05:57 -04:00
jeremystretch
3f9a697516 Add test for plugin menu registration 2022-09-28 16:57:40 -04:00
jeremystretch
222ee23c00 Add documentation for PluginMenu 2022-09-28 16:44:16 -04:00
jeremystretch
0ed28ab36c Enable plugins to create root-level navigation menus 2022-09-28 16:08:03 -04:00
jeremystretch
8ba74fa337 Refactor navigation resources and menu 2022-09-28 15:56:09 -04:00
Arthur Hanson
90f8b44f72 #9045 #9046 - remove legacy fields from Provider (#10377)
* #9045 - remove legacy fields from Provider

* Add safegaurd for legacy data to migration

* 9045 remove fields from forms and tables

* Update unrelated tests to use ASN model instead of Provider

* Fix migrations collision

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-28 15:22:19 -04:00
jeremystretch
544d3bbbfb Fixes #10496: Use page.canonical_url to identify ReadTheDocs builds 2022-09-28 09:30:38 -04:00
jeremystretch
6693570832 Changelog for #9249 2022-09-27 16:52:14 -04:00
jeremystretch
f4b2f87f14 Update device/VM name filters to be case-insensitive 2022-09-27 16:48:39 -04:00
jeremystretch
d6931e8160 Device/VM unique constraints ignore case for name field 2022-09-27 16:47:56 -04:00
Jeremy Stretch
9e6edf3e03 Merge pull request #10368 from netbox-community/10361-unique-constraints
Closes #10361: Migrate from unique_together to UniqueConstraints
2022-09-27 15:55:44 -04:00
jeremystretch
a6a8f609bd Use templated app & model names for all unique constraints 2022-09-27 15:44:38 -04:00
jeremystretch
8a2872641c Replace unique_together with UniqueConstraints 2022-09-27 15:35:24 -04:00
jeremystretch
70a612d782 Remove custom validate_unique() methods 2022-09-27 14:28:21 -04:00
jeremystretch
8019761364 Fixes #10408: Fix validation when attempting to add redundant contact assignments 2022-09-27 13:11:57 -04:00
jeremystretch
48df2874c7 Changelog for #10465, #10480 2022-09-27 11:53:11 -04:00
Patrick Hurrelmann
49219e480c Fixes: #10465 Format all remaining displayed rackunits with floatformat (#10481)
* Fixes: #10465 Try to finish #10268 and format all remaining displayed rackunits with floatformat

* #10465: PEP8 fix

Co-authored-by: Patrick Hurrelmann <patrick.hurrelmann@nfon.com>
Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-27 11:24:19 -04:00
Jeremy Stretch
640029f703 Merge pull request #10482 from phurrelmann/10480-fix-link-target-on-cable-svg
Fixes: #10480 Fix link-target on cable-trace svg
2022-09-27 11:07:14 -04:00
jeremystretch
ecb31214cb Changelog & cleanup for #9892 2022-09-27 09:55:35 -04:00
Jeremy Stretch
6382958b60 Merge pull request #10424 from netbox-community/9892-fhrpgroup-name
9892 fhrpgroup name
2022-09-27 09:48:11 -04:00
Patrick Hurrelmann
88185a46fd Fixes: #10480 Fix link-target on cable-trace svg to open link in the same window. 2022-09-27 13:23:51 +02:00
Arthur
1baf35c9dc 9071 add documentation 2022-09-26 14:41:46 -07:00
Arthur
6bf86945fc 9071 fix test 2022-09-26 14:23:53 -07:00