Skip to content

chore: [ANDROSDK-2335] migrate program domain models to kotlin#2649

Merged
taridepaco merged 15 commits into
developfrom
ANDROSDK-2335
Jun 29, 2026
Merged

chore: [ANDROSDK-2335] migrate program domain models to kotlin#2649
taridepaco merged 15 commits into
developfrom
ANDROSDK-2335

Conversation

@taridepaco

@taridepaco taridepaco commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Migrates the remaining domain models in the program package from Java AutoValue classes to Kotlin data classes annotated with @ModelBuilder: the section and stage-section models, their link tables, program rule and program rule action, category mapping, and analytics period boundary.

As part of the analytics period boundary migration, the assignment of the parent programIndicator and the validation of the mandatory fields were moved into the network DTO layer (toDomain now returns null for invalid boundaries, filtered out with mapNotNull). This lets programIndicator, boundaryTarget and analyticsPeriodBoundaryType be non-null in the domain model and removes the scattered null handling that previously lived in the handler and the DB mapper.

Related task: ANDROSDK-2335

andresmr
andresmr previously approved these changes Jun 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

@taridepaco taridepaco merged commit 74f151f into develop Jun 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants