1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Commit Graph

570 Commits

Author SHA1 Message Date
5de2dea8a6 Fixes : Ensure default contact assignment ordering is consistent 2024-01-17 13:29:04 -05:00
d5c1cb0ef6 Merge branch 'develop' into feature 2023-12-28 14:20:04 -05:00
3ef2db81e8 Closes : Add filter tests for all q and description filters 2023-12-28 13:53:16 -05:00
3bacee16bd Closes : Ensure description filters are available on all relevant models 2023-12-28 13:53:16 -05:00
25e67eb555 Merge branch 'develop' into feature 2023-12-15 16:52:42 -05:00
929d4d2c95 Fixes : Fix filtering contact assignments by group 2023-12-15 13:58:50 -05:00
b532435a6d Closes : Add indexes for all GenericForeignKey fields ()
* Closes : Add PostgreSQL indexes for all GenericForeignKeys

* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
b83fcc6077 Merge branch 'develop' into feature 2023-11-29 20:25:44 -05:00
01ba4ce129 Fixes : Enable export templates for contact assignments 2023-11-29 15:22:41 -05:00
e15647a2ce Closes : Filter ContentTypes by supported feature ()
* 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
69a4c31072 Closes : Dynamically populate related objects list under tenant view ()
* Closes : 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
3d20276f55 Closes : Display additional object attributes in global search results ()
* 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
2562c8745c Closes : Add custom field support for contact assignments 2023-11-09 16:10:14 -05:00
ac91d4e5e5 Merge branch 'develop' into feature 2023-11-09 16:06:26 -05:00
ad95760ead adds contact group on contact assignment table 2023-11-09 14:12:10 -05:00
66b9cdf141 adds import button on the contact assignment table 2023-11-08 12:37:13 -05:00
450790ab4a Closes : Refactor view action mappings ()
* 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
d77d45e795 12336 make region API calls atomic ()
* 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
9aa7444bf9 Fixes : Fix tag exclusion support for contact assignments 2023-09-18 11:08:49 -04:00
914588f55d Merge branch 'develop' into feature 2023-08-09 15:31:21 -04:00
545769ad88 Adds generic object children template ()
* adds generic tab view template 

* 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
16bcb1dbb0 : Employ proper feature keys for image attachment & contact filter forms 2023-08-09 10:41:40 -04:00
2afce6c94b Introduce ContactsMixin 2023-08-04 10:15:50 -04:00
caedc8dbe3 Closes : Translation support for model verbose names ()
* 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
cbf4b43b35 Adds tags on contact assignment ()
* adds tags on contact assignments 

* updated migration

* added tags on import form

* adds TagsMixin on ContactAssignmentType 

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-01 11:52:14 -04:00
e625a5667c Closes : Wrap choice labels with gettext()
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 17:31:07 -04:00
e284cd7e54 Closes : Wrap table column headers with gettext()
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 14:35:28 -04:00
b7a9649269 Closes : Wrap form field labels with gettext_lazy()
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 12:52:38 -04:00
83bebc1bd2 Closes : 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
36f95f7842 Adds tenant on power feed ()
* 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
2aa51d0d94 Adds contact assignment bulk import ()
* adds contact assignment bulk import 

* Remove unsupported tags field added by NetBoxModelImportForm

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-28 09:23:22 -04:00
8143c6e03b adds object change for contact assignment 2023-07-06 09:45:31 -04:00
183c7deb81 adds contact accessor fields on assignment table 2023-06-29 14:50:30 -04:00
b3bd03a1e9 Fixes : Use contact assignments table to display the contacts assigned to an object 2023-05-30 14:51:16 -04:00
e2f9a3c07a fixes contact assignments filter to include parent content type 2023-05-26 08:42:04 -04:00
4eb5e90ccc Adds contact tabs ()
* adds contact tabs 

* 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
fbcf4c268b 12436 remove add button from contactassignment list view 2023-05-02 16:35:23 -04:00
d470848b29 Closes : 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
08017c51f6 Merge branch 'develop' into feature 2023-04-07 13:00:00 -04:00
085cfc58f4 Fixes : Fix filtered bulk deletion for various models 2023-04-07 10:25:36 -04:00
6d6299f0cb : Linkify assigment counts in contacts table 2023-04-05 12:53:39 -04:00
ecd0c56554 Closes : 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
c57d71a9db 11291 optimize GraphQL queries ()
* 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
c35e7b8ee5 : Add bulk edit view & tests 2023-03-21 13:47:08 -04:00
206d578bc3 Closes : Redirect to filtered objects list after bulk import ()
* Redirect user to filtered objects list after bulk import

* Remove obsolete table attribute from bulk import views
2023-03-17 09:23:40 -04:00
2a9178af12 Merge branch 'develop' into feature 2023-03-13 11:58:37 -04:00
fa60f9d2a8 Closes : Markdown Preview ()
* MarkdownWidget

* Change border and color of active markdown tab

* Fix template name typo

* Add render markdown endpoint

* Static assets for markdown widget

* widget style fix and unique ids based on name

* Replace SmallTextArea with SmallMarkdownWidget

* Clear innerHTML before swapping

* render markdown directly in template

* change render markdown view path

* remove small markdown widget

* Simplify rendering logic

* Use a form to clean input Markdown data

---------

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2023-03-09 08:21:13 -05:00
8a08d3621b Closes : Require unique tenant names & slugs per group (not globally) 2023-02-28 20:03:41 -05:00
b9bd96f0c7 Closes : Remove StaticSelect & StaticSelectMultiple ()
* Remove StaticSelect, StaticSelectMultiple form widgets

* Tag custom ChoiceField, MultipleChoiceField classes for removal in v3.6
2023-02-19 20:09:51 -05:00
c73829fe92 Fix issues with the ContactAssignmentListView 2023-02-19 20:09:51 -05:00