-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento2.4 GraphQL CustomerOrders Query Logic #31537
Comments
Hi @LouisFangAligentConsulting. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 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, 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 I am working on this |
Hi @Santoshziffity! 👋 |
@magento add to contributors team |
Hi @Santoshziffity! 👋 |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @LouisFangAligentConsulting, We have tried to reproduce this issue in Magento 2.4-develop branch and it is reproducible for us while extending. To reproduce this issue we have followed the steps mentioned in the main description as well as enabling DB logs via the command I am attaching the db.log related to that query with the stack trace. It will help the developer in fixing the issue. Thanks |
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Once all required labels are present, please add |
@magento I am working on this |
Hi @serbynskyi! 👋 |
@magento add to contributors team |
Hi @serbynskyi! 👋 |
@magento I am working on this |
@magento add to contributors team |
Hi @Kiraberos! 👋 |
@magento add to contributors team |
Hi @GrzegorzWalewski! 👋 |
@magento I am working on this |
I don't have time right now to fix it on Magento's repo, but here is a patch I came with which fix this issue:
The only thing that has to be changed is |
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket AC-1805 by the internal team Based on the Jira ticket, the target version is 2.4.6. Thanks |
Preconditions (*)
1.Magento2.4.0
2.GraphQL
Steps to reproduce (*)
1.Create a new Module HelloWorld.
2.Create a schema.graphqls in HelloWorld/Sales/etc/ folder to extend the CustomerOrderFilterInput.
Put following codes in this file:
3.Use the following payload and
{{your URL}}/graphql
to query the customer token.4.Put above token in Postman Headers
Authorization
withBearer {{your token}}
.5.Use following payload to query the above customer's sales orders.
6.The above query will get the result of all orders from 2021-01-02 or to 2021-01-04, not between 2021-01-02 and 2021-01-04.
Expected result (*)
1.What I expect is that the orders between 2021-01-02 and 2021-01-04.
Actual result (*)
1.The actual result is that the orders from 2021-01-02 or to 2021-01-04.
2.OrderFilter.php file makes filter conditions in the same filterGroups item and the relationship is
OR
. Maybe it is not a bug, but generally every condition should be in a separate filterGroups which relationship isAND
. More ideally, in graphQL payload, some style likeand: "true"
can be provided to make a different logic combination.Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: