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

Ability to control the product selection of synced products #2006

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

andyg2
Copy link
Contributor

@andyg2 andyg2 commented Jul 3, 2023

Provides the ability to control the product selection of synced products.

Changes proposed in this Pull Request:

Adding an apply filters hook allows users more control over which products can be selected for syncing.

Closes #2005

Additional details:

Tweak - Ability to filter products for syncing via gla_filter_product_query_args apply_filters hook.

Changelog entry

Tweak - Ability to filter products for syncing via gla_filter_product_query_args apply_filters hook.

Provides the ability to control the product selection of synced products.
Add apply_filters hook to prepare_query_args
@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #2006 (5cb88be) into develop (afebc1e) will increase coverage by 0.0%.
The diff coverage is 100.0%.

❗ Current head 5cb88be differs from pull request most recent head 383b065. Consider uploading reports for the commit 383b065 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             develop   #2006   +/-   ##
=========================================
  Coverage       57.9%   57.9%           
  Complexity      4111    4111           
=========================================
  Files            456     456           
  Lines          17658   17659    +1     
=========================================
+ Hits           10224   10225    +1     
  Misses          7434    7434           
Flag Coverage Δ
php-unit-tests 57.9% <100.0%> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Product/ProductRepository.php 96.2% <100.0%> (+<0.1%) ⬆️

@puntope puntope self-requested a review July 5, 2023 06:50
Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

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

Hi @andyg2

Thanks for opening this PR. Only two minor things for getting approval:

  • Changing the name of the hook following the name convention of the other hooks (see my comment)
  • Fix the PHPCS errors

@eason9487 eason9487 requested a review from puntope July 10, 2023 06:20
Copy link
Contributor

@puntope puntope left a comment

Choose a reason for hiding this comment

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

✅ LGTM - thanks for your contribution @andyg2

@puntope puntope merged commit ec55b41 into woocommerce:develop Jul 19, 2023
8 checks passed
@puntope
Copy link
Contributor

puntope commented Jul 19, 2023

FYI - This will be released potentially next Tuesday 25th July.

@eason9487 eason9487 added the changelog: add A new feature, function, or functionality was added. label Jul 19, 2023
@martynmjones martynmjones mentioned this pull request Aug 1, 2023
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: add A new feature, function, or functionality was added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow filtering of products before syncing with Google Merchant Center
3 participants