Commit Graph

12370 Commits

Author SHA1 Message Date
Arthur
ae4605622c 9856 _name 2024-02-15 15:33:51 -08:00
Arthur
1734a03074 9856 GFK working 2024-02-15 14:54:29 -08:00
Arthur
0d70dbc387 9856 GFK working 2024-02-15 14:54:04 -08:00
Abhimanyu Saharan
b694314ccc added missing import #15058 2024-02-16 01:20:54 +05:30
Jeremy Stretch
aee02c168c Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152)
* Introduce RelatedObjectCountField

* Introduce get_annotations_for_serializer() and enable dynamic annotations

* Add RelatedObjectCountFields to serializers; remove static annotations from querysets

* Remove annotations cleanup logic from BriefModeMixin

* Annotate type for RelatedObjectCountField

* Remove redundant field on TagSerializer

* Add missing reverse relationship for power feeds to rack

* Refactor RelatedObjectCountField to take a single relationship name
2024-02-15 14:49:27 -05:00
Arthur
c7d4711419 9856 update types 2024-02-15 11:06:41 -08:00
Arthur
edbc61729d Merge branch 'feature' into 9856-strawberry-2 2024-02-14 10:43:21 -08:00
Jeremy Stretch
214c91a78e Closes #15087: Support for specifying a subset of API serializer fields (#15122)
* Enable dynamic field inclusion for REST API serializers

* Recurse through nested serializer when resolving prefetches

* Remove obsolete calls to prefetch_related() for API views

* Remove support for brief_prefetch_fields viewset attribute

* Rename query parameter

* Fixes #15133: Fix FHRP group representation on assignments endpoint under brief mode (#15134)

* Fixes #15133: Fix FHRP group representation on assignments endpoint under brief mode

* Update API test

* Restore get_queryset() on BriefModeMixin, minus prefetch logic

* get_prefetches_for_serializer() should reference serializer field source if set
2024-02-14 09:28:37 -05:00
Jeremy Stretch
ef7b167123 Fixes #15127: Add missing group column on tunnels table 2024-02-14 09:27:01 -05:00
Jeremy Stretch
c26f10c2b4 Update v4.0 release notes 2024-02-13 16:43:51 -05:00
Jeremy Stretch
e347863e39 Changelog for #15059, #15067, #15091, #15115, #15126, #15133 2024-02-13 16:39:41 -05:00
Jeremy Stretch
f4a5a8cb33 Closes #13283: Add context to dropdown options (#15104)
* Initial work on #13283

* Enable passing TomSelect HTML template attibutes on DynamicModelChoiceField

* Merge disabled_indicator into option_attrs

* Add support for annotating a numeric count on dropdown options

* Annotate parent object on relevant fields

* Improve rendering of color options

* Improve rendering of color options

* Rename option_attrs to context

* Expose option context on ObjectVar for custom scripts

* Document dropdown context variables
2024-02-13 16:31:17 -05:00
Arthur
1d3c702947 9856 fixes to circuits type specifiers 2024-02-13 10:28:26 -08:00
Jeremy Stretch
8e79baafb0 Fixes #15059: Correct IP address count link in VM interfaces table 2024-02-13 12:16:11 -05:00
Jeremy Stretch
9133e710f9 Fixes #15067: Fix uncaught exception when attempting invalid device bay import 2024-02-13 12:15:15 -05:00
Arthur
7c620721a8 9856 fixes to circuits type specifiers 2024-02-13 08:32:21 -08:00
Jeremy Stretch
e6f4d91302 Fixes #15133: Fix FHRP group representation on assignments endpoint under brief mode (#15134)
* Fixes #15133: Fix FHRP group representation on assignments endpoint under brief mode

* Update API test
2024-02-13 11:29:53 -05:00
Jeremy Stretch
b374afcd55 Fixes #15091: Fix initial active tab when editing an L2VPN termination 2024-02-13 11:27:50 -05:00
Jeremy Stretch
23fbcb08ea Fixes #15126: group field should be optional when creating VPN tunnel via REST API 2024-02-13 09:55:33 -05:00
Jeremy Stretch
028ae9d85c Fixes #15115: Fix unhandled exception with invalid permission constraints 2024-02-13 09:55:07 -05:00
Arthur
c90189d7c6 9856 cleanup 2024-02-12 13:05:57 -08:00
Arthur
d3da808bb1 9856 cleanup 2024-02-12 13:01:27 -08:00
Arthur
6748d71e54 Merge branch 'feature' into 9856-strawberry-2 2024-02-12 11:24:10 -08:00
teapot
ba899afbac Fixes #15111: Correct typo in error message 2024-02-12 08:44:22 -05:00
Ikko Eltociear Ashimine
442fddbebb Update remote-authentication.md
Seperator -> Separator
2024-02-12 08:43:11 -05:00
Jeremy Stretch
3cf4464ed0 Remove unused Javascript 2024-02-09 16:30:14 -05:00
Jeremy Stretch
19153f88ca Closes #15100: Remove obsolete NullableCharField class 2024-02-09 15:57:42 -05:00
Jeremy Stretch
f732aa9a08 Closes #15099: Remove legacy device_role & device_role_id filters for devices 2024-02-09 15:55:03 -05:00
Jeremy Stretch
83e290c432 #14917: Remove obsolete slim-select styling 2024-02-09 14:51:21 -05:00
Jeff Gehlbach
d012f7d33c Merge pull request #15053 from aharrisson/develop
Fix custom script documentation example script
2024-02-09 11:19:51 -05:00
Jeremy Stretch
4f01d8f70e Closes #14917: Replace slim-select with tom-select (#15080)
* Experimenting

