Commit Graph

12211 Commits

Author SHA1 Message Date
Jeremy Stretch
5c2f7fa59c Closes #15238: Include description field in brief mode 2024-02-26 11:39:31 -05:00
Arthur
23a42dc8ce 9856 update types 2024-02-26 08:20:32 -08:00
Arthur
cd468a9298 9856 update types 2024-02-23 15:56:21 -08:00
Arthur
e9fdc0b156 9856 update types 2024-02-23 14:36:41 -08:00
Jeremy Stretch
c9a62ed6bd Closes #15235: Use primary serializers for REST API "brief" mode (#15246)
* Use primary serializers for brief mode

* Remove BriefModeMixin

* Correct ModuleBayTest brief_fields (see #15243)
2024-02-23 14:21:25 -05:00
Arthur Hanson
0555d991bf Closes #14438: Database representation of scripts
- Introduces the Script model to represent individual Python classes within a ScriptModule file
- Automatically migrates jobs & event rules

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-23 08:27:37 -05:00
Arthur
90cd9eb0b4 9856 _name to types 2024-02-22 16:56:54 -08:00
Arthur
725ea13ca2 9856 type updates 2024-02-22 16:35:24 -08:00
Jeremy Stretch
19f6b21b2a #14917: Nullify maxOptions for static select fields 2024-02-22 15:49:41 -05:00
Jeremy Stretch
703791326d Merge branch 'develop' into feature 2024-02-21 16:24:23 -05:00
Jeremy Stretch
9dea6dfdaf PRVB 2024-02-21 16:04:04 -05:00
Jeremy Stretch
0f29bb6a99 Merge pull request #15222 from netbox-community/develop
Release v3.7.3
2024-02-21 16:01:21 -05:00
Jeremy Stretch
a7663fbc02 Release v3.7.3 2024-02-21 15:46:41 -05:00
Jeremy Stretch
c79f0634a1 Update translations 2024-02-21 15:24:50 -05:00
Jeremy Stretch
81198a402c Update translation strings 2024-02-21 14:49:09 -05:00
Jeremy Stretch
a5f56c4f4e Changelog for #14064, #14689, #14966, #15101, #15185 2024-02-21 14:46:10 -05:00
Jeremy Stretch
fd7bccb2d9 Closes #15042: Move model registration logic to AppConfigs (#15203)
* Closes #15042: Move model registration logic to AppConfigs

* Refactor register_model() to accept multiple models
2024-02-21 14:22:13 -05:00
Abhimanyu Saharan
9682236373 fixed location import #14064 2024-02-21 14:10:10 -05:00
Jeremy Stretch
2c60d78fb2 #15094: Fix missing format variable 2024-02-21 14:06:01 -05:00
Abhimanyu Saharan
a02572bb3b fixed json field save issue #14689 2024-02-21 14:00:34 -05:00
Abhimanyu Saharan
fd608d69ba Fixed error display on parent import form (#15213)
* fixed error display on parent import form #15185

* Rename parent_form; handle errors assigned to __all__

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-21 13:50:09 -05:00
Abhimanyu Saharan
19788d1d31 Fixes the rackelevation api schema (#15214)
* fixes the rackelevation api schema #15101

* fixes the rackelevation api schema #15101
2024-02-21 13:39:32 -05:00
Abhimanyu Saharan
95e5caebc5 Added index on cachevalue (#15199)
* added index on cachevalue #14966

* Update netbox/extras/models/search.py

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

* fixed migration

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-21 13:20:55 -05:00
Arthur
e92a25d237 15211 fix typo on DeviceType detail view 2024-02-21 12:10:35 -05:00
Jeremy Stretch
378e51bf33 Changelog for #14405, #14587, #14946, #15090. #15174, #15177, #15184, #15192 2024-02-20 16:29:46 -05:00
Arthur Hanson
9ac4be7379 14405 render link_peer to CSV (#15201)
* 14405 render link_peer to csv

* 14405 review changes
2024-02-20 16:24:14 -05:00
Zacho
58f28f44dc Added Last Login to user/profile GUI views and the /users/user API output (#15198)
* Added Last Login to user/profile GUI and user api output

* Update netbox/templates/account/profile.html

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

* Update netbox/templates/account/profile.html

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

* Update netbox/templates/users/user.html

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

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 15:43:49 -05:00
Arthur
3775e5b546 15192 fix config revision if no revisions 2024-02-20 14:28:04 -05:00
Abhimanyu Saharan
5fa0d0d163 added validation error for script and report constraint #15174 2024-02-20 14:15:27 -05:00
Abhimanyu Saharan
83f8d610bc Added oidc to auth list (#15204)
* added oidc to auth list #14587

* Alphabetic ordering

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 14:11:50 -05:00
Abhimanyu Saharan
51fb76a31a removed associate_by_email #14946 2024-02-20 14:10:47 -05:00
Abhimanyu Saharan
fbaed07250 Added allow_null for front and rear image on api (#15200)
* added allow_null for front and rear image on api #15184

* added allow_null for front and rear image on api #15184
2024-02-20 13:53:56 -05:00
Jeremy Stretch
cebd26c88e Fixes #15090: Run deletion protection rules prior to enqueueing events 2024-02-20 13:22:55 -05:00
Jeremy Stretch
b8cb391084 Add link to netbox-docker repo 2024-02-20 11:36:27 -05:00
Jeremy Stretch
f44dece501 Changelog for #14058, #14079, #14952, #15127 2024-02-20 09:45:58 -05:00
Arthur Hanson
16712ad8d9 15094 Add missing gettext to error strings for internationalization (#15155)
* 15049 add missing gettext to error strings

* 15049 add missing gettext to error strings

* 15094 review change

* 15094 review change

* Formatting cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:44:02 -05:00
Daniel Sheppard
233ebe4327 Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer (#15183)
* Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer

* Apply suggestions from code review

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

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:28:15 -05:00
Jeremy Stretch
807ed8e3b0 Fixes #14079: Explicitly remove M2M assignments to objects being deleted to ensure change logging 2024-02-16 11:42:27 -05:00
Jeremy Stretch
e263e2eaa3 Fixes #14952: Update existing AutoSyncRecord when changing the data file of an auto-synced object 2024-02-16 11:38:47 -05:00
Arthur
00d27f2e4c Merge branch 'feature' into 9856-strawberry-2 2024-02-15 16:04:45 -08:00
Arthur
776d0f2a65 9856 misc fixes 2024-02-15 16:03:47 -08:00
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