Commit e331bcd
Task 13886 customizable fields metadata values handling (#13908)
* #13828 - Add customizable field metadata and values infrastructure
Implements the customizable fields (metadata and values):
API Layer:
- Added CustomizableFieldType enum with 11 supported field types
- Added CustomizableFieldMetadataDto and CustomizableFieldCustomProperties for field configuration
- Added CustomizableFieldValueDto with typed value accessors for all supported types
- Added CustomizableFieldVisibilityRestrictions and CustomizableFieldVisibilityContext for
disease-based field visibility control
- Added CustomizableFieldMetadataFacade and CustomizableFieldValueFacade interfaces
Backend Layer:
- Added CustomizableFieldMetadata and CustomizableFieldValue JPA entities with JSON support
- Added CustomizableFieldMetadataService and CustomizableFieldValueService with query methods
- Added EJB facades for metadata and value management with full serialization support
- Added database schema migration with proper indexing, history tables, and triggers
- Added initial testing with CustomizableFieldFacadeEjbTest
REST API:
- Added CustomizableFieldMetadataResource for metadata CRUD and field operations
- Added CustomizableFieldValueResource for value management
UI Layer:
- Extend AbstractEditForm to support preloaded metadata and values
- Added CustomizableFieldsGroup component for grouping fields by UI group
- Added CustomizableFieldInput base class with Binder integration for automatic value sync
- Implement 11 concrete input components for all supported field types:
TEXT, TEXTAREA, NUMBER, DECIMAL, DATE, DATE_TIME,
COMBOBOX, CHECKBOX, YES_NO_UNKNOWN, CHECKBOX_LIST, RADIO_BUTTON_LIST
- Added CustomizableFieldInputFactory for polymorphic component creation
- Support field visibility restrictions, mandatory/readonly flags, and UI weighting
* add enums, modify entities, dtos required for exposure form redesign
* Updated action versions
* Added manual trigger
* Added manual trigger
* Fixed sormas app barcodescanner version
* Removed manual trigger, corrected gradle validate version
* Disabled linter, fixed maven ci
* Disabled codeql
* Disabled codeql
* Fixing codeql
* Re-added build step
* Enabled maven tests
* Temporarily disabled open canary
* Merge pull request #13893 from SORMAS-Foundation/task-update_github_actions
Updated app ci token
* Summary: Malaria and Dengue Sample and Pathogentestform changes.
Changes:
#13801
#13814
* Fixed the possible issues
* Review fixes for exposure dates
* Review fixes for exposure dates
* fix for possible script failure
* #13711 - Update Android app to support multiple contact proximities.
Migrate contactProximity from single enum to Set<ContactProximity> in the
Android app to match the API/backend changes.
* Resolve PR comments in-line with the initial commit
* Resolve PR comments in-line with the initial commit
* Avoid silent drift between the transient set and persisted JSON & Add null check in both updateContactCategory() and getContactCategoryForProximity() to handle malformed proximity data
* Fix missing import
* Prevents NPE when Gson deserializes unknown enum values as null entries in the Set<ContactProximity>
* Changed OpenAPI Canary to fail on incompatible
* Changed image to ubuntu-latest for app ci action
* Resolved test failures
* corrected the latest case
* Updated Jacoco tool version to 0.8.14 to avoid bytecode failures
* Corrected coderabit suggestion
* [GitHub Actions] Update openAPI spec files
* Dengue review comments
* Updated app ci action
Updated YAML syntax for GitHub Actions workflow, including enabling KVM, fixing quotes, and adjusting cache keys.
* [GitHub Actions] Update openAPI spec files
* Update sql schema with TestReport renamed columns (#13901)
* Update sql schema with TestReport renamed columns
* Fixed remarks in sql schema
* Updated java ci to avoid unnecessary commits for swagger files
Add check to avoid committing if no changes are detected.
* #13883 - Fixed IGRA inputs value change listeners
- Refactored duplicated listeners for IGRA inputs into two listeners
- Fixed error caused by locale conversions with IGRA numeric inputs
* Added guards against number conversion errors
* Removed full type reference
* implement ui for new exposure form exposures changes
* implement ui for disease specific configuration of exposure user interface
* remove schema name from alter table statements
* #13828 - Add customizable field metadata and values infrastructure
Implements the customizable fields (metadata and values):
API Layer:
- Added CustomizableFieldType enum with 11 supported field types
- Added CustomizableFieldMetadataDto and CustomizableFieldCustomProperties for field configuration
- Added CustomizableFieldValueDto with typed value accessors for all supported types
- Added CustomizableFieldVisibilityRestrictions and CustomizableFieldVisibilityContext for
disease-based field visibility control
- Added CustomizableFieldMetadataFacade and CustomizableFieldValueFacade interfaces
Backend Layer:
- Added CustomizableFieldMetadata and CustomizableFieldValue JPA entities with JSON support
- Added CustomizableFieldMetadataService and CustomizableFieldValueService with query methods
- Added EJB facades for metadata and value management with full serialization support
- Added database schema migration with proper indexing, history tables, and triggers
- Added initial testing with CustomizableFieldFacadeEjbTest
REST API:
- Added CustomizableFieldMetadataResource for metadata CRUD and field operations
- Added CustomizableFieldValueResource for value management
UI Layer:
- Extend AbstractEditForm to support preloaded metadata and values
- Added CustomizableFieldsGroup component for grouping fields by UI group
- Added CustomizableFieldInput base class with Binder integration for automatic value sync
- Implement 11 concrete input components for all supported field types:
TEXT, TEXTAREA, NUMBER, DECIMAL, DATE, DATE_TIME,
COMBOBOX, CHECKBOX, YES_NO_UNKNOWN, CHECKBOX_LIST, RADIO_BUTTON_LIST
- Added CustomizableFieldInputFactory for polymorphic component creation
- Support field visibility restrictions, mandatory/readonly flags, and UI weighting
* Fixed sormas_schema
* Improved UI Group handling and fixed other issues
- UI Group is now an enum instead of a string tied to Context
- Added handling for translation of captions and descriptions
- Improved rendering of YesNoUnkown component
* Added better handling for customizable field deletionconfiguration
- fixed history triggers
- added customizable fields tables to export
* Modified field value metadata uuid to strong typed
* Tweeked enum handling, added CustomizableFieldValue table partitions
* Hide customizable field group on UI when no fields
* Added customizable field admin UI and Case Form integration
* Fixed EJB local inject causing test failures
* Removed customizable field value table partitioning, not supported by unit tests postgres v10
* Fixed history tables
---------
Co-authored-by: Obinna Henry <55580796+obinna-h-n@users.noreply.github.com>
Co-authored-by: Karnaiah Pesula <karnaiah.pesula@sormas.org>
Co-authored-by: Harold <harryasiimwe@gmail.com>
Co-authored-by: sormas-robot <accounts@sormas.org>1 parent ac0e072 commit e331bcd
85 files changed
Lines changed: 7402 additions & 399 deletions
File tree
- sormas-api/src/main
- java/de/symeda/sormas/api
- common
- customizablefield
- i18n
- importexport
- user
- resources
- sormas-backend/src
- main
- java/de/symeda/sormas/backend
- caze
- contact
- customizablefield
- deletionconfiguration
- epidata
- importexport
- resources
- META-INF
- sql
- test
- java/de/symeda/sormas/backend
- customizablefield
- resources/META-INF
- sormas-rest/src/main
- java/de/symeda/sormas/rest/resources
- webapp/WEB-INF
- sormas-ui/src
- main
- java/de/symeda/sormas/ui
- caze
- configuration
- customizablefield
- contact
- epidata
- exposure
- utils
- components
- customizablefield
- webapp
- VAADIN/themes/sormas
- components
- WEB-INF
- test/resources/META-INF
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
508 | 510 | | |
509 | 511 | | |
510 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
511 | 521 | | |
512 | 522 | | |
513 | 523 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
Lines changed: 67 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
Lines changed: 117 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
Lines changed: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments