magento2
magento2 copied to clipboard
fix for #38585: Signed primary columns changed value
Description (*)
changed "unsigned" attribute for "value_id" column for tables from original list (This is applicable to the following tables:... from author post) + catalog_category_entity_datetime, customer_address_entity_datetime
Related Pull Requests
Fixed Issues (if relevant)
- Fixes magento/magento2#38585
Manual testing scenarios (*)
- mysql -u root -p
- use (your magento2 db name)
- desc catalog_product_entity_text (or any table from the list)
- check "value_id" type, should be unsigned
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)
- [ ] README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- [ ] All automated tests passed successfully (all builds are green)
Hi @KrasnoshchokBohdan. Thank you for your contribution! Here are some useful tips on 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
:exclamation: 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:
Database CompareFunctional Tests CEFunctional Tests EEFunctional Tests B2BIntegration TestsMagento Health IndexSample Data Tests CESample Data Tests EESample Data Tests B2BStatic TestsUnit TestsWebAPI TestsSemantic Version Checker
You can find more information about the builds here :information_source: Run only required test builds during development. Run all test builds before sending your pull request for review.
For more details, review the Code Contributions documentation. Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento run all tests
@magento run Functional Tests B2B Functional Tests CE Functional Tests EE
Failed to run the builds. Please try to re-run them later.
@magento run Functional Tests B2B
@magento run Functional Tests B2B
@magento run Functional Tests CE
@magento run Functional Tests EE
Failed tests seems flaky to me
@magento run all tests
We are moving this PR On Hold as some internal discussion is going on related to it.
@magento run all tests
@magento run all tests
Hi @KrasnoshchokBohdan,
Thanks for the collaboration & contribution!
:heavy_check_mark: QA Passed
Preconditions:
- Install fresh Magento
2.4-develop
Steps to reproduce
- mysql -u root -p
- use (your magento2 db name)
- desc catalog_product_entity_text (or any table from the list)
- check "value_id" type, should be unsigned
Before: :heavy_multiplication_x:
After: :heavy_check_mark:
Builds are failed. Hence, moving this PR to Extended Testing.
Thanks
@magento run all tests
The functional B2B failures are not same in 2 recent builds on same code. The failing tests are not failing because of PR changes, seems to be flaky. Hence moving this PR to Merge in Progress.
Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38920/fb2f4094d46ade96a80c9e3c3b13d81e/Functional/allure-report-b2b/index.html
Run 2:
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38920/aa6286563162120e7ba890719aa5fb99/Functional/allure-report-b2b/index.html#categories/9d8166a0c03ff30be1e72531365d31ec/45b8b3964c62d0b0/
@KrasnoshchokBohdan @engcom-Hotel Changes look good to me, but just wondering if we should update all such values at once? https://github.com/search?q=repo%3Amagento%2Fmagento2+unsigned%3D%22false%22+path%3A*.xml&type=code
@ihor-sviziev I can't think of any reasons why it would be better to split it up
@ihor-sviziev but this is all i found https://github.com/search?q=repo%3Amagento%2Fmagento2+unsigned%3D%22false%22+path%3A*.xml&type=code
or, maybe, I misunderstand you, please add additional information
@KrasnoshchokBohdan that's the list that I found:
- https://github.com/magento/magento2/blob/ea3216321185052523ad65728ee97a53fb8bdb86/app/code/Magento/Cms/etc/db_schema.xml#L11
- https://github.com/magento/magento2/blob/ea3216321185052523ad65728ee97a53fb8bdb86/app/code/Magento/Tax/etc/db_schema.xml#L21
- https://github.com/magento/magento2/blob/ea3216321185052523ad65728ee97a53fb8bdb86/app/code/Magento/LoginAsCustomerLog/etc/db_schema.xml#L10 Could you please check?
@magento run all tests
@ihor-sviziev thank you! I hope I understood your point
if we check the original issue description, we will see that author has pointed to the primary columns with name "value_id", so I focused on them, my bad.
I would also like to note that the search in php-storm does not work 100% correctly, I tried to check carefully, but I am afraid that I might have missed some files, so please let me know if there are any - I fix it
@KrasnoshchokBohdan, could you check test failures? https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/38920/a958c94246b4436e20c0578b455ffce8/Integration/console-error-logs.html It might be not a good idea to fix it inall places
Hi @KrasnoshchokBohdan,
Thank you for your contribution!
The PR have been moved to Merge in Progress after approval, testing and build stabilization but @KrasnoshchokBohdan, as you are started modifying the code base, moving this PR back to Changes Requested again.
Please let us know once you are completed the development on it.
Thank you!
@magento run all tests
@magento run Integration Tests
@magento run Database Compare
@magento run Unit Tests Static Tests WebAPI Tests
Failed to run the builds. Please try to re-run them later.
@magento run Unit Tests