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

Migrating Store Grid to UI Components #17371

Merged
merged 10 commits into from
Mar 30, 2019
Merged

Migrating Store Grid to UI Components #17371

merged 10 commits into from
Mar 30, 2019

Conversation

afirlejczyk
Copy link
Contributor

Description

Fix sorting by columns in store listing.

I override function joinGroupAndStore in \Magento\Store\Model\ResourceModel\Website\Grid\Collection.
I also use UI component to render store listing instead of block.

Fixed Issues (if relevant)

  1. Insignificant stores sorting issue  #7283: Insignificant stores sorting issue

Manual testing scenarios

  1. Login to Admin.
  2. Go to Stores -> All Stores.
  3. Sort by any column.
  4. Sorting should work.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Aug 5, 2018

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team
Copy link
Contributor

Hi @afirlejczyk. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me {$VERSION} instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@afirlejczyk
Copy link
Contributor Author

I see some tests failed, I will fix this.

Render website/store listing with UI component.
@grban grban requested a review from vkublytskyi August 29, 2018 14:32
@VladimirZaets VladimirZaets removed their assignment Sep 18, 2018
@slavvka slavvka self-assigned this Oct 4, 2018
@slavvka slavvka changed the title Fix #7283. Fix sorting in store listing. Migrating Store Grid to UI Components Oct 4, 2018
Copy link
Member

@slavvka slavvka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the issues

@slavvka
Copy link
Member

slavvka commented Oct 4, 2018

Hey @afirlejczyk Thank you for this huge and meaningful work! But currently there are conflicts with the latest magento code so please merge it and resolve conflicts. Also please look at the changes requested and fix them.

@magento-engcom-team magento-engcom-team removed this from the Release: 2.2.7 milestone Oct 18, 2018
@slavvka
Copy link
Member

slavvka commented Oct 25, 2018

@afirlejczyk Sure :)

@slavvka
Copy link
Member

slavvka commented Nov 8, 2018

Hey @afirlejczyk Our internal tests found inconsistency in UI definition:

Passed: 26, Failed: 1, Incomplete: 0, Skipped: 0.
Data set: array (
  'file' => '/var/www/html/app/code/Magento/Store/view/adminhtml/ui_component/store_listing.xml',
  'dataSourceXml' => 
  SimpleXMLElement::__set_state(array(
     '@attributes' => 
    array (
      'name' => 'store_listing_data_source',
      'component' => 'Magento_Ui/js/grid/provider',
    ),
     'settings' => 
    SimpleXMLElement::__set_state(array(
       'storageConfig' => 
      SimpleXMLElement::__set_state(array(
         'param' => 'store_id',
      )),
       'updateUrl' => 
      SimpleXMLElement::__set_state(array(
         '@attributes' => 
        array (
          'path' => 'mui/index/render',
        ),
      )),
    )),
     'dataProvider' => 
    SimpleXMLElement::__set_state(array(
       '@attributes' => 
      array (
        'class' => 'Magento\\Store\\Ui\\DataProvider\\WebsiteDataProvider',
        'name' => 'store_listing_data_source',
      ),
       'settings' => 
      SimpleXMLElement::__set_state(array(
         'requestFieldName' => 'id',
         'primaryFieldName' => 'website_id',
      )),
    )),
  )),
)
UI Component '/var/www/html/app/code/Magento/Store/view/adminhtml/ui_component/store_listing.xml' contains dataSource element without an aclResource```


Could you please fix that?

@slavvka
Copy link
Member

slavvka commented Nov 15, 2018

Hey @afirlejczyk are you going to proceed with this PR?

@afirlejczyk
Copy link
Contributor Author

@slavvka yes, I will try to make changes tomorrow or day after tomorrow.

@slavvka
Copy link
Member

slavvka commented Dec 4, 2018

Hey @afirlejczyk Are you going to proceed with the PR? It is very valuable change that would be very good to complete since there are only few changes left.

@p-bystritsky
Copy link
Contributor

Hey @afirlejczyk Our internal tests found inconsistency in UI definition:

Passed: 26, Failed: 1, Incomplete: 0, Skipped: 0.
Data set: array (
  'file' => '/var/www/html/app/code/Magento/Store/view/adminhtml/ui_component/store_listing.xml',
  'dataSourceXml' => 
  SimpleXMLElement::__set_state(array(
     '@attributes' => 
    array (
      'name' => 'store_listing_data_source',
      'component' => 'Magento_Ui/js/grid/provider',
    ),
     'settings' => 
    SimpleXMLElement::__set_state(array(
       'storageConfig' => 
      SimpleXMLElement::__set_state(array(
         'param' => 'store_id',
      )),
       'updateUrl' => 
      SimpleXMLElement::__set_state(array(
         '@attributes' => 
        array (
          'path' => 'mui/index/render',
        ),
      )),
    )),
     'dataProvider' => 
    SimpleXMLElement::__set_state(array(
       '@attributes' => 
      array (
        'class' => 'Magento\\Store\\Ui\\DataProvider\\WebsiteDataProvider',
        'name' => 'store_listing_data_source',
      ),
       'settings' => 
      SimpleXMLElement::__set_state(array(
         'requestFieldName' => 'id',
         'primaryFieldName' => 'website_id',
      )),
    )),
  )),
)
UI Component '/var/www/html/app/code/Magento/Store/view/adminhtml/ui_component/store_listing.xml' contains dataSource element without an aclResource```


Could you please fix that?

Done.

@m2-assistant
Copy link

m2-assistant bot commented Mar 30, 2019

Hi @afirlejczyk, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.2.9 milestone Mar 30, 2019
@afirlejczyk afirlejczyk deleted the bugfix/7283-insignificant-stores-sorting-issue branch October 9, 2019 16:11
Bartlomiejsz added a commit to Bartlomiejsz/magento2 that referenced this pull request Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants