Sylius: [Bug] Cannot enable a channel for a product after new channel added

Created on 14 Dec 2016  Â·  5Comments  Â·  Source: Sylius/Sylius

While working on #7079 I found this bug.

Steps to reproduce:

  • Clean install
  • Load default fixtures
  • Go to admin
  • Create a new channel (FR Web Store)
  • Go to products page
  • Click edit in a product with variants
  • Enable channel FR Web Store
  • Save
  • The attached error shows up
  • Reload page, the channel is still disabled

captura de pantalla 2016-12-14 a las 10 17 14

Tested in:

  • demo.sylius.org
  • Locally on commit 130c38f4b630f4404fbe7a84e7194583793372d7 Dec 13 21:43
Documentation Potential Bug UX

Most helpful comment

Depending on what you call "bug". From definition:

A software bug is an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways.

What happens now is intended behaviour. We have a validation that works and prevents system from incorrect state, but the problem is with the UI since it produces a lot of unclear errors instead of a single one "You cannot enable product for channel before you fill in price for all its variants".

The product can't be assigned to a channel when the price for all its variants is not filled in, that is a platform requirement not a bug. Nevertheless I don't mind putting bug label :)

All 5 comments

In order to enable product in given channel you have to specify the price in this channel for all variants of this product. We will work on a better and more precise validation error.

@michalmarcinkowski This is a bug.

Depending on what you call "bug". From definition:

A software bug is an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways.

What happens now is intended behaviour. We have a validation that works and prevents system from incorrect state, but the problem is with the UI since it produces a lot of unclear errors instead of a single one "You cannot enable product for channel before you fill in price for all its variants".

The product can't be assigned to a channel when the price for all its variants is not filled in, that is a platform requirement not a bug. Nevertheless I don't mind putting bug label :)

I concur with @pjedrzejewski ; a customer would perceive this as a bug. It would be pointless to argue against ;-)

That being said, the validation should also display which variants are causing an issue. If you would want it to make customer friendly (not just developer friendly) it would be better to provide a price list alike view that allows you to alter prices for all variants in one view.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eb22fbb4 picture eb22fbb4  Â·  3Comments

javiereguiluz picture javiereguiluz  Â·  3Comments

crbelaus picture crbelaus  Â·  3Comments

loic425 picture loic425  Â·  3Comments

inssein picture inssein  Â·  3Comments