Closed AlthausKonstantin closed 8 months ago
to values that are possibly not allowed.
- there's a possibility that the allowed values against the server we are running are
inprogress, not run, finished
and so we are skipping explicit enum check.- If that's not the case I believe the assignment might fail as the value may not be valid enum
- Nevertheless, I believe your concern is valid, we can get values and decide on setting or skipping it during runtime.
Thanks for the feedback. I will open a PR to fix this :)
Dear all,
I stumbled on the following bug. The function
_status_change
changes the fieldstatus
of the classTestRun
to values that are possibly not allowed. Asstatus
is an instance of the classEnumOptionId
, its possible values are determined at run time with options that come from the current Polarion project. ExampleWith the example in mind, the logic of
_status_change
does not make sense. Therefore, I propose to rewrite thetest_run
module such that it is agnostic of the possible values of status. I fear, on the other hand, that this removes functionality others might rely on. At least we could skip the relevant parts of the code if they do not match the status enumeration currently presumed. What do you think about this?Best, Konstantin