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: 5005 - "obsolete product" matomo event #5042

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

monsieurtanuki
Copy link
Contributor

What

  • Sending an "obsolete product" matomo event for each product scan, when appropriate.

Fixes bug(s)

Impacted files

  • analytics_helper.dart: added an "obsolete product" matomo event
  • barcode_product_query.dart: sent an "obsolete product" matomo event when relevant
  • product_query.dart: added the new OBSOLETE product field to the fields we retrieve
  • pubspec.lock: wtf
  • pubspec.yaml: upgraded to openfoodfacts 3.4.0

Impacted files:
* `analytics_helper.dart`: added an "obsolete product" matomo event
* `barcode_product_query.dart`: sent an "obsolete product" matomo event when relevant
* `product_query.dart`: added the new OBSOLETE product field to the fields we retrieve
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded to openfoodfacts 3.4.0
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for your review!
Blocked by #5045, though.

@codecov-commenter
Copy link

Codecov Report

Attention: 42 lines in your changes are missing coverage. Please review.

Comparison is base (4d9c7fc) 9.54% compared to head (25d2806) 9.54%.
Report is 15 commits behind head on develop.

Files Patch % Lines
...kages/smooth_app/lib/resources/app_animations.dart 0.00% 28 Missing ⚠️
..._app/lib/pages/product/add_basic_details_page.dart 0.00% 5 Missing ⚠️
...app/lib/pages/product/simple_input_text_field.dart 0.00% 4 Missing ⚠️
...es/smooth_app/lib/query/barcode_product_query.dart 0.00% 3 Missing ⚠️
.../smooth_app/lib/pages/navigator/external_page.dart 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5042      +/-   ##
==========================================
- Coverage     9.54%   9.54%   -0.01%     
==========================================
  Files          325     323       -2     
  Lines        16411   16421      +10     
==========================================
  Hits          1567    1567              
- Misses       14844   14854      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@monsieurtanuki monsieurtanuki merged commit 432e9bb into openfoodfacts:develop Feb 12, 2024
6 checks passed
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for your review!

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 a Matomo event when the app scans a product that is marked "obsolete"
3 participants