You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of #4454 (comment) we introduced alphabetical ordering of products in OC admin page. However this is not working anymore.
There is no actual workaround except doing a search within the page.
Steps to Reproduce
Create or edit an OC for hub 922 in French prod or use Mercia Food hub in UK staging (ID 201002)
Observe ordering of product in both incoming and outgoing steps
Animated Gif/Screenshot
Severity
bug-s3: a feature is broken but there is a workaround
Your Environment
Version used: v2.7.6
Browser name and version: Firefox 73
Operating System and version (desktop or mobile): Desktop
The text was updated successfully, but these errors were encountered:
RachL
added
the
bug-s3
The bug is stopping a critical or non-critical feature but there is a usable workaround.
label
Feb 25, 2020
RachL
changed the title
Product not ordered alphabetically within OC edition/creation page
Products not ordered alphabetically within OC edition/creation page
Feb 25, 2020
ok, I can explain the regression!
First of all, we dont have auto tests to verify alpha ordering, a MUST have for this issue here so this doesnt happen again...
Alpha ordering was introduced in #4454 merged on Nov 27th.
But after this we had all the work in the OC edit page coming in #4455 merged Dec 17th. From 4455 we started fetching the products from a completely different place (pagination!). Not ordered.
In this issue we can remove unnecessary product order from EnterpriseSerializer and add it where it is needed: ExchangeProductsRenderer: here for incoming and here for outgoing, or maybe here for both cases.
Good first issue only if the dev knows how to build ActiveRecord queries already.
It will be as simple as adding something like relation.order(:name) or relation.order("spree_products.name") in the correct place. And then test it in the ExchangeProductsRenderer spec.
sigmundpetersen
changed the title
Products not ordered alphabetically within OC edition/creation page
Products not ordered alphabetically within OC edit/create page
Apr 17, 2020
sigmundpetersen
changed the title
Products not ordered alphabetically within OC edit/create page
Products not sorted alphabetically within OC edit/create page
Sep 9, 2020
Description
As part of #4454 (comment) we introduced alphabetical ordering of products in OC admin page. However this is not working anymore.
There is no actual workaround except doing a search within the page.
Steps to Reproduce
Animated Gif/Screenshot
Severity
bug-s3: a feature is broken but there is a workaround
Your Environment
The text was updated successfully, but these errors were encountered: