Skip to content

465 price full sync #21

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

Merged
merged 31 commits into from
Jan 9, 2021
Merged

Conversation

bricht
Copy link

@bricht bricht commented Dec 15, 2020

Description (*)

Related Pull Requests

Extends and depends on the following pull request:
#20

Fixed Issues (if relevant)

  1. Fixes Backoffice::Sync prices catalog-storefront#465

Questions or comments

Code Review Checklist (*)

  • Story AC is completed
  • proposed changes correspond to Magento Technical Vision
  • new or changed code is covered with web-api/integration tests (if applicable)
  • no backward incompatible changes

aleksejsbaranovs and others added 22 commits November 28, 2020 02:52
- Price change events
- Price change events
- Base price / special price batch processing
- Events batch processing
- Events batch processing
- Events batch processing
- Events batch processing
  - Improved custom option price notifications
  - Added/Improved custom option type price notifications
- Events batch processing
- Events batch processing
- Events batch processing
-Reworked message formatting for tier prices, customizable prices and normal prices
- Events batch processing
- Static tests fix
-Added product price full sync implementation with batching
-Temporarily disabled the rest of the prices providers for development
@bricht bricht closed this Dec 15, 2020
@bricht bricht reopened this Dec 15, 2020
mmansoor-magento pushed a commit that referenced this pull request Dec 16, 2020
461: Integration test failure (workaround)
/**
* Class responsible for indexing product prices and provide price change events
*/
class ProductPricesFeedIndexer implements IndexerActionInterface, MviewActionInterface
Copy link
Member

Choose a reason for hiding this comment

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

It's better to create a separate model, which will collect price data instead of depending on indexer functionality.
From indexer, we need only the "full reindex" feature.

For partial updates we may use indexer but only for the ability to use mview functionality

Copy link
Author

Choose a reason for hiding this comment

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

Done

jekabs added 2 commits December 17, 2020 12:13
-Added separate providers for full reindex
-Reorganised class structure to fit requirements
@bricht
Copy link
Author

bricht commented Dec 17, 2020

@magento run all tests

@bricht
Copy link
Author

bricht commented Dec 17, 2020

@magento run all tests

-Code cleanup
@bricht
Copy link
Author

bricht commented Dec 17, 2020

@magento run all tests

jekabs added 3 commits December 18, 2020 11:27
-Static fixes
-Moved full price synchronisation to cli command, in order to decouple from unnecessary general indexer logic
-Modified cli command to support synchronizing by single price type and moved the logic out of the cli command itself
-Added abstract test and 2 tests
-Other minor changes
@bricht
Copy link
Author

bricht commented Dec 18, 2020

@magento run all tests

@bricht
Copy link
Author

bricht commented Dec 18, 2020

Unfortunately I didn't finish adding tests in time. I added Abstract test and tests for bundle and simple product prices so these are functioning examples to make the other tests.
We are still lacking tests for:
configurable_variation,
tier_price,
downloadable_link_price,
custom_option_type_price,
custom_option_price.

@mslabko
Copy link
Member

mslabko commented Dec 18, 2020

@magento import pr to magento-commerce/commerce-data-export

@magento-engcom-team
Copy link

@mslabko the pull request successfully imported.

@mmansoor-magento mmansoor-magento merged commit c62ade4 into magento:main Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backoffice::Sync prices
5 participants