StreetCode
StreetCode copied to clipboard
New functionality of Calendar Events
Summary of issue
Need to create an "Events" entity for the new "Calendar" module
Summary of change
- Created new table "Event" in the db. Implemented TPH approach: Two entities Historical events and Custom events are in the one table and inherit base class (Event).
- Created DTOs for Events.
- Created controller for CRUD endpoints.
- Implemented Repository and MediatR patterns.
- Implemented validation for Events.
- Implemented Unit and Integration tests.
Summary by CodeRabbit
- New Features
- Introduced a comprehensive event management system for browsing, creating, updating, and deleting events.
- Expanded support for both historical and custom events, enhancing the variety of event data available.
- Added refined input validations and localized, user-friendly error messaging to improve overall experience.
- Implemented pagination and filtering options for retrieving event lists.
- Added new data transfer objects (DTOs) for better data handling in event management.
- Introduced a new controller for managing event-related HTTP requests.
This update delivers an improved, seamless interaction with event data, ensuring smoother and more reliable event management for users.