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

Add website- and storeview-code in stores admin grid #14156

Merged
merged 4 commits into from
Mar 23, 2018

Conversation

aschrammel
Copy link

This PR adds the webiste- and storeview-code in the stores admin grid like in Magento 1 stores overview.

Description

The PR joins additionally the code field from the store table to the admin grids row and adds the website code as well as the store view code in the respective renderers.

Fixed Issues (if relevant)

Manual testing scenarios

  1. Go to "Stores" > "Settings / All Stores"
  2. Before applying the PR there are only listed Website, Store and StoreView by their names
  3. After applying the PR there are the respective codes shown beneath the Website and StoreView names

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)

Add website- and storeview-code in stores Admin-Grid.
@mzeis
Copy link
Contributor

mzeis commented Mar 17, 2018

Hi @aschrammel,

thank you very much for your contribution! Would you consider adding the store name, too?

@aschrammel
Copy link
Author

aschrammel commented Mar 17, 2018

Hi @mzeis,

thanks for your feedback.
I think you mean the store code, as the name is already shown - am I right?

@mzeis
Copy link
Contributor

mzeis commented Mar 17, 2018

@aschrammel Exactly :)

Add store code in store admin grid.
@aschrammel
Copy link
Author

@mzeis Done :)

@mzeis
Copy link
Contributor

mzeis commented Mar 18, 2018

@magento-engcom-team give me new test instance

@magento-engcom-team
Copy link
Contributor

Hi @mzeis, here is your new test Magento instance

@@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
$this->getUrl('adminhtml/*/editGroup', ['group_id' => $row->getGroupId()]) .
'">' .
$this->escapeHtml($row->getData($this->getColumn()->getIndex())) .
'</a>';
'</a><br />'
. '(Code: ' . $row->getGroupCode() . ')';
Copy link
Contributor

Choose a reason for hiding this comment

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

@aschrammel Please can you make "Code" translatable in all 3 places (like "Edit Store" here: Group.php and en_US.csv?

Then we should be good to go. Thanks!

Andreas Schrammel added 2 commits March 19, 2018 07:54
Make "Code" string translateable. Translation for "Code" is already
contained in i18n/en_US.csv (Line 101).
@aschrammel
Copy link
Author

aschrammel commented Mar 19, 2018

@mzeis Code is translatable now 🌐

The translation in en_US.csv is already given on line 101.

@mzeis
Copy link
Contributor

mzeis commented Mar 19, 2018

@magento-engcom-team give me new test instance

@magento-engcom-team
Copy link
Contributor

Hi @mzeis, here is your new test Magento instance

@mzeis
Copy link
Contributor

mzeis commented Mar 19, 2018

@aschrammel Thanks for you improvements, looking good! 👍 I'm handing over to QA & merging.

@magento-engcom-team magento-engcom-team added this to the March 2018 milestone Mar 19, 2018
@magento-engcom-team
Copy link
Contributor

Hi @mzeis, thank you for the review.
ENGCOM-968 has been created to process this Pull Request

@aschrammel
Copy link
Author

@magento-engcom-team thanks for acceptance 😄
In #14157 is the respective forward port to 2.3 if wanted.

@mzeis
Copy link
Contributor

mzeis commented Mar 20, 2018

Thanks! I'll process it once the merge for this one is completed :)

@mzeis
Copy link
Contributor

mzeis commented Mar 23, 2018

Hi @aschrammel, thanks again for your PR! It has been merged into 2.2-develop. We now can proceed with #14157.

magento-engcom-team added a commit that referenced this pull request Mar 23, 2018
…in stores admin grid #14157

 - Merge Pull Request #14157 from aschrammel/magento2:2.3-develop
 - Merged commits:
   1. 6f73126
   2. 1e5745d
   3. 8004cc5
magento-engcom-team pushed a commit that referenced this pull request Mar 23, 2018
magento-engcom-team pushed a commit that referenced this pull request Mar 23, 2018
Accepted Public Pull Requests:
 - #14270: Remove usage of $.browser as it's unused and deprecated in jQuery. Fixes #14267 (by @jonathanKingston)
 - #14157: [Foward-Port of #14156] Add website- and storeview-code in stores admin grid (by @aschrammel)
 - #14218: Removing unused legacy price code (by @jonathanKingston)
 - #14173: 2.3 devel 14172 set timeout (by @jonathanKingston)


Fixed GitHub Issues:
 - #14267: Use of deprecated $.browser (reported by @jonathanKingston) has been fixed in #14270 by @jonathanKingston in 2.3-develop branch
   Related commits:
     1. 6c46def

 - #14172: Remove use of setTimeout eval (reported by @jonathanKingston) has been fixed in #14173 by @jonathanKingston in 2.3-develop branch
   Related commits:
     1. e501f67
     2. 0684b13
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.

3 participants