Arthur
7c66a6aba8
9856 test fixes
2024-03-06 15:25:06 -08:00
Arthur
77eb1018e8
9856 test fixes
2024-03-06 15:00:48 -08:00
Arthur
5ff2c1806d
9856 test fixes
2024-03-06 14:34:51 -08:00
Arthur
1052ea5dd4
9856 test fix vpn
2024-03-06 14:00:53 -08:00
Arthur
0ca46e349f
9856 test fixes
2024-03-06 13:43:40 -08:00
Arthur
888d9ecec6
9856 test fixes
2024-03-06 13:27:01 -08:00
Jeremy Stretch
e5ee8523ef
Misc cleanup
2024-03-06 16:16:29 -05:00
Jeremy Stretch
0c22e38006
Re-enable error handling in middleware (disabled for testing)
2024-03-06 16:16:29 -05:00
Jeremy Stretch
40a654b21e
Use singular names for M2M field filters
2024-03-06 15:43:33 -05:00
Jeremy Stretch
5552f2a7dd
Rename ContentTypes REST API endpoint & resources
2024-03-06 15:30:59 -05:00
Arthur
a5aad5359d
9856 test fixes
2024-03-06 10:35:44 -08:00
Arthur
aa7c00ec32
9856 circuits graphql tests working
2024-03-06 10:21:23 -08:00
Arthur
2f719269e8
9856 single item query for schema
2024-03-06 09:53:46 -08:00
Arthur
7c289aebc7
9856 fix OrganizationalObjectType
2024-03-06 07:52:42 -08:00
Arthur
0312ec3249
Merge branch 'feature' into 9856-strawberry-2
2024-03-06 07:43:16 -08:00
Arthur
f8748011f3
9856 GraphQLView
2024-03-05 16:27:34 -08:00
Arthur
14f04453bb
9856 GraphQLView
2024-03-05 08:30:34 -08:00
Jeremy Stretch
6f6d483ca5
Merge branch 'feature' into 15277-object-types
2024-03-05 08:52:07 -05:00
Arthur
13bf2c1940
9856 merge feature
2024-03-04 14:18:58 -08:00
Jeremy Stretch
cd74e040c1
Merge branch 'feature' into 15278-primary-nested-serializers
2024-03-04 16:42:36 -05:00
Jeremy Stretch
239d21870b
Closes #14871 : Complete work on UI cleanup ( #15341 )
...
* Fix left padding of login button in top menu
* Relocate "add" buttons for embedded object tables
* Remove unused data template block & getNetboxData() utility function
* Remove bottom margin from last <p> element in rendered Markdown inside a table cell
* Prevent TomSelect from initializing on <select> elements with a size
* Fix styling of dropdown menu button for circuit commit rate
* Change .color-block to display: inline-block
* Delete unused static asset
* Improve contrast between menu group headings & items
* Remove custom color for attr-table row headings
* Fix border color of copy-to-clipboard button
* Fix toast text color in dark mode
* Fix rack elevation label/image toggles
* Increase border radius for small buttons
* Fix object selector
2024-03-04 15:55:01 -05:00
Jeremy Stretch
4533c8dae0
Rename sequences for ObjectType M2M tables
2024-03-04 12:17:32 -05:00
Jeremy Stretch
0e89f46601
#15277 : Clean up references to object types in templates
2024-03-04 11:49:39 -05:00
Jeremy Stretch
0419a69ae8
Clean up outdated references to ContentType
2024-03-04 10:46:34 -05:00
Jeremy Stretch
d538010069
Add GraphQL type for ObjectType
2024-03-04 10:06:28 -05:00
Jeremy Stretch
01ee9c87b8
Update ObjectPermission.object_types to reference ObjectType
2024-03-04 09:52:45 -05:00
Jeremy Stretch
570f64784f
Update Tag.object_types to reference ObjectType
2024-03-04 09:51:32 -05:00
Jeremy Stretch
5f43eabab1
Rename ContactAssignment.content_type to object_type
2024-03-04 08:33:44 -05:00
Jeremy Stretch
e0165539b3
Rename ImageAttachment.content_type to object_type
2024-03-04 08:33:44 -05:00
Jeremy Stretch
ce6b2666a9
Rename SavedFilter.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
bef17e5a95
Rename ExportTemplate.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
e51d71d7e6
Rename EventRule.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
ba514aceac
Rename CustomLink.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
54b9d1b3f2
Disconnect search backend during test to avoid discrepancy with ContentTypes on transaction rollback
2024-03-04 08:33:44 -05:00
Jeremy Stretch
aeeec284a5
Rename CustomField.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Jeremy Stretch
c6a3fc2407
#12795 : Introduce a custom Group model ( #15304 )
...
* Rename sequences & indexes after renaming users table
* Migrate from auth.Group to a custom group model
* Delete original groups from auth_group table
* Update object & multi-object custom fields referencing the Group model
* Fix ContentType resolution
* Clean up obsolete logic for view/serializer resolution
2024-03-04 08:29:53 -05:00
Jeremy Stretch
709eac6b98
Closes #15292 : Remove obsolete device_role attribute from Device model
2024-03-01 11:31:47 -05:00
Jeremy Stretch
3bd28e2efe
Improve serializer initialization performance
2024-03-01 10:18:58 -05:00
Jeremy Stretch
7008ffe6d8
Rename 'requested_fields' kwarg to 'fields' on BaseSerializer
2024-02-27 17:01:29 -05:00
Jeremy Stretch
78e284c14f
Initialize dynamically-resolved serializers with nested=True
2024-02-27 14:56:36 -05:00
Jeremy Stretch
ca56c8b9ef
Add dynamic nesting support to SerializedPKRelatedField
2024-02-27 14:00:42 -05:00
Jeremy Stretch
c382ba0ae0
Refactor REST API serializers to avoid circular imports
2024-02-27 13:26:43 -05:00
Arthur
497de46ad9
9856 update types
2024-02-26 14:13:44 -08:00
Jeremy Stretch
c146f5e1b5
Replace nested serializers with primary serializers where possible
2024-02-26 16:49:30 -05:00
Arthur
44f4d60f5d
9856 update types
2024-02-26 12:57:53 -08:00
Arthur
3e284c59d8
9856 update types
2024-02-26 11:26:50 -08:00
Arthur
4d0d19bb76
9856 update types
2024-02-26 11:18:03 -08:00
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
Jeremy Stretch
d042e6f69d
Closes #15238 : Include description field in brief mode
2024-02-26 11:39:31 -05: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
Jeremy Stretch
3f3bcc5eb5
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
ca2ee436a0
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
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
Jeremy Stretch
7e7e5d5eb0
#14917 : Nullify maxOptions for static select fields
2024-02-22 15:49:41 -05:00
Jeremy Stretch
3ddacf4b88
Merge branch 'develop' into feature
2024-02-21 16:24:23 -05:00
Jeremy Stretch
d7e7137582
PRVB
2024-02-21 16:04:04 -05:00
Jeremy Stretch
503c78b0db
Release v3.7.3
2024-02-21 15:46:41 -05:00
Jeremy Stretch
cb05288c4d
Update translations
2024-02-21 15:24:50 -05:00
Jeremy Stretch
0373b8aade
Update translation strings
2024-02-21 14:49:09 -05:00
Jeremy Stretch
5f159795dd
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
8571f428b1
fixed location import #14064
2024-02-21 14:10:10 -05:00
Jeremy Stretch
276a73f820
#15094 : Fix missing format variable
2024-02-21 14:06:01 -05:00
Abhimanyu Saharan
d8fb5a819f
fixed json field save issue #14689
2024-02-21 14:00:34 -05:00
Abhimanyu Saharan
f14eac58e4
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
1780acc8a6
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
a3b8262ab0
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
a1ee02cdf0
15211 fix typo on DeviceType detail view
2024-02-21 12:10:35 -05:00
Arthur Hanson
17a321a340
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
cf3969bc6c
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
9b9afdcf79
15192 fix config revision if no revisions
2024-02-20 14:28:04 -05:00
Abhimanyu Saharan
50e5bb9717
added validation error for script and report constraint #15174
2024-02-20 14:15:27 -05:00
Abhimanyu Saharan
a063b5563c
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
8678d1a577
removed associate_by_email #14946
2024-02-20 14:10:47 -05:00
Abhimanyu Saharan
839609d101
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
dbcd713fe7
Fixes #15090 : Run deletion protection rules prior to enqueueing events
2024-02-20 13:22:55 -05:00
Arthur Hanson
af27bf5eff
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
29f029d480
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
bd7d4a3f34
Fixes #14079 : Explicitly remove M2M assignments to objects being deleted to ensure change logging
2024-02-16 11:42:27 -05:00
Jeremy Stretch
de5c5aeb2a
Fixes #14952 : Update existing AutoSyncRecord when changing the data file of an auto-synced object
2024-02-16 11:38:47 -05: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
Abhimanyu Saharan
2e74952ac6
added missing import #15058
2024-02-16 01:20:54 +05:30
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
7cc215437f
Fixes #15127 : Add missing group column on tunnels table
2024-02-14 09:27:01 -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
Jeremy Stretch
2d70b50286
Fixes #15059 : Correct IP address count link in VM interfaces table
2024-02-13 12:16:11 -05:00
Jeremy Stretch
01fa2710eb
Fixes #15067 : Fix uncaught exception when attempting invalid device bay import
2024-02-13 12:15:15 -05:00
Arthur
99b01981d4
9856 fixes to circuits type specifiers
2024-02-13 08:32:21 -08:00