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: Start new documentation #663

Merged
merged 14 commits into from
Jan 5, 2023
Merged

feat: Start new documentation #663

merged 14 commits into from
Jan 5, 2023

Conversation

M123-dev
Copy link
Member

What

Started with a new documentation here, the core principles are:

  • You can see all possibilities listed in the README
  • From there you are redirected to a generated documentation, which is written inside the code itself

Here is the updated readme rendered

@M123-dev M123-dev changed the title doc: Start new documentation feat: Start new documentation Dec 27, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2022

Codecov Report

Merging #663 (186cfba) into master (04230ac) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #663      +/-   ##
==========================================
- Coverage   76.71%   76.68%   -0.03%     
==========================================
  Files         195      195              
  Lines        7008     7008              
==========================================
- Hits         5376     5374       -2     
- Misses       1632     1634       +2     
Impacted Files Coverage Δ
lib/src/model/recommended_daily_intake.dart 100.00% <ø> (ø)
lib/src/model/status.dart 57.89% <ø> (ø)
lib/src/open_food_api_client.dart 69.06% <ø> (ø)
lib/src/utils/abstract_query_configuration.dart 97.29% <ø> (ø)
lib/src/utils/country_helper.dart 66.66% <ø> (ø)
lib/src/utils/open_food_api_configuration.dart 87.50% <ø> (ø)
lib/src/utils/product_query_configurations.dart 76.19% <ø> (ø)
...utils/user_product_search_query_configuration.dart 96.77% <ø> (ø)
lib/src/model/parameter/sort_by.dart 100.00% <100.00%> (ø)
lib/src/model/insight.dart 51.42% <0.00%> (-2.86%) ⬇️
... and 2 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

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

Hi @M123-dev!

I currently have other urgent priorities around off-dart and Smoothie, so if we could avoid less important PR like doc I would appreciate that.

My comments:

  • Please stick to https://dart.dev/guides/language/effective-dart/documentation, and more specifically please say whatever you have to say in just one line, and if you have more to say skip a line and say it
  • Don't say anything that the developer can already see, like the returned type or the default values.
  • Please don't put breaking changes in an unrelated doc PR - there are so many lines you added that github doesn't even bother to show the diffs - please put a TODO instead, or at least mention it in your PR comment (and in the "how to upgrade" section of the README.md)

lib/src/utils/product_query_configurations.dart Outdated Show resolved Hide resolved
lib/src/model/recommended_daily_intake.dart Outdated Show resolved Hide resolved
lib/src/model/recommended_daily_intake.dart Outdated Show resolved Hide resolved
lib/src/utils/abstract_query_configuration.dart Outdated Show resolved Hide resolved
lib/src/utils/country_helper.dart Outdated Show resolved Hide resolved
lib/src/open_food_api_client.dart Outdated Show resolved Hide resolved
lib/src/open_food_api_client.dart Outdated Show resolved Hide resolved
lib/src/open_food_api_client.dart Outdated Show resolved Hide resolved
lib/src/open_food_api_client.dart Outdated Show resolved Hide resolved
lib/src/open_food_api_client.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

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

Hi @M123-dev!

I have minor comments - feel free to ignore them.
In addition to them, your comment about getOrderedNutrients is not valid anymore, as you're finally still using cc (and not a country).

Another comment: as the PR title is going to be replicated to pub.dev, I'm not sure if feat: Start new documentation is relevant. I would say

  • refactor:, but we know it's not a good idea, versioning-wise
  • documentation update

lib/src/utils/abstract_query_configuration.dart Outdated Show resolved Hide resolved
lib/src/utils/country_helper.dart Outdated Show resolved Hide resolved
lib/src/utils/product_query_configurations.dart Outdated Show resolved Hide resolved
lib/src/utils/product_query_configurations.dart Outdated Show resolved Hide resolved
lib/src/utils/product_query_configurations.dart Outdated Show resolved Hide resolved
@@ -6,6 +6,24 @@ import 'language_helper.dart';
import 'product_fields.dart';

/// Query Configuration for user-related searches.
/// Get products a user created, photographed,
Copy link
Contributor

Choose a reason for hiding this comment

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

By the way this class is now deprecated, so no use to be verbose.

Copy link
Member Author

Choose a reason for hiding this comment

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

What would be the right way to do this now, what is a normal query

Copy link
Contributor

Choose a reason for hiding this comment

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

Cf. Smoothie, cf. integration tests.
Using the standard product list query configuration, with adapted parameters.

lib/src/utils/product_query_configurations.dart Outdated Show resolved Hide resolved
lib/src/utils/open_food_api_configuration.dart Outdated Show resolved Hide resolved
lib/src/model/recommended_daily_intake.dart Outdated Show resolved Hide resolved
M123-dev and others added 6 commits January 5, 2023 13:52
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
@M123-dev M123-dev merged commit 7d12409 into master Jan 5, 2023
@M123-dev M123-dev deleted the documentation branch January 5, 2023 13:08
@M123-dev
Copy link
Member Author

M123-dev commented Jan 5, 2023

Thanks for your review @monsieurtanuki, I applied all your suggestions

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

Successfully merging this pull request may close these issues.

None yet

4 participants