Environment:
master branch
Steps to reproduce:
add columnsaveExpected behaviour: Like Subquestion has front-end validation, the choices should have front-end validataion too, and an instructor should not be allowed to enter an empty choice column, as an empty choice does not make sense.
Actual behaviour: The instructor is allowed to add a empty choice column.

Hi @sukanta-27
Will you be working on this issue?
@tanhengyeow Currently my final exams are going on. So, if you want you can take it. :+1:
@tanhengyeow Have you started working on it yet?
@sukanta-27 Not at the moment, if you already found a fix you can submit a PR first 馃槃
@damithc
This code was commented out in #2815 (specifically in https://github.com/TEAMMATES/teammates/commit/5d6aabb0e0f1366974cddcbe6689f2cb643f23a6), this is the main reason for this issue coming up. I am wondering what was the reason for allowing Rubric choices to be empty? as I now see it was intentional.
I am wondering what was the reason for allowing Rubric choices to be empty? as I now see it was intentional.
hmm... I suppose some cells can be left empty. For example, if the column heading has a value, it is fine for cells below it to be empty as the meaning of the cell is implied by the column heading. e.g.,
| Bad | Good | Very Good
---|---- | ---- | ----
attitude | o | o | o
If the cell contains an explanation, column header can be left empty.
| | |
---|---- | ---- | ----
attitude | o lousy | o ok| o positive
But if both are left empty, then it is not possible to deduce the meaning of a cell. e.g.,
| | |
---|---- | ---- | ----
attitude | o | o | o
We can consider this a case of 'not worth handling because if a user is silly enough to create this scenario, let s/he suffer the consequences'
Closing this issue as this is not a bug.
Most helpful comment
hmm... I suppose some cells can be left empty. For example, if the column heading has a value, it is fine for cells below it to be empty as the meaning of the cell is implied by the column heading. e.g.,
| Bad | Good | Very Good
---|---- | ---- | ----
attitude | o | o | o
If the cell contains an explanation, column header can be left empty.
| | |
---|---- | ---- | ----
attitude | o lousy | o ok| o positive
But if both are left empty, then it is not possible to deduce the meaning of a cell. e.g.,
| | |
---|---- | ---- | ----
attitude | o | o | o
We can consider this a case of 'not worth handling because if a user is silly enough to create this scenario, let s/he suffer the consequences'