Skip to content

Search refactor - #4505

Merged
SchrodingersGat merged 12 commits into
inventree:masterfrom
SchrodingersGat:search-refactor
Mar 19, 2023
Merged

SchrodingersGat merged 12 commits into
inventree:masterfrom
SchrodingersGat:search-refactor

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Mar 18, 2023 •

Copy link
Copy Markdown
Member

This PR refactors the "quick search" functionality, bringing significant speed and usability improvements.

Basically, we introduce a single API endpoint for global search, which simply consolidates search results into a single query. This means that only one API request is needed for all search results, and this means that all the web workers are no longer consumed with a single set of search requests.

TODO

  • Reimplement links for search results
  • Unit testing
  • Unit testing without necessary permissions
  • Remove "no results" text when searching
  • Handle "no results found"

@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature api Relates to the API labels Mar 18, 2023
@SchrodingersGat SchrodingersGat added this to the 0.11.0 milestone Mar 18, 2023

@matmair matmair left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this handle missing privileges?

- Pipe into a single function for consistent display
- Add link rendering support
@SchrodingersGat

Copy link
Copy Markdown
Member Author

How does this handle missing privileges?

Will add a unit test for this

@SchrodingersGat
SchrodingersGat merged commit 4d83116 into inventree:master Mar 19, 2023
@SchrodingersGat
SchrodingersGat deleted the search-refactor branch March 19, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API enhancement This is an suggested enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants