Skip to content
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

OrderGridCollectionFilter Plugin Breaks Mapping for created_at Column #38916

Closed
1 of 5 tasks
sgeleon opened this issue Jul 11, 2024 · 23 comments
Closed
1 of 5 tasks

OrderGridCollectionFilter Plugin Breaks Mapping for created_at Column #38916

sgeleon opened this issue Jul 11, 2024 · 23 comments
Assignees
Labels
Issue: On Hold Reported on 2.4.7-p1 Indicates original Magento version for the Issue report.

Comments

@sgeleon
Copy link

sgeleon commented Jul 11, 2024

Preconditions and environment

  • Magento v2.4.7-p1

Steps to reproduce

STEPS TO REPRODUCE
Sales > Orders
Filters > set Purchase Date from and to
Click Apply Filters

image

Expected result

The filters are applied.

Actual result

'Something went wrong with processing the default view and we have restored the filter to its original state.

Additional information

This problem is same like from this bug report.

This plugin is fixed it.

Index: vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php b/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php
--- a/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php	
+++ b/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php	(date 1717557636000)
@@ -56,7 +56,7 @@
             }
 
             $fieldName = $subject->getConnection()->quoteIdentifier($field);
-            $condition = $subject->getConnection()->prepareSqlCondition($fieldName, $condition);
+            $condition = $subject->getConnection()->prepareSqlCondition('`main_table`.'.$fieldName, $condition);
             $subject->getSelect()->where($condition, null, Select::TYPE_CONDITION);
 
             return $subject;

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”.
Copy link

m2-assistant bot commented Jul 11, 2024

Hi @sgeleon. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

Copy link

m2-assistant bot commented Jul 15, 2024

Hi @engcom-Dash. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

@engcom-Dash
Copy link
Contributor

@magento give me 2.4-develop instance

Copy link

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

Copy link

@engcom-Dash
Copy link
Contributor

Hi @sgeleon

Thanks for reporting and collaboration.

Verified the issue on Magento 2.4 dev instance but the issue is not reproducible.

However, we can reproduce the issue on 2.4.7-p1.

The issue might have been fixed in the latest 2.4 dev branch.

Steps to reproduce
STEPS TO REPRODUCE
Sales > Orders
Filters > set Purchase Date from and to
Click Apply Filters

Please refer the attached screen-recording.

In 2.4 dev instance:

38916.mov

In 2.4.7-p1:

Screenshot 2024-07-16 at 4 22 04 PM

@engcom-Dash engcom-Dash added the Issue: needs update Additional information is require, waiting for response label Jul 16, 2024
@hclauss-ltk
Copy link

Hello together,

we have the same issue and can´t filter our products anymore, same error applies. Also since the error occurs, we can´t even see the unfiltered product overview anymore. Are there any updates how to reset this?

Thanks in advance!

@engcom-Dash
Copy link
Contributor

@magento give me 2.4-develop instance

Copy link

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

Copy link

@engcom-Dash
Copy link
Contributor

@magento give me 2.4-develop instance

Copy link

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

Copy link

@engcom-Dash
Copy link
Contributor

@magento give me 2.4-develop instance

Copy link

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

Copy link

@engcom-Dash
Copy link
Contributor

Hi @sgeleon

We have verified the issue on 2.4 dev instance but the issue is not reproducible.

Please look into the screenshots attached.

Screenshot 2024-07-23 at 11 04 06 AM

Let us know if we missed anything.

Thanks.

@Bashev
Copy link
Contributor

Bashev commented Jul 24, 2024

Fixed in #36818, but it's never released.

$fieldName = $subject->getConnection()->quoteIdentifier('main_table.' . $field);

@engcom-Dash can you confirm, this will comes with next release?

Copy link

m2-assistant bot commented Jul 31, 2024

Hi @engcom-Delta. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@Bashev
Copy link
Contributor

Bashev commented Aug 26, 2024

@engcom-Hotel what kind of update is required here? As i mentioned above, PR is merged (f09c222), but somehow is not released in 2.4.7-p2

@engcom-Hotel
Copy link
Contributor

Hello @Bashev,

Thanks for your query!

We have started a discussion internally on your query and will reply you back ASAP on this.

Meanwhile moving this issue on hold.

Thanks

@engcom-Hotel engcom-Hotel added Issue: On Hold and removed Issue: needs update Additional information is require, waiting for response labels Aug 27, 2024
@engcom-Hotel
Copy link
Contributor

Hello @Bashev,

We have just received a reply from the internal team. The fix will be released in the 2.4.8 version.

Thanks

@dchaykas
Copy link

dchaykas commented Sep 11, 2024

@engcom-Hotel will the fix address #39000 as well? If yes, then it can be closed with a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: On Hold Reported on 2.4.7-p1 Indicates original Magento version for the Issue report.
Projects
None yet
Development

No branches or pull requests

8 participants