-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed invalid method call #33658
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
Fixed invalid method call #33658
Conversation
Hi @Bartlomiejsz. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
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. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests 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 run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
This fixed obvious 3 incorrect calls. Marking as approved. |
@magento run Database Compare, Functional Tests CE, Integration Tests, Static Tests, Unit Tests, WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
This changes would consider at first queue deploy. Changes risk low |
Thanks for the contribution and collaboration @Bartlomiejsz and @bgorski ! Tried reproducing the issue in Pre Conditions
Reproducible steps
Expected Issue as per PR description/ comments:
Actual Result
Since there is no manual scenario to execute, based on the given one description I have tried to reproduce as mentioned above. In order to proceed forward from QA stage, require a proper steps to reproduce the issue before fix. Kindly provide me detailed steps to reproduce please! |
Hi @engcom-Alfa, as the code changes graphql modules, you got to request those invoices with the items using graphql. Also, please make sure that the order has no value in Another way to check those changes is to simply add |
Hi @Bartlomiejsz Invoices with/without discount_description in the tables sales_order & sales_invoice, responding with internal server error. Responding the same before fix case, and after PR fix case as well. |
@engcom-Alfa You are using a deprecated query. Which indeed doesn't work - thanks for letting me know, I'll create a separate PR for that.
This will trigger the faulty behavior. What's important about this is that your Magento instance will probably have the |
Thank you so much for the detailed reproducible steps @bgorski ! Manual testing scenario:
Before: ✖️ Getting an error for the GraphQL invoice details request. After: ✔️ GraphQL invoice details request works as well as expected. The actual response received is displayed below There is no other additional regression testing is required since it is a particular graphql request related issue. Since it is related to Qraphql, its testing must be covered with auto-test execution. Can you please add the auto-test execution on this @Bartlomiejsz |
@engcom-Alfa thank you for testing the PR
I won't be able to write test in any of those options, so if you will still believe that this is required, unfortunately this will have to be picked up by someone else... |
@engcom-Alfa as for tests, what we're dealing with here is a function-level fix - a replacement of a faulty function with a correct one. This has no chance of regressing and also affects no other parts of the code because it doesn't change any data, only outputs a text. If we were to create a test for it, what we would really test is a basic core logic (if the correct |
Thank you for the detailed information @Bartlomiejsz and @bgorski , I will process it for merging! |
✔️ QA Passed Manual testing scenario:
Before: ✖️ Getting an error for the GraphQL invoice details request. After: ✔️ GraphQL invoice details request works as well as expected. The actual response received is displayed below There is no other additional regression testing is required since it is a particular Graphql request related issue (Above comment1 and comment2 has more info on this) |
Hi @Bartlomiejsz, thank you for your contribution! |
Description (*)
Issue spotted while trying to request invoice item details for order with discount, but without discount description. In that case Internal server error occurs
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
No steps required I believe, just make sure that existing method is being called :)
Questions or comments
Contribution checklist (*)