Skip to content

Conversation

@teleivo
Copy link
Contributor

@teleivo teleivo commented Jan 28, 2026

Validates that program is specified when using order=enrolledAt in the tracked entities API.

The tracker API already validates that program must be specified when using enrollment-related parameters like enrollmentStatus, followUp, enrollmentEnrolledAfter, enrollmentEnrolledBefore, enrollmentOccurredAfter, and enrollmentOccurredBefore. This adds the same validation for order=enrolledAt, which also requires joining with the enrollment table.

Uses the mapped column name (enrollment.*) rather than the literal field name to detect enrollment-related ordering, making it future-proof if more enrollment order fields are added.

@sonarqubecloud
Copy link

@teleivo teleivo enabled auto-merge (squash) January 28, 2026 15:06
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