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
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
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
Jeremy Stretch
b554e70eda
Squash migrations
2024-01-25 12:35:04 -05:00
Jeremy Stretch
222388b988
Revert "Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )"
...
This reverts commit 874685fd6f6b463e68fd2eef4711aa6765371a17.
2024-01-22 13:15:43 -05:00
Jeremy Stretch
874685fd6f
Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )
...
* Regenerate pre-v3.7 migrations
* Annotate replaced migrations
* Rename dependencies; remove FeatureQuery references
* Add missed replacement
2024-01-19 13:55:22 -05:00
Jeremy Stretch
5de2dea8a6
Fixes #14816 : Ensure default contact assignment ordering is consistent
2024-01-17 13:29:04 -05:00
Jeremy Stretch
d5c1cb0ef6
Merge branch 'develop' into feature
2023-12-28 14:20:04 -05:00
Jeremy Stretch
3ef2db81e8
Closes #14629 : Add filter tests for all q and description filters
2023-12-28 13:53:16 -05:00
Jeremy Stretch
3bacee16bd
Closes #14631 : Ensure description filters are available on all relevant models
2023-12-28 13:53:16 -05:00
Jeremy Stretch
25e67eb555
Merge branch 'develop' into feature
2023-12-15 16:52:42 -05:00
Jeremy Stretch
929d4d2c95
Fixes #14522 : Fix filtering contact assignments by group
2023-12-15 13:58:50 -05:00
Jeremy Stretch
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
Jeremy Stretch
b83fcc6077
Merge branch 'develop' into feature
2023-11-29 20:25:44 -05:00
Jeremy Stretch
01ba4ce129
Fixes #14242 : Enable export templates for contact assignments
2023-11-29 15:22:41 -05:00
Jeremy Stretch
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
Jeremy Stretch
69a4c31072
Closes #13794 : Dynamically populate related objects list under tenant view ( #14196 )
...
* Closes #13794 : Dynamically populate related objects list under tenant view
* get_related_models() should sort models alphabetically by default
* Reference Meta.related_objects instead of calling get_fields()
2023-11-16 12:02:32 -05:00
Jeremy Stretch
3d20276f55
Closes #14134 : Display additional object attributes in global search results ( #14154 )
...
* WIP
* Add display_attrs for all indexers
* Linkify object attributes
* Clean up prefetch logic
* Use tooltips for display attributes
* Simplify template code
* Introduce get_indexer() utility function
* Add to examples in docs
* Use tooltips to display long strings
2023-11-09 16:21:09 -05:00
Jeremy Stretch
2562c8745c
Closes #14156 : Add custom field support for contact assignments
2023-11-09 16:10:14 -05:00
Jeremy Stretch
ac91d4e5e5
Merge branch 'develop' into feature
2023-11-09 16:06:26 -05:00
Abhimanyu Saharan
ad95760ead
adds contact group on contact assignment table #14221
2023-11-09 14:12:10 -05:00
Abhimanyu Saharan
66b9cdf141
adds import button on the contact assignment table #13669
2023-11-08 12:37:13 -05:00
Jeremy Stretch
450790ab4a
Closes #13550 : Refactor view action mappings ( #14062 )
...
* Merge actions and action_perms into a single mapping
* Update obsolete permission maps
* Update obsolete action lists
* Normalize empty permission mappings
* Cleanup
* Add deprecation warnings
* Introduce DEFAULT_ACTION_PERMISSIONS constant
2023-10-20 15:08:09 -04:00
Arthur Hanson
d77d45e795
12336 make region API calls atomic ( #13942 )
...
* 12336 make region API calls atomic
* 12336 switch to pg locks
* 12336 add locks to all views using mptt models
* 12336 fix ADVISORY_LOCK_KEYS reference
* 12336 review changes
* Tweak advisory lock numbering
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-17 10:35:01 -04:00
Jeremy Stretch
9aa7444bf9
Fixes #13782 : Fix tag exclusion support for contact assignments
2023-09-18 11:08:49 -04:00
Jeremy Stretch
914588f55d
Merge branch 'develop' into feature
2023-08-09 15:31:21 -04:00
Abhimanyu Saharan
545769ad88
Adds generic object children template ( #13388 )
...
* adds generic tab view template #12110
* Rename view_tab.html and move to generic/
* Fix console ports template
* Move bulk operations view resolution to template
* Avoid setting default template_name on ObjectChildrenView
* Move base_template and table_config context vars to base context
* removed bulk_delete_control from templates
* refactored bulk_controls view
* fixed table_config
* renamed object_tab.html to objectchildren_list.html
* removed unused import
* Refactor template blocks for bulk operation buttons
* Rename object children generic template
* Move disconnect bulk action into a separate template for device components
* Fix cluster devices & VM interfaces views
* minor button label change
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-09 14:16:03 -04:00
Jeremy Stretch
16bcb1dbb0
#13426 : Employ proper feature keys for image attachment & contact filter forms
2023-08-09 10:41:40 -04:00
Jeremy Stretch
2afce6c94b
Introduce ContactsMixin
2023-08-04 10:15:50 -04:00
Jeremy Stretch
caedc8dbe3
Closes #13352 : Translation support for model verbose names ( #13354 )
...
* Update verbose_name & verbose_name_plural Meta attributes on all models
* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
Abhimanyu Saharan
cbf4b43b35
Adds tags on contact assignment ( #13328 )
...
* adds tags on contact assignments #12882
* updated migration
* added tags on import form
* adds TagsMixin on ContactAssignmentType #12882
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-01 11:52:14 -04:00
Arthur Hanson
e625a5667c
Closes #13279 : Wrap choice labels with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 17:31:07 -04:00
Arthur Hanson
e284cd7e54
Closes #13150 : Wrap table column headers with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 14:35:28 -04:00
Arthur Hanson
b7a9649269
Closes #13149 : Wrap form field labels with gettext_lazy()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 12:52:38 -04:00
Arthur Hanson
83bebc1bd2
Closes #13132 : Wrap verbose_name and other model text with gettext_lazy() (i18n)
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 11:28:07 -04:00
Abhimanyu Saharan
36f95f7842
Adds tenant on power feed ( #13300 )
...
* adds tenant on power feed
* cleanup
* adds power feed count on tenant object view
* Misc cleanup; add filterset tests
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 08:20:48 -04:00
Abhimanyu Saharan
2aa51d0d94
Adds contact assignment bulk import ( #13109 )
...
* adds contact assignment bulk import #11307
* Remove unsupported tags field added by NetBoxModelImportForm
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-28 09:23:22 -04:00
Abhimanyu Saharan
8143c6e03b
adds object change for contact assignment #13065
2023-07-06 09:45:31 -04:00
Abhimanyu Saharan
183c7deb81
adds contact accessor fields on assignment table #12955
2023-06-29 14:50:30 -04:00
jeremystretch
b3bd03a1e9
Fixes #12715 : Use contact assignments table to display the contacts assigned to an object
2023-05-30 14:51:16 -04:00
Abhimanyu Saharan
e2f9a3c07a
fixes contact assignments filter to include parent content type #12730
2023-05-26 08:42:04 -04:00
Abhimanyu Saharan
4eb5e90ccc
Adds contact tabs ( #12460 )
...
* adds contact tabs #11599
* fixed lint issues
* changes as per review
* changes as per review
* replaces generic object template with base template
2023-05-12 10:26:26 -04:00
Arthur
fbcf4c268b
12436 remove add button from contactassignment list view
2023-05-02 16:35:23 -04:00
Jeremy Stretch
d470848b29
Closes #12246 : General cleanup of utilities modules
...
* Clean up base modules
* Clean up forms modules
* Clean up templatetags modules
* Replace custom simplify_decimal filter with floatformat
* Misc cleanup
* Merge ReturnURLForm into ConfirmationForm
* Clean up import statements for utilities.forms
* Fix field class references in docs
2023-04-14 10:33:53 -04:00
jeremystretch
08017c51f6
Merge branch 'develop' into feature
2023-04-07 13:00:00 -04:00
jeremystretch
085cfc58f4
Fixes #12184 : Fix filtered bulk deletion for various models
2023-04-07 10:25:36 -04:00
jeremystretch
6d6299f0cb
#11584 : Linkify assigment counts in contacts table
2023-04-05 12:53:39 -04:00
Arthur Hanson
ecd0c56554
Closes #9608 : Move from drf-yasg to spectacular
...
Co-authored-by: arthanson <worldnomad@gmail.com>
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-30 14:32:59 -04:00
Arthur Hanson
c57d71a9db
11291 optimize GraphQL queries ( #11943 )
...
* 11291 initial optimize graphql queries
* 11291 add optimizer to schemas
* 11291 cleanup fields.py
* 11291 fix fragment query
2023-03-23 08:42:18 -04:00
jeremystretch
c35e7b8ee5
#11584 : Add bulk edit view & tests
2023-03-21 13:47:08 -04:00