In case there is just one algorithm (as currently is the case for the poll mode), I wonder if we should really have it as an option within the content creation form. Actually, when there's just one algorithm it's like if there was none, in a way, so maybe we should just not list them: it would be clearer to the user.

Comments

anarcat’s picture

Priority: Normal » Minor

I think that it's fine that the user can't "choose" if there's not more than one option. However, the decision algorithm should be explicitely stated for transparency, and maybe we could even provide a "help" hook that would explain users how the algorithm works...

Also, the algorithm should still be set in the database for eventual upgrades where a new algorithm would be added into the mode.

tatien’s picture

Status: Active » Fixed

This issue seems to have been fixed somehow. I'm closing it.

tatien’s picture

Status: Fixed » Needs review
StatusFileSize
new946 bytes

There was still a problem: default algorithm was unset, resulting in an empty algorithm being added to the DB when decisions mode contained only one algorithm.

tatien’s picture

StatusFileSize
new946 bytes

There was still a problem: default algorithm was unset, resulting in an empty algorithm being added to the DB when decisions mode contained only one algorithm. This patch solves that.

anarcat’s picture

Status: Needs review » Fixed

Committed, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)