-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update docs * save classroom in pupilProfile * fix * fix tests * fix tests * let removepupil remove classroom from pupilprofile * change id to classroomId in response * spelling * update classroom response to send teacher emails * update classroom detail response to send pupil status * Add membership status to pupil profile * update imports * move adding classroom to pupil profile to happen only when pupil has been approved * update function name * fix merge breaks * update tests * spotlessApply * Assume only one membership per pupil * Assume only one membership per pupil * fix test * spotless * update tests * fix merge issue * move repository stuff to service * spotless --------- Co-authored-by: Maria <145002050+marikolafs@users.noreply.github.com>
- Loading branch information
Showing
14 changed files
with
269 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/main/kotlin/edu/ntnu/idi/idatt/backend/classroom/api/ClassroomPupilResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,18 @@ | ||
| package edu.ntnu.idi.idatt.backend.classroom.api | ||
|
|
||
| import edu.ntnu.idi.idatt.backend.classroom.domain.ClassroomPupilStatus | ||
|
|
||
| /** | ||
| * DTO for response to retrieving pupil information for a classroom. | ||
| * | ||
| * @param userId the id of a pupil in the classroom. | ||
| * @param displayName the name of a pupil in the classroom. | ||
| * @param pupilStatus the pupils pending/approved status. | ||
| */ | ||
| data class ClassroomPupilResponse( | ||
| val userId: Long, | ||
| val displayName: String, | ||
| val pupilStatus: ClassroomPupilStatus, | ||
| val currentLevel: Int, | ||
| val completedStopsCount: Int, | ||
| ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.