coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
571 stars 130 forks source link

user search bar not working #4703

Open HugoLCR opened 1 month ago

HugoLCR commented 1 month ago

Describe the bug user search bar does not allow user accounts to be found by email address

To Reproduce Steps to reproduce the behavior:

  1. Go to search bar
  2. search a user with a mail
  3. See error

Expected behavior I want to find a user with: their email / no name / their first name / their username

Device (please complete the following information): windows 11 chrome

alexsegura commented 1 month ago

The users are already searched based on the expected criteria, but we may need to tweak the scores.

https://github.com/coopcycle/coopcycle-web/blob/eb3afee0b47e8c7c8313ff2c71d0272bddf3b5c1/src/Entity/UserRepository.php#L12-L33

Paul-Eraman-CoopCycle commented 1 month ago

@HugoLCR what search criteria would you have here?

any thing else?