Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: #382 - added a "packaging" tag type #383

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • api_get_autocompleted_suggestions_test.dart: added a test about packaging
  • TagType.dart: added a "packaging" tag type

What

  • with the new "packaging" tag type, getAutocompletedSuggestions can be called for packaging.

Impacted files:
* `api_get_autocompleted_suggestions_test.dart`: added a test about packaging
* `TagType.dart`: added a "packaging" tag type
@monsieurtanuki monsieurtanuki linked an issue Feb 11, 2022 that may be closed by this pull request
1 task
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @monsieurtanuki

Comment on lines +202 to +205
input: 'briq',
);

_listContains(result, 'briq');
Copy link
Member

Choose a reason for hiding this comment

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

We expect that it autocompletes the the same as the input, not very challenging but this is obviously more a task for the backend

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what you mean but just in case, in French packaging suggestions from briq are ['Brique','Briquette'].

@monsieurtanuki monsieurtanuki merged commit 4479956 into openfoodfacts:master Feb 12, 2022
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev for your code review!
We definitely need to do something about the unit tests: we are so accustomed to failed tests that we almost always dismiss them: "if they fail no problem, it's probably an old back luck failure due to the test env".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AutoSuggest for Packaging
3 participants