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

fix_5/#90 - added comments to Parameter-related classes #177

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

monsieurtanuki
Copy link
Contributor

On the way to a 130/130 pub.dev score...

By the way @teolemon @stephanegigandet: what's the purpose of search_type=1 or search_type=0 in the search API URI?

Impacted files:

  • ContainsAdditives.dart: added a comment on class; refactored as non-nullable
  • OutputFormat.dart: added a comment on class and enum; refactored
  • Page.dart: added a comment on class; refactored as non-nullable
  • PageSize.dart: added a comment on class; refactored as non-nullable
  • Parameter.dart: added a comment on class; created method addToMap
  • ProductSearchQueryConfiguration.dart: added a comment on class; refactored some fields as non-nullable
  • SearchSimple.dart: not done much as the purpose of the class is unclear
  • SearchTerms.dart: added a comment on class; refactored as non-nullable
  • SortBy.dart: added a comment on class and enum; refactored
  • TagFilter.dart: added a comment on class and enum; overridden new method addToMap; refactored

On the way to a 130/130 pub.dev score...

Impacted files:
* `ContainsAdditives.dart`: added a comment on class; refactored as non-nullable
* `OutputFormat.dart`: added a comment on class and enum; refactored
* `Page.dart`: added a comment on class; refactored as non-nullable
* `PageSize.dart`: added a comment on class; refactored as non-nullable
* `Parameter.dart`: added a comment on class; created method `addToMap`
* `ProductSearchQueryConfiguration.dart`: added a comment on class; refactored some fields as non-nullable
* `SearchSimple.dart`: not done much as the purpose of the class is unclear
* `SearchTerms.dart`: added a comment on class; refactored as non-nullable
* `SortBy.dart`: added a comment on class and enum; refactored
* `TagFilter.dart`: added a comment on class and enum; overridden new method `addToMap`; refactored
I've just rolled back changes I made that actually added complexity without added value.

Impacted files:
* `Parameter.dart`
* `ProductSearchQueryConfiguration.dart`
* `TagFilter.dart`
Copy link
Collaborator

@peterwvj peterwvj 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. I see the PR has two commits with the same message. I would suggest addressing this - perhaps by squashing the two commits - but it isn't critical.

@monsieurtanuki
Copy link
Contributor Author

Thank you @peterwvj for your code review!
Both commits have the same title, but not the same message. Let's say that good enough is good enough.

@monsieurtanuki monsieurtanuki merged commit 95ad0ee into openfoodfacts:master Jul 12, 2021
@monsieurtanuki monsieurtanuki deleted the fix_5/#90 branch September 17, 2021 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants