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

Price change notification #20

Merged

Conversation

aleksejsbaranovs10
Copy link
Contributor

@aleksejsbaranovs10 aleksejsbaranovs10 commented Dec 14, 2020

Description (*)

Related Pull Requests

magento/magento2#30790
https://github.com/magento/partners-magento2ee/pull/404

skovalenk/magento2#1
https://github.com/skovalenk/partners-magento2ee/pull/1

Fixed Issues (if relevant)

  1. Fixes Price change notification catalog-storefront#443
  2. Fixes [Prices] Gift cards price notification events catalog-storefront#469

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 19 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
@aleksejsbaranovs10
Copy link
Contributor Author

@magento run all tests

- Static tests fix
@aleksejsbaranovs10
Copy link
Contributor Author

@magento run Static Tests

@aleksejsbaranovs10
Copy link
Contributor Author

@magento run all tests

@@ -1,38 +0,0 @@
<?php
Copy link
Member

Choose a reason for hiding this comment

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

app/code/Magento/ProductVariantDataExporter/Test/Integration/AbstractProductVariantsTest.php
Please, delete usage of this class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

mmansoor-magento pushed a commit that referenced this pull request Dec 16, 2020
…e-data-export-15

[Imported] 427: System configuration full and updates export.
@aleksejsbaranovs10
Copy link
Contributor Author

@magento run all tests

1 similar comment
@RuslanKostiv1
Copy link
Contributor

@magento run all tests

@RuslanKostiv1
Copy link
Contributor

https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/commerce-data-export/pull/20/eec199f3c98e5c410bece73f0bf31f8a/Statics/console-error-logs.html

$actualVariations = $actualData[$data['parent_id']] ?? [];
$eventType = \in_array($data['entity_id'], $actualVariations) ? self::EVENT_VARIATION_CHANGED
: self::EVENT_VARIATION_DELETED;
$websiteId = (string)$this->storeManager->getWebsite(WebsiteInterface::ADMIN_CODE)->getWebsiteId();
Copy link
Contributor

@RuslanKostiv1 RuslanKostiv1 Dec 17, 2020

Choose a reason for hiding this comment

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

will website id be always equal to admin website id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, AFAIK not possible to change variation on website / store scope

use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Store\Model\StoreManagerInterface;
use Psr\Log\LoggerInterface;
use Magento\Store\Api\Data\WebsiteInterface;
Copy link
Contributor

Choose a reason for hiding this comment

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

is not used, please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

use Magento\DataExporter\Exception\UnableRetrieveData;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Store\Api\Data\WebsiteInterface;
Copy link
Contributor

Choose a reason for hiding this comment

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

is not used, please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@aleksejsbaranovs10
Copy link
Contributor Author

@magento run all tests

@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 26400e1 into magento:main Jan 6, 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.

[Prices] Gift cards price notification events Price change notification
6 participants