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

Fix #13401 - Multi-Store: "Store View" sort order values are not reflected in front-end store-switcher #28163

Conversation

Bartlomiejsz
Copy link
Contributor

@Bartlomiejsz Bartlomiejsz commented May 8, 2020

Description (*)

This fixes #13401
However I only modified sort order on FE, since on admin grid it seems to be sorted alphabetically, and not sure if that should be changed. If yes, I can adjust PR.

Related Pull Requests

Fixed Issues (if relevant)

  1. Multi-Store: "Store View" sort order values are not reflected in the admin or front-end store-switcher #13401: Multi-Store: "Store View" sort order values are not reflected in the admin or front-end store-switcher

Manual testing scenarios (*)

  1. Create one website, with three Store Groups Each with 1 store
  2. Within the Store view 1, set priority of 0, Store View 2, priority of 10, Store View 3, priority of 20
  3. Review store switcher on front-end, sort order should impact order of stores visible

Questions or comments

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 are green)

@m2-assistant
Copy link

m2-assistant bot commented May 8, 2020

Hi @Bartlomiejsz. 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 give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

…ot reflected in front-end store-switcher
@Bartlomiejsz Bartlomiejsz force-pushed the feature/fix_13401_store_view_sort_order_FE branch from 263edc4 to 85b6d05 Compare May 8, 2020 13:28
@aleron75 aleron75 self-assigned this May 12, 2020
@aleron75
Copy link
Contributor

aleron75 commented May 12, 2020

Hello @Bartlomiejsz. Thanks for your pull request.
I'm re-running some functional tests because they failed, meanwhile can you please take a look at the conflicts on app/code/Magento/Store/Test/Unit/Block/SwitcherTest.php?
My best,
Alessandro

…er_FE

# Conflicts:
#	app/code/Magento/Store/Test/Unit/Block/SwitcherTest.php
@Bartlomiejsz
Copy link
Contributor Author

Hi @aleron75, done

@aleron75
Copy link
Contributor

Hi @aleron75, done

Thanks! Unfortunately, some functional tests fail, may I ask you to take a look at them?

My best,
Alessandro

@aleron75 aleron75 added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label May 13, 2020
@Bartlomiejsz
Copy link
Contributor Author

Hi @aleron75, done

Thanks! Unfortunately, some functional tests fail, may I ask you to take a look at them?

My best,
Alessandro

I checked all of failed tests, and none of those seem to be related to store switcher, so doesn't seem to be caused by my changes...

@aleron75
Copy link
Contributor

Hello,
I also asked internally to understand whether there are some issues with the functional testing suite.
I'll keep you posted.
My best.

aleron75
aleron75 previously approved these changes May 13, 2020
Copy link
Contributor

@aleron75 aleron75 left a comment

Choose a reason for hiding this comment

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

Hello @Bartlomiejsz, it seems that the functional tests that fail are flaky, so I proceed to approve this PR.

@magento-engcom-team
Copy link
Contributor

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

@engcom-Alfa
Copy link
Contributor

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @engcom-Alfa. Thank you for your request. I'm working on Magento instance for you

Copy link
Contributor

@engcom-Alfa engcom-Alfa left a comment

Choose a reason for hiding this comment

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

Hi @Bartlomiejsz.

Unfortunately, looks like your changes don't solve the issue #13401

Manual testing scenario:

  1. A website with 3 Stores each with 1 Store view;
    Screenshot from 2020-05-14 10-27-45

  2. Set sort order for store views:

  • Default -> 0
  • Second Store View -> 30
  • Third Store View -> 20
  1. Go to Storefront;

Actual Result: ✖️ Sorting has not changed

screenshot_10

Expected Result: ✔️ The Third Store should be above the Second Store

@Bartlomiejsz Could you take a look?

Thanks!

@engcom-Echo
Copy link
Contributor

@magento run all tests

@engcom-Echo engcom-Echo force-pushed the feature/fix_13401_store_view_sort_order_FE branch from 474691e to a78ddde Compare August 7, 2020 08:42
@engcom-Echo
Copy link
Contributor

@magento run all tests

@magento-engcom-team
Copy link
Contributor

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

@sidolov sidolov removed this from the 2.4.1 milestone Aug 20, 2020
@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Manual testing scenario:

  1. A website with 3 Stores (2 with 1 Store view and one with 3Store views);
    Screenshot from 2020-08-21 11-32-34

  2. Set sort order for store views:

  • Default -> 0
  • Second Store View -> 20
  • Third Store View -> 10
  • Third Store View (3) -> 11
  • Third Store View (2) -> 12
  1. Go to Storefront;

Before: ✖️ Sorting has not changed

screenshot_10

After: ✔️ Stores have correct sorting

screenshot_14

Screenshot from 2020-08-21 11-35-08

@m2-assistant
Copy link

m2-assistant bot commented Aug 26, 2020

Hi @Bartlomiejsz, 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.

@Bartlomiejsz Bartlomiejsz deleted the feature/fix_13401_store_view_sort_order_FE branch August 26, 2020 12:59
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Component: Catalog Component: Store Partner: Fast White Cat partners-contribution Pull Request is created by Magento Partner Priority: P3 May be fixed according to the position in the backlog. Progress: accept QA: Ready to add to Regression Scope Should be analyzed and added to Regression Testing Scope(if applicable) Release Line: 2.4 Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Multi-Store: "Store View" sort order values are not reflected in the admin or front-end store-switcher
9 participants