netbox/netbox/project-static
Jeremy Stretch 9628dead07
Closes #10560: New global search (#10676)
* 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()

* #6003: 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
..
dist Closes #10560: New global search (#10676) 2022-10-21 13:16:16 -04:00
docs Closes #6328: Local docs build (#6769) 2021-07-19 14:18:08 -04:00
img templates: add an opaque icon for mobile home screens 2021-12-19 01:32:15 +03:00
netbox-graphiql Closes #6855: Bundle and locally serve GraphiQL JS/CSS 2021-07-31 23:49:48 -07:00
src Closes #10560: New global search (#10676) 2022-10-21 13:16:16 -04:00
styles Revert PR #10621 2022-10-19 08:55:30 -04:00
.eslintignore Migrate from ParcelJS to esbuild for UI bundling 2021-07-24 00:00:38 -07:00
.eslintrc Update JS dependencies WIP 2022-10-04 15:02:37 +02:00
.prettierignore Migrate from ParcelJS to esbuild for UI bundling 2021-07-24 00:00:38 -07:00
.prettierrc scaffold new ui directory 2021-03-13 02:28:21 -07:00
.sassrc scaffold new ui directory 2021-03-13 02:28:21 -07:00
bundle.js Remove jobs Javascript 2021-12-20 20:59:14 -05:00
package.json Fix graphiql by pinning esbuild 2022-10-04 22:00:32 +02:00
tsconfig.json implement dark mode 2021-04-25 20:11:46 -07:00
yarn.lock Fix graphiql by pinning esbuild 2022-10-04 22:00:32 +02:00