Commit Graph

12114 Commits

Author SHA1 Message Date
Arthur
0387cb0a48 9856 update types 2024-02-26 11:04:29 -08:00
Arthur
82c08d9820 9856 update types 2024-02-26 09:46:03 -08:00
Arthur
ce003b2b1c 9856 update types 2024-02-26 08:20:32 -08:00
Arthur
6bb9d68f60 9856 update types 2024-02-23 15:56:21 -08:00
Arthur
69134dbb50 9856 update types 2024-02-23 14:36:41 -08:00
Arthur
a5445bb61a 9856 _name to types 2024-02-22 16:56:54 -08:00
Arthur
d4812b28fd 9856 type updates 2024-02-22 16:35:24 -08:00
Arthur
3c24cf97b6 Merge branch 'feature' into 9856-strawberry-2 2024-02-15 16:04:45 -08:00
Arthur
a0d0ab1e78 9856 misc fixes 2024-02-15 16:03:47 -08:00
Arthur
ff03abf23e 9856 _name 2024-02-15 15:33:51 -08:00
Arthur
c3cbefc625 9856 GFK working 2024-02-15 14:54:29 -08:00
Arthur
1aa5b0d5a1 9856 GFK working 2024-02-15 14:54:04 -08:00
Jeremy Stretch
7abb2b2ab5
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
d37414d69a 9856 update types 2024-02-15 11:06:41 -08:00
Arthur
cc5703c9dd Merge branch 'feature' into 9856-strawberry-2 2024-02-14 10:43:21 -08:00
Jeremy Stretch
b3f25a400b
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
72720354df Update v4.0 release notes 2024-02-13 16:43:51 -05:00
Jeremy Stretch
20824ceb25
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
4fab68a138 9856 fixes to circuits type specifiers 2024-02-13 10:28:26 -08:00
Arthur
99b01981d4 9856 fixes to circuits type specifiers 2024-02-13 08:32:21 -08:00
Arthur
eca0966d92 9856 cleanup 2024-02-12 13:05:57 -08:00
Arthur
7779e87ff3 9856 cleanup 2024-02-12 13:01:27 -08:00
Arthur
a171a02844 Merge branch 'feature' into 9856-strawberry-2 2024-02-12 11:24:10 -08:00
Jeremy Stretch
f41105d5e3 Remove unused Javascript 2024-02-09 16:30:14 -05:00
Jeremy Stretch
25723aebe0 Closes #15100: Remove obsolete NullableCharField class 2024-02-09 15:57:42 -05:00
Jeremy Stretch
d8c6dad9d9 Closes #15099: Remove legacy device_role & device_role_id filters for devices 2024-02-09 15:55:03 -05:00
Jeremy Stretch
64039a8833 #14917: Remove obsolete slim-select styling 2024-02-09 14:51:21 -05:00
Jeremy Stretch
d63e1dacbf
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
Arthur
6d7678f017 9856 fix old decorator 2024-02-07 16:45:13 -08:00
Arthur
48b0cdd04a 9856 virtualization, vpn, wireless schema 2024-02-07 16:07:15 -08:00
Arthur
d3fc026b5d 9856 ipam and tenant schema 2024-02-07 15:43:29 -08:00
Arthur
ed1e1ae939 9856 extras schema 2024-02-07 09:03:22 -08:00
Arthur Hanson
11697d19a6
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
460b57dbf7 9856 dcim schema 2024-02-07 07:32:10 -08:00
Arthur
cdcaa9055e 9856 core schema 2024-02-06 14:52:29 -08:00
Arthur
fb4d63f8a2 9856 update strawberry types 2024-02-06 14:02:55 -08:00
Arthur
663af64ec1 9856 update strawberry types 2024-02-06 13:52:41 -08:00
Arthur
5e40ebd331 9856 merge feature 2024-02-06 11:07:38 -08:00
Jeremy Stretch
f63d23872f Update release notes 2024-02-05 15:00:20 -05:00
Jeremy Stretch
74e67afa41 Merge branch 'develop' into feature 2024-02-05 14:38:26 -05:00
Jeremy Stretch
28aee9b69a PRVB 2024-02-05 14:12:50 -05:00
Jeremy Stretch
426805cd24
Merge pull request #15048 from netbox-community/develop
Release v3.7.2
2024-02-05 14:10:13 -05:00
Jeremy Stretch
a331ba65cb Release v3.7.2 2024-02-05 13:56:52 -05:00
Smixi
4ba0ec78cf
fix: performance for get__available_ips for prefix (#15041) 2024-02-05 13:30:59 -05:00
Arthur Hanson
317bef6796
12795 custom user model (#15005)
* 12795 users.User migration

* 12795 users.User migration

* 12795 review changes

* 12795 fix user model registration

* 12795 fix user model registration

* 12795 update migration

* 12795 update migration

* 12795 update migration

* 12795 add comment to migration db_table

* Tweak import to avoid class name collision

* 12795 add comment for _register_features requirement

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-05 13:24:03 -05:00
Jeremy Stretch
93edf74f7c
Fixes #14945: Fix "select all" button for device type components (#15027) 2024-02-05 13:05:25 -05:00
Jeremy Stretch
8a77ec70f2 Fixes #15015: Pre-populate assigned tenant when allocating next available IP address under prefix view 2024-02-05 12:59:50 -05:00
Daniel Sheppard
0eba3acdb8
Closes: #14570 - Remove extra query for job under scripts and reports detailed view (#14998)
* Closes: #14570 - Remove extra query for job under scripts and reports detailed view

* Add report.result back as it is used by report.html
2024-02-05 12:13:03 -05:00
Daniel Sheppard
32083e58c0
Fixes: #14840 - Forces API to use django user model instead of proxy model (#14881)
* Fixes: #14840 - Forces API to use proxy model

* Update tests to use proxy model

* Revert "Update tests to use proxy model"

This reverts commit 1d784cfe5d.

* Revert "Fixes: #14840 - Forces API to use proxy model"

This reverts commit df85cc967c.

* More realistic change to resole issue with netboxusers-list

* Revert "More realistic change to resole issue with netboxusers-list"

This reverts commit 15df8082aa.

* Fixes: #14840 - Better fix for netboxusers-list

* Swap model for serializer from proxy model
2024-02-05 11:57:30 -05:00
Jeremy Stretch
5d9311eecf
Closes #12325: Disable the Django admin UI by default (#15008)
* Disable the Django admin UI by default

* Remove outdated references to the admin UI

* Update tests
2024-02-05 11:44:52 -05:00