Skip to content

Filter duplicate users in getFsAutocomplete

David requested to merge user-autocomplete-select-distinct into master

What does this MR do?

getFsAutocomplete may return users multiple times if they are in multiple of the regions given as input. For example, in the autocomplete to add a new food share point admin names can be duplicated of users with which you share multiple regions (crf. https://gitlab.com/foodsharing-dev/foodsharing-it-support/issues/1075).

How confident are you it won't break things if deployed?

Very

Links to related issues

https://gitlab.com/foodsharing-dev/foodsharing-it-support/issues/1075

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
  • Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings

Merge request reports