-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Grid export issue task 25963 #26046
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
Grid export issue task 25963 #26046
Conversation
Hi @konarshankar07. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
I found that we can reuse the |
Hi, @konarshankar07. Thank you for your contribution. Could you please investigate for a more universal solution? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest taking a look at \Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult
.
Also $document
can be moved to the constructor to create a possibility to provide it via di.xml
for extensibility purposes.
Moreover, it is OK to modify \Magento\Framework\View\Element\UiComponent\DataProvider\Document
directly if needed.
@novikor ... Thanks for the feedback. I'll try to find the universal solution for this issue |
@konarshankar07, - If we fail to find the universal solution, the current one is OK as well. Please let me know if you feel some trouble about that and would like to give up :) |
Hi, @konarshankar07 ! It seems that I cannot review this PR anymore since I am an interested person. |
Hi, @konarshankar07 . Please fix the static tests. |
Hello @novikor , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed few things to change
/** | ||
* @var string | ||
*/ | ||
private static $customerGroupAttributeCode = 'customer_group'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use private const CUSTOMER_GROUP_ATTRIBUTE_CODE
instead.
/** | ||
* Class Document | ||
*/ | ||
class Document extends \Magento\Framework\View\Element\UiComponent\DataProvider\Document |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import class with alias.
Hi. Yes, - it is #26523 |
Hi @konarshankar07, thank you for your contribution! |
Description (*)
This PR will fix the customer_group column data is not reflected in the exported CSV
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected Result
Questions or comments
Contribution checklist (*)