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

595 Commits

Author SHA1 Message Date
9628dead07 Closes : New global search ()
* Initial work on new search backend

* Clean up search backends

* Return only the most relevant result per object

* Clear any pre-existing cached entries on cache()

* : Implement global search functionality for custom field values

* Tweak field weights & document guidance

* Extend search() to accept a lookup type

* Move get_registry() out of SearchBackend

* Enforce object permissions when returning search results

* Add indexers for remaining models

* Avoid calling remove() on non-cacheable objects

* Use new search backend by default

* Extend search backend to filter by object type

* Clean up search view form

* Enable specifying lookup logic

* Add indexes for value field

* Remove object type selector from search bar

* Introduce SearchTable and enable HTMX for results

* Enable pagination

* Remove legacy search backend

* Cleanup

* Use a UUID for CachedValue primary key

* Refactoring search methods

* Define max search results limit

* Extend reindex command to support specifying particular models

* Add clear() and size to SearchBackend

* Optimize bulk caching performance

* Highlight matched portion of field value

* Performance improvements for reindexing

* Started on search tests

* Cleanup & docs

* Documentation updates

* Clean up SearchIndex

* Flatten search registry to register by app_label.model_name

* Clean up search backend classes

* Clean up RestrictedGenericForeignKey and RestrictedPrefetch

* Resolve migrations conflict
2022-10-21 13:16:16 -04:00
bd79a27e4d Merge branch 'develop' into feature 2022-10-20 16:07:03 -04:00
028b4b7ea7 10643 add fieldset to device role for improved add/edit form display ()
* 10643 add fieldset to device role for improved add/edit form display

* 10643 update other forms

* 10643 update other forms

* Specify fieldsets for additional models

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-10-19 08:35:23 -04:00
2fe8df3cbb 10655 fix contacts display in list views ()
* 10655 fix contacts display in list views

* 10655 review changes
2022-10-18 16:47:14 -04:00
ffce5d968d 8927 plugin search ()
*  base search classes

* 7016 add search indexes

* 7016 add search indexes

* 7016 add search indexes

* 7016 add search indexes

* 7016 add search indexes

* 7016 add search indexes

* 8927 refactor search

* 8927 refactor search

* 8927 refactor search

* 8927 refactor search

* 8927 get search choices working

* 8927 cleanup - optimize

* 8927 use backend search function

* 8927 fix for plugin search

* 8927 add docs

* Move search app to a module under netbox/

* Utilize global registry to register model search classes

* Build search form options from registry

* Determine search categories from model app by default

* Enable dynamic search registration for plugins

* Update docs & improve plugin support

* Clean up search backend class

* Docs for 

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-10-10 14:00:59 -04:00
b0ba9bd83d Closes : Register all core model views using register_model_view() 2022-10-07 17:17:58 -04:00
a0bae06ff7 Replace static journaling, changelog URL paths with dynamic resolution 2022-10-06 16:21:23 -04:00
c481a1b6a2 Merge branch 'develop' into feature 2022-10-05 10:28:48 -04:00
bdefd8ea8c Fixes : Correct URL for contacts table tags column 2022-10-05 08:13:33 -04:00
10352ff5ad Merge branch 'develop' into feature 2022-09-30 17:17:18 -04:00
af8bb0c4b9 10348 add decimal custom field ()
* 10348 add decimal custom field

* 10348 fix tests

* 10348 add documentation

* Rearrange custom fields to be ordered consistently

* Rename number_field to integer_field for clarity

* Clean up validation logic

* Apply suggested changes from PR

* Store decimal custom field values natively

* Fix filter test

