-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Non-Static Customer Custom Attribute Are Always Updated When Using Customer Repository to Save #38753
Comments
Hi @NateSwanson7. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
@magento give me 2.4-develop instance |
Hi @NateSwanson7. Thank you for your request. I'm working on Magento instance for you. |
@magento I am working on this |
Hi @NateSwanson7! 👋 |
@magento add to contributors team |
Hi @NateSwanson7! 👋 |
@magento I am working on this |
Hi @NateSwanson7, here is your Magento Instance: https://38c5a955895e22f7c6495b2616fcecd6.instances-prod.magento-community.engineering |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @engcom-November. Thank you for working on this issue.
|
Hello @NateSwanson7, Thank you for the report and collaboration! We followed your steps to reproduce and created a not static customer custom attribute
We did not see a DB query specific to Customer Custom Attribute. Please find the custom module used to reproduce this issue, and let us know if we are missing anyting. Thank you. |
@engcom-November I'll double check the steps I provided when I get a bit of time later this week. Thanks |
@magento give me 2.4.4-p8 instance |
Hi @sdouma. Thank you for your request. I'm working on Magento instance for you. |
Hi @sdouma, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
@magento give me 2.4-develop instance |
Hi @sdouma. Thank you for your request. I'm working on Magento instance for you. |
Hi @sdouma, here is your Magento Instance: https://38c5a955895e22f7c6495b2616fcecd6.instances-prod.magento-community.engineering |
Hello @NateSwanson7, Can you give us any updates on this. |
@engcom-November I can't seem to reproduce this now, feel free to close this issue. |
Preconditions and environment
Steps to reproduce
my_custom_attribute
)my_custom_attribute
to any value and save\Magento\Customer\Api\CustomerRepositoryInterface
)\Magento\Customer\Api\CustomerRepositoryInterface::save()
)my_custom_attribute
even though the original value does not differ from the new valueExpected result
DB query to insert/update the value of the custom attribute is not created or ran because the value has not changed.
Actual result
DB query to insert/update the value of the custom attribute is created and ran even though the value does not differ.
Additional information
This can end up causing database deadlocks when the unnecessary insert/update query is ran which locks the row.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: