Skip to content

refactor: decouple schedule data source contracts#573

Merged
jjoonleo merged 2 commits into
mainfrom
feature/issue-545-schedule-data-source-contracts
Jun 28, 2026
Merged

refactor: decouple schedule data source contracts#573
jjoonleo merged 2 commits into
mainfrom
feature/issue-545-schedule-data-source-contracts

Conversation

@jjoonleo

Copy link
Copy Markdown
Contributor

Summary

  • Decouple ScheduleRemoteDataSource from ScheduleEntity by using schedule request/response DTOs at the remote boundary.
  • Decouple ScheduleLocalDataSource from ScheduleEntity by using Drift/data-layer schedule rows at the local boundary.
  • Keep ScheduleRepositoryImpl as the domain-facing adapter and preserve create, update, delete, get-by-id, and get-by-date behavior.
  • Add schedule data source boundary tests and align Schedule/Place glossary terms in CONTEXT.md without implementation details.

Closes #545

Tests

  • dart run build_runner build --delete-conflicting-outputs
  • flutter test test/data/data_sources/schedule_data_source_contract_test.dart test/data/data_sources/schedule_remote_data_source_test.dart test/data/data_sources/schedule_local_data_source_test.dart test/data/repositories/schedule_repository_impl_test.dart test/data/repositories/schedule_repository_impl_stream_test.dart test/data/models/schedule_preparation_contract_test.dart test/data/models/get_schedule_response_model_test.dart test/data/mappers/domain_persistence_mappers_test.dart
  • flutter analyze

@jjoonleo jjoonleo merged commit a9139b2 into main Jun 28, 2026
1 of 4 checks passed
@jjoonleo jjoonleo deleted the feature/issue-545-schedule-data-source-contracts branch June 28, 2026 15:03
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.

Decouple schedule data sources from domain entities

1 participant