* Update custom field model migrations to use new encoder

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-30 16:03:24 -04:00
02ffc2ddee 10491 improve error message for ProtectedError on contact assignment 2022-09-30 09:09:21 -07:00
f51415cf2c Replace unique_together with UniqueConstraints 2022-09-27 15:35:24 -04:00
2d9852d6f1 Fixes : Fix validation when attempting to add redundant contact assignments 2022-09-27 13:11:57 -04:00
0b5478ad2d Fixes : Change DictField serializers to JSONField 2022-08-29 08:02:38 +02:00
8b1a462a60 changes from code review 2022-08-23 09:29:55 -07:00
9fddd193b9 fix Contact AddAnother 2022-08-22 16:31:41 -07:00
8cd5a24409 : Clean up clone_fields on all models 2022-08-11 09:58:37 -04:00
6904666e2a Remove deprecated usage of prefetch_related
Fixes 
2022-07-30 01:18:30 +02:00
abf11fbcb8 Merge branch 'develop' into feature 2022-07-20 12:20:33 -04:00
e07dd3ddcb Define NESTED_SERIALIZER_PREFIX constant 2022-07-15 15:31:42 -04:00
3eb6b6c07f Clean up core API imports 2022-07-13 16:18:55 -04:00
c380fd00bf Merge branch 'develop' into feature 2022-07-11 12:58:24 -04:00
e2af716a81 : Add default accessor to TenantGroupColumn 2022-07-11 10:03:45 -04:00
bd60d46b82 Table mixin for Tenancy columns
A mixin to add the Tenant and Tenant Group columns to a table.
2022-07-10 15:08:55 +02:00
3c2a55a521 Add TenantGroupColumn to display Tenant Group on tables
Works the same as the existing TenantColumn, but displats the Tenant Group of
the Tenant.

Views should prefetch the Tenants Group for this to be efficient in large
tables.
2022-07-10 11:58:45 +02:00
7dd5f9e720 Closes : Add tenant assignment for wireless LANs & links 2022-06-27 11:30:52 -04:00
c81c3d11ed Fixes : Correct link to contacts in contact groups table column 2022-06-09 10:20:44 -04:00
36c65b7b22 Closes : Include count of IP ranges under tenant view 2022-06-07 11:12:40 -04:00
8ad203f97a Added contact_group to region, site, manufacturer, tenant filters 2022-05-14 17:53:40 +02:00
aba4e03d3b Add contact_group to ContactModelFilterSet 2022-05-14 17:48:37 +02:00
39a9ebaeee Fixes : Remove HTML code from CSV output of many-to-many relationships 2022-05-06 10:26:02 -04:00
422ec7ecec Fixes : Permit creating contact assignment without a priority via the REST API 2022-05-06 09:25:40 -04:00
0301aec409 Closes : Apply user preferences to tables under object detail views 2022-05-04 15:46:13 -04:00
c1b7f09530 Ensure legacy data checks run before other migrations 2022-04-05 15:56:21 -04:00
cdacd2a951 Closes : Add link field to contact model 2022-03-30 16:19:12 -04:00
ba1e6e91b9 Rename ObjectEditView.model_form to form 2022-03-21 10:22:30 -04:00
8d53b46e82 Merge branch 'develop' into feature 2022-03-18 13:17:11 -04:00
50bc0caccf Fix issues with ordering and add field_groups 2022-03-18 14:58:51 +00:00
6170138124 Rename ActionsColumn sequence to actions 2022-03-14 13:45:21 -04:00
245cff887c Move q filter to NetBoxModelFilterSet 2022-03-11 16:16:58 -05:00
59aba52b03 Rename OrderedDefaultRouter to NetBoxRouter & document for plugins 2022-03-11 15:59:03 -05:00
ffc29d14a8 Add tags field to NetBoxModelForm 2022-03-10 15:08:23 -05:00
342f1d31be fix pycodestyle issues 2022-03-09 17:55:45 +00:00
ef6576bdd6 merge develop into issue 2022-03-09 17:47:58 +00:00
27dab262de add columns for each model table that has contacts 2022-03-09 17:35:25 +00:00
412c1df15a acidentally removed NestedContactAssignmentSerializer in previous commit 2022-03-09 16:48:29 +00:00
73af3ba095 remove contacts from api endpoints 2022-03-09 16:45:19 +00:00
bbdeae0ed9 Move CustomFieldModelViewSet functionality into NetBoxModelViewSet 2022-03-09 11:44:55 -05:00
a11abf87ec Refactor API serializers 2022-03-09 10:59:22 -05:00