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: 5586 - added explicit product type to all relevant background tasks #5721

Merged
merged 4 commits into from
Oct 25, 2024

Commits on Oct 21, 2024

  1. feat: 5586 - added explicit product type to all relevant background t…

    …asks
    
    New file:
    * `work_type.dart`: Type of long download work for some background tasks.
    
    Impacted files:
    * `background_task.dart`: removed the default `uriProductHelper` getter
    * `background_task_barcode.dart`: added a `uriProductHelper` getter that depends on the `productType`
    * `background_task_download_products.dart`: refactored the access to product type
    * `background_task_full_refresh.dart`: split by product type
    * `background_task_language_refresh.dart`: split by product type
    * `background_task_offline.dart`: refactored the access to product type
    * `background_task_progressing.dart`: added the `productType` parameter; moved code to new `WorkType` class
    * `background_task_top_barcodes.dart`: refactored the access to product type
    * `dao_product.dart`: new methods `getProductTypes` and `splitAllProducts`; refactored with product type
    * `lazy_counter.dart`: explicitly counting the "food" products
    * `newsfeed_provider.dart`: explicitly getting the news from "food"
    * `offline_data_page.dart`: now displaying "download top N products" buttons for each product type; stats for each product type
    * `offline_tasks_page.dart`: enhanced "work text" algo, now depending on product type
    * `operation_type.dart`: enhanced "key" algo, now depending on product type
    * `ordered_nutrients_cache.dart`: explicitly using the "food" nutrients
    * `product_list_page.dart`: now reloading products from their server
    * `product_list_popup_items.dart`: now linking to the first server with products
    * `product_query.dart`: made product type a mandatory parameter
    * `product_refresher.dart`: added mandatory parameter product type
    * `random_questions_query.dart`: explicitly ask for "food" robotoff products
    * `temp_product_list_share_helper.dart`: added mandatory parameter product type
    * `user_preferences_dev_debug_info.dart`: added explicit use of "food" data
    monsieurtanuki committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    dcd7dab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    618a135 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    b8bdb0f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4294e5b View commit details
    Browse the repository at this point in the history