You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many parts of the edition, we have an auto-completion feature.
However, this is a nonsense to list an item… which is already selected.
What - Proposed solution
The first thing to do would be to add a parameter to the autosuggestion methods: a list of items to exclude.
Then, if the developer asks for 10 items and we exclude 2 items, we should ask the server for 10+2 = 12 items and return the first 10 items that are not in the 2-item list.
Alternatives you've considered
Of course if the server could accept a list of items to exclude it would be better.
The text was updated successfully, but these errors were encountered:
Why - Problem description
cf. openfoodfacts/smooth-app#5096 by @g123k:
What - Proposed solution
The first thing to do would be to add a parameter to the autosuggestion methods: a list of items to exclude.
Then, if the developer asks for 10 items and we exclude 2 items, we should ask the server for 10+2 = 12 items and return the first 10 items that are not in the 2-item list.
Alternatives you've considered
Of course if the server could accept a list of items to exclude it would be better.
The text was updated successfully, but these errors were encountered: