Skip to content
Success

Changes

Summary

  1. feat: Implement enrollment deletion (commit: 9a02bcc) (details)
  2. feat: Implement enrollment deletion (commit: 2774ea5) (details)
  3. refactor (commit: 32888dc) (details)
  4. refactor (commit: 82b6985) (details)
Commit 9a02bcc92d92d9edb62dc9f16bcc81ebf69cfb88 by mandvi.verma
feat: Implement enrollment deletion

Adds the functionality to delete an enrollment record. This includes:
- Adding `deleteEnrollment` functions to the `EnrollmentDataSource` interface and its various implementations (HTTP, DB, repository).
- Implementing the database deletion logic in `EnrollmentEntityDao` with a new SQL `DELETE` query.
- Adding a `DELETE` request to the HTTP data source.
- Queuing the deletion for remote write in the repository.
- Calling the new `deleteEnrollment` function from the `EnrollmentListViewModel` and invalidating the paging source to refresh the list.
(commit: 9a02bcc)
The file was modifiedrespect-datalayer-http/src/commonMain/kotlin/world/respect/datalayer/http/school/EnrollmentDataSourceHttp.kt (diff)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/school/EnrollmentDataSource.kt (diff)
The file was modifiedrespect-datalayer-db/src/commonMain/kotlin/world/respect/datalayer/db/school/daos/EnrollmentEntityDao.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/enrollment/list/EnrollmentListViewModel.kt (diff)
The file was modifiedrespect-datalayer-repository/src/commonMain/kotlin/world/respect/datalayer/repository/school/EnrollmentDataSourceRepository.kt (diff)
The file was modifiedrespect-datalayer-db/src/commonMain/kotlin/world/respect/datalayer/db/school/EnrollmentDataSourceDb.kt (diff)
Commit 2774ea56e5bacf03e15ac2e3c61b3aa8b851dc19 by mandvi.verma
feat: Implement enrollment deletion
(commit: 2774ea5)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/school/ClassDataSource.kt (diff)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/school/ClassDataSource.kt (diff)
The file was modifiedrespect-datalayer-db/src/commonMain/kotlin/world/respect/datalayer/db/school/daos/EnrollmentEntityDao.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/enrollment/list/EnrollmentListScreen.kt (diff)