-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Missing unique key on eav attribute label table #30981
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
base: 2.4-develop
Are you sure you want to change the base?
Missing unique key on eav attribute label table #30981
Conversation
Hi @alex311982. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run Functional Tests B2B |
@magento run Functional Tests EE |
Hi @alex311982, |
@magento run all tests |
@ihor-sviziev The description is updated. |
Just copied priority and severity labels from issue. The changes looks good to me, but let's wait for test results |
@magento run all tests |
1 similar comment
@magento run all tests |
@@ -486,6 +486,10 @@ | |||
referenceColumn="attribute_id" onDelete="CASCADE"/> | |||
<constraint xsi:type="foreign" referenceId="EAV_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID" table="eav_attribute_label" | |||
column="store_id" referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/> | |||
<constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID_UNIQUE"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the name should be, as you have different soring of the columns, also "_UNIQUE" suffix isn't really needed here
<constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID_UNIQUE"> | |
<constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_LABEL_STORE_ID_ATTRIBUTE_ID"> |
@@ -390,4 +392,4 @@ | |||
"EAV_FORM_ELEMENT_TYPE_ID_ATTRIBUTE_ID": true | |||
} | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add empty line to the file, as it was before
We have a couple of auto-test jobs being failed after many tried. Hence moving the PR ticket to Extended Testing. |
@magento run Functional Tests EE, Semantic Version Checker |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
…e-key-on-eav_attribute_label-table
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests B2B, Functional Tests EE, Semantic Version Checker, Functional Tests CE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B, Semantic Version Checker |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests B2B, Functional Tests CE, Semantic Version Checker |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Functional Tests CE, Semantic Version Checker |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Created Approval Jira ticket for the SVC test failure. Waiting for the approvals. Moving it to Pending Approval now. Thank you! |
Created new Approval Jira ticket on adobe portal for the SVC test failure. Waiting for the approvals. Thank you! |
@magento run Semantic Version Checker |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@engcom-Charlie any updates on this? |
@magento run all tests |
@ihor-sviziev we are waiting for the approvals, once that is done, will proceed with this PR and keep updated here. |
Description (*)
The table eav_attribute_label should contain a unique key constraint on the (store_id, attribute_id) pair.
This PR add it. Fixes #24581
Contribution checklist (*)
Pull request has a meaningful description of its purpose
All commits are accompanied by meaningful commit messages
All new or changed code is covered with unit/integration tests (if applicable)
All automated tests passed successfully (all builds are green)