sartography / cr-connect

0 stars 0 forks source link

Validation issue in IDS Approval workflow #493

Closed calexh-sar closed 2 years ago

calexh-sar commented 3 years ago

The following error is thrown when running the shield test on the IDS Approval workflow.

image.png

The StaffTrainingDetails field has a hide_expression which is StaffTraining.value == "No" or StaffTraining.value == None

In the validation, StaffTraining.value was:

  "StaffTraining": {
    "value": "Unknown",
    "label": "Unknown"

It appears that Staff\TrainingDetails did not get populated.

For the case when `StaffTraining.value == "No", I added:

if StaffTraining.value == "No":
    StaffTrainingDetails = "Not required"
calexh-sar commented 2 years ago

Discussed with Mike, checking to see if this is a Configurator issue.

calexh-sar commented 2 years ago

No longer getting this error after enum refactor.