Skip to content

Conversation

ihor-sviziev
Copy link
Contributor

@ihor-sviziev ihor-sviziev commented Jun 18, 2020

This PR re-adds changes from #24720 after they were reverted due to missing approval for backward incompatible changes.

Description (*)

I believe we SHOULD add this index even if it's backward incompatible change as duplicated data in this table causing a lot of issues, we're having report page when trying to load attribute option values, explanation is here:
#24718 (comment)
image

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes Missing unique key on eav_attribute_option_value table #24718

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

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)

@m2-assistant
Copy link

m2-assistant bot commented Jun 18, 2020

Hi @ihor-sviziev. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests

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.

@ghost ghost added the Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. label Jun 18, 2020
@ihor-sviziev ihor-sviziev force-pushed the add-unique-ket-on-eav-attribut-option-value branch from ce15dd0 to eb05a10 Compare June 18, 2020 11:00
@ihor-sviziev
Copy link
Contributor Author

@magento run all tests

davidverholen
davidverholen previously approved these changes Jun 28, 2020
@engcom-Delta
Copy link
Contributor

✔️ QA passed
Before:
❌ Error is shown when retrieving duplicate values of attribute options
image
image

After:
✔️ No possibility to set duplicate values for attribute options
image
✔️ Was checked saving attribute option values for different store views works as before
image
image

@engcom-Charlie engcom-Charlie self-assigned this Jul 27, 2020
@ghost ghost dismissed davidverholen’s stale review July 28, 2020 07:09

Pull Request state was updated. Re-review required.

@engcom-Charlie
Copy link
Contributor

Semantic Version Checker failed because of Unique key was added. It needs to approve.

@ghost ghost added the Priority: P3 May be fixed according to the position in the backlog. label Aug 14, 2020
@ihor-sviziev ihor-sviziev added this to the 2.5 milestone Sep 16, 2020
@ihor-sviziev
Copy link
Contributor Author

Seems like this is big change, we need to accept it in 2.5 release line

@gabrieldagama
Copy link
Contributor

Approval ticket - https://jira.corp.magento.com/browse/MC-37068

@ihor-sviziev ihor-sviziev removed this from the 2.5 milestone Nov 9, 2020
@engcom-Charlie
Copy link
Contributor

engcom-Charlie commented Sep 6, 2023

We have got the approval for our approval JIRA for Semantic Version Checker failure.

Moving it to back to Ready for testing to get the latest code merge and get the QA done again.

Thank you!

@engcom-Lima
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Lima
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Lima
Copy link
Contributor

@magento run Functional Tests B2B , Functional Tests CE

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Lima
Copy link
Contributor

✔️ QA Passed

Preconditions:

  • Install fresh Magento 2.4-develop and PHP 8.1

Manual testing scenario:

  • Verify in the eav_attribute_option_value table the duplicate value of the option_id

Before: ✖️
Screenshot 2023-09-13 at 11 25 39 AM
Frontend:
Screenshot 2023-09-13 at 11 24 55 AM

After: ✔️
Screenshot 2023-09-13 at 12 02 03 PM

Builds are failed. Hence, moving this PR to Extended Testing.

@engcom-Echo
Copy link
Contributor

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento run WebAPI Tests,Unit Tests,Static Tests,Integration Tests,Functional Tests B2B

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento run Unit Tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento run Functional Tests B2B

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

engcom-Echo commented Dec 18, 2023

Functional Tests B2B failure are different on last two run on same commit.
Run1
36976-ce

Run2
28796-b2b2

We have got the approval for our approval JIRA for Semantic Version Checker failure. Hence moving it to merge in progress

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit db49817 into magento:2.4-develop Jul 4, 2024
@ihor-sviziev ihor-sviziev deleted the add-unique-ket-on-eav-attribut-option-value branch October 25, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Component: Eav Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept Release Line: 2.4 Risk: low Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
Status: Recently Merged
Development

Successfully merging this pull request may close these issues.

Missing unique key on eav_attribute_option_value table