chiefonboarding / ChiefOnboarding

Free and open-source employee onboarding platform. Onboard new hires through Slack or the web portal.
https://chiefonboarding.com
GNU Affero General Public License v3.0
640 stars 119 forks source link

Add global search #399

Closed GDay closed 8 months ago

GDay commented 8 months ago

This will allow admin/managers to do a search over multiple models on any page they are. It's nothing fancy, it just searches the "name" of an item or the "first_name"/"last_name" of a user. image

Lookups could be done through more complex vectors, but for now this should be sufficient. Using something more complicated would also make the lookups a lot harder as the models used to look through are not the same.

I am aware of packages like haystack, but I am refraining from using those right now as it would add a lot of bloat and extra dependencies to the project.

coveralls commented 8 months ago

Coverage Status

coverage: 93.835% (-0.006%) from 93.841% when pulling 5bc6ecc73ef7e1d7d98faa131022749fc60b4ebb on add-global-search into a6f2f9a790c2b507b14cf9aa45a1a307bdc88b41 on master.