-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
Area: Import / exportComponent: DBIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Reported on 2.4.xIndicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions and environment
- Reproducible in all versions
- Below line of code firing 2 select queries one after another to the
importexport_importdata
table which seems to be totally unnecessary when the data is already set from the ControllerMagento\ImportExport\Controller\Adminhtml\Import\Start
- In addition on version 2.4.7 compare to 2.4.4 there is a change of function argument in
public function getEntityTypeCode($ids = null)
public function getBehavior($ids = null) - The above argument change affected the customisation whoever used it since not passing the id will throw exception from https://github.com/magento/magento2/blob/9e7230b0815f9978e3dd5e60d2521ae93a88f434/app/code/Magento/ImportExport/Model/ResourceModel/Import/Data.php#L185C17-L185C74
which is totally unnecessary
Steps to reproduce
- Enable Db log or add log in this function
public function getUniqueColumnDataWithIds($code, $ids = null) - Import product data from admin
- You can find 2 select queries to
importexport_importdata
table one after the another
Expected result
No select queries should be fired since its unnecessary
Actual result
2 select queries getting fired
Additional information
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Area: Import / exportComponent: DBIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Reported on 2.4.xIndicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch