avniproject / avniproject/avni-server
Form Element always keeps value of SingleSelect or MultiSelect irrespective of whether the associated concepts data type is coded or not
- Dominant language
- Java
- Stars
- 22
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Form Element always keeps value of SingleSelect or MultiSelect irrespective of whether the associated concepts data type is coded or not
**To Reproduce**
Steps to reproduce the behavior:
Run this query:
select form_element.type from form_element
join concept c2 on form_element.concept_id = c2.id
where c2.data_type = 'Numeric';
**Expected behavior**
This value should be null for non-coded fields
**Developer Checklist**
Developer fixing the bug should fill this checklist.
- [ ] Does the fix require extensive regression testing?
- [ ] Are you mentioning the required scenarios that could be affected?
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Start by running the supplied SQL query and tracing the Java/Spring Boot handling of form_element.type with the joined concept data_type. Done means SingleSelect and MultiSelect values are null for non-coded concepts such as Numeric, while coded concepts retain their values, with regression coverage for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, postgresql, spring-boot
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100