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: adding contribution count #3267

Merged
merged 7 commits into from
Nov 7, 2022

Conversation

prathamsoni11
Copy link
Contributor

What

  • added contribution count in respective elements

Screenshot

Fixes bug(s)

Part of

@prathamsoni11 prathamsoni11 requested a review from a team as a code owner November 5, 2022 02:50
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 @prathamsoni11!
Looks good to me, but not to the analyzer.
Please read my comments and feel free to ignore them (except the one about the mandatory type)

@@ -216,6 +217,33 @@ class _UserPreferencesPageState extends State<UserPreferencesSection> {
);
}

Future<int?> _getMyCount(
final String userId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Careful between userId and email: to be tested if it works in both cases.

@prathamsoni11
Copy link
Contributor Author

Hi @prathamsoni11!
Looks good to me, but not to the analyzer.
Please read my comments and feel free to ignore them (except the one about the mandatory type)

@monsieurtanuki I completed some of your suggestions and pushed the code.

@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2022

Codecov Report

Merging #3267 (d4d3aea) into develop (86be3ac) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #3267      +/-   ##
===========================================
- Coverage    10.53%   10.52%   -0.02%     
===========================================
  Files          249      249              
  Lines        12248    12262      +14     
===========================================
  Hits          1290     1290              
- Misses       10958    10972      +14     
Impacted Files Coverage Δ
...ib/pages/preferences/user_preferences_account.dart 19.10% <0.00%> (-1.88%) ⬇️

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

@M123-dev M123-dev added this to the v4 milestone Nov 6, 2022
@VaiTon VaiTon requested a review from g123k November 6, 2022 14:06
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 @prathamsoni11

@M123-dev M123-dev merged commit 52f04ee into openfoodfacts:develop Nov 7, 2022
@monsieurtanuki monsieurtanuki mentioned this pull request Nov 10, 2022
1 task
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.

7 participants