* Remove testing resources

* Replace ApiSelect with TomSelect

* Add color support

* Add clear button

* Clear cached options when searching dynamic selects

* Add support for static parameters

* Refactor TomSelect implementation

* Add dynamic parameter support

* Limit number of options to 100

* Remove redundant api_url definitions for user model

* Add support for disabled indicator

* Remove obsolete value-field attr on dynamic select widgets

* Remove obsolete fetch_trigger kwarg from dynamic model choice widgets

* Remove obsolete empty_label kwarg from dynamic model choice widgets

* Add support for API path variables

* Add support for setting a 'null' option

* Annotate depth for recursive hierarchies

* Misc cleanup

* Remove obsolete APISelect code

* Remove slim-select & just-debounce-it

* Clean up type validation

* Closes #14237: Clear child selections on change to parent selection

* Use an MD icon for the clear button

* Use an MD icon for the clear button

* Explain why noUnusedParameters is disabled
2024-02-08 15:07:04 -05:00
Jeremy Stretch
c0598e9fc3 Fixes #15070: Fix inclusion of config_template field on REST API serializer for virtual machines 2024-02-08 09:10:24 -05:00
Jeremy Stretch
3d54836528 Fixes #15084: Fix "add export template" link 2024-02-08 08:47:16 -05:00
Arthur
abf4a65d88 9856 fix old decorator 2024-02-07 16:45:13 -08:00
Arthur
1fc288a880 9856 virtualization, vpn, wireless schema 2024-02-07 16:07:15 -08:00
Arthur
4f7e744b6d 9856 ipam and tenant schema 2024-02-07 15:43:29 -08:00
Arthur
1777ecaa5c 9856 extras schema 2024-02-07 09:03:22 -08:00
Arthur Hanson
fda9518740 12510 Merge Scripts and Reports (#14976)
* 12510 move reports to use BaseScript

* 12510 merge report into script view

* 12510 add migration for job report to script

* 12510 update templates

* 12510 remove reports

* 12510 cleanup

* 12510 legacy jobs

* 12510 legacy jobs

* 12510 fixes

* 12510 review changes

* 12510 review changes

* 12510 update docs

* 12510 review changes

* 12510 review changes

* 12510 review changes

* 12510 review changes

* 12510 main log results to empty string

* 12510 move migration

* Introduce an internal log level for debug to simplify Script logging

* Misc cleanup

* Remove obsolete is_valid() method

* Reformat script job data (log, output, tests)

* Remove ScriptLogMessageSerializer

* Fix formatting of script logs

* Record a timestamp with script logs

* Rename _current_method to _current_test

* Clean up template

* Remove obsolete runreport management command

* Misc cleanup & refactoring

* Clean up template

* Clean up migration

* Clean up docs

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-07 12:02:09 -05:00
Arthur
4839d55726 9856 dcim schema 2024-02-07 07:32:10 -08:00
Arthur
8452b08326 9856 core schema 2024-02-06 14:52:29 -08:00
Arthur
3442cce213 9856 update strawberry types 2024-02-06 14:02:55 -08:00
Arthur
0edbe7ea0c 9856 update strawberry types 2024-02-06 13:52:41 -08:00
Arthur
9f85acf4da 9856 merge feature 2024-02-06 11:07:38 -08:00
Anders Harrisson
cdb8d9c0ec Fix custom script documentation example script
The example script still uses the old "role" field when creating
a Device object.

Fixes #15052
2024-02-06 12:42:17 +01:00
Jeremy Stretch
1736ac00b1 Update release notes 2024-02-05 15:00:20 -05:00
Jeremy Stretch
f76e3ce68c Merge branch 'develop' into feature 2024-02-05 14:38:26 -05:00
Jeremy Stretch
7f53394542 PRVB 2024-02-05 14:12:50 -05:00
Jeremy Stretch
e93308d2d7 Merge pull request #15048 from netbox-community/develop
Release v3.7.2
2024-02-05 14:10:13 -05:00
Jeremy Stretch
86448adf7a Release v3.7.2 2024-02-05 13:56:52 -05:00
Smixi
c00a449094 fix: performance for get__available_ips for prefix (#15041) 2024-02-05 13:30:59 -05:00