finos / waltz

Enterprise Information Service
https://waltz.finos.org
Apache License 2.0
182 stars 129 forks source link

Survey Templates: When creating a new question for a template doesn't save after picking measurable question type #7123

Closed jessica-woodland-scott-db closed 2 months ago

jessica-woodland-scott-db commented 3 months ago

Description

Exception thrown:

Generic Exception: Cannot construct instance of org.finos.waltz.model.ImmutableEntityReference, problem: Cannot build EntityReference, some of required attributes are not set [kind] at [Source: (byte[])"{"question":{"surveyTemplateId":5712,"isMandatory":true,"allowComment":false,"position":10,"externalId":null,"parentExternalId":null,"label":null,"inclusionPredicate":null,"questionText":"Clear off the qualifier field","fieldType":"BOOLEAN","qualifierEntity":{"id":33}},"dropdownEntries":[]}"; line: 1, column: 268] (through reference chain: org.finos.waltz.web.json.ImmutableSurveyQuestionInfo$Json["question"]->org.finos.waltz.model.survey.ImmutableSurveyQuestion$Json["qualifierEntity"]) / com.fasterxml.jackson.databind.exc.ValueInstantiationException

Waltz Version

1.62

Steps to Reproduce

  1. Open a survey template in draft
  2. Go to add a question
  3. Select measurable tree in the field type
  4. Select a category
  5. Change your mind and pick a different question type e.g. boolean
  6. Click 'Create'

Expected Result

Boolean question to be added to the template

Actual Result

Question doesn't save and exception thrown