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

Prevent change log entry when nothing has changed #4893

Merged
merged 4 commits into from
Jul 24, 2017

Conversation

AntonEvers
Copy link
Contributor

@AntonEvers AntonEvers commented Jun 6, 2016

Fixes #2987

If an entry has no changes but did get a MySQL UPDATE the trigger will not fire.
This prevents entities from being reindexed when they haven't changed.

This way the refresh index cron job finishes faster without any loss of functionality.
This updated_at column is ignored because this is the only column that will always change, even if no attribute has been edited.

@vkorotun vkorotun added Application Framework improvement Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed PS Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Aug 3, 2016
@AntonEvers
Copy link
Contributor Author

We are running stable with this change for 1 month now.

@AntonEvers
Copy link
Contributor Author

Any updates on this ticket?

@ishakhsuvarov
Copy link
Contributor

Hi @ajpevers
Please check the Travis CI build failures and update with current develop branch.
Thanks!

@AntonEvers
Copy link
Contributor Author

Updated with develop. I will check the Travis CI build failures.

@okorshenko okorshenko modified the milestones: April 2017, May 2017 May 9, 2017
@okorshenko okorshenko modified the milestones: May 2017, June 2017 Jun 1, 2017
@AntonEvers
Copy link
Contributor Author

I think that I might have time this week to look into the checks, bear with me

Fixes magento#2987

If an entry has no changes but did get a MySQL UPDATE the trigger will not fire.
This prevents entities from being reindexed when they haven't changed.

This way the refresh index cron job finishes faster without any loss of functionality.
This updated_at column is ignored because this is the only column that will always change, even if no attribute has been edited.
@AntonEvers
Copy link
Contributor Author

AntonEvers commented Jun 13, 2017

@ishakhsuvarov I've fixed errors that came up in the unit tests \Magento\Framework\Mview\Test\Unit\View\SubscriptionTest::testCreate and \Magento\Framework\Mview\Test\Unit\View\SubscriptionTest::testRemove.

@AntonEvers
Copy link
Contributor Author

@ishakhsuvarov Done

@okorshenko okorshenko modified the milestones: June 2017, July 2017 Jul 2, 2017
@magento-team magento-team merged commit d41bc5b into magento:develop Jul 24, 2017
magento-team pushed a commit that referenced this pull request Jul 24, 2017
magento-team pushed a commit that referenced this pull request Nov 10, 2017
Tasks
- MAGETWO-80207 [2.2.x] - Modified Bundle.js because of breaking Encoding in Production -
 Mode. #10563
- MAGETWO-80188 [2.2.x] - Prevent change log entry when nothing has changed #4893
- MAGETWO-70323 [GITHUB] Can't add to cart Bundle product with simple product option price as "zero" #8969
magento-engcom-team pushed a commit that referenced this pull request Oct 15, 2019
[Magento Community Engineering] Community Contributions - 2.3-develop latest changes
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.

6 participants