This pull request introduces significant refactoring, new features, and improvements across the Calendar, Stream, and Event services. Key changes include the migration of code for better modularity, the addition of new route mappings, enhancements to exception handling, and schema updates to support new functionalities.
Key Changes
1. Refactoring and Service Updates
Refactored and moved code from CalendarServiceImpl to GoogleOauth2Service to improve code organization and separation of concerns.
Updated method implementations and ensured proper service integration.
2. Route Mappings
Added a new route mapping for retrieving data required to create a stream, enhancing the capability to manage stream data effectively.
Updated the route mapping for UserEventController.addNewEventAttendee() from PUT to POST to align with RESTful best practices.
Introduced new route mappings to allow users to delete events or streams, providing additional management functionality for events and streams.
3. Exception Handling Enhancements
Implemented exception handling to prevent deletion of ongoing events, ensuring system stability and data integrity.
Added and refactored exception classes to provide clearer error messages and improve error management across the application.
4. Schema and DTO Changes
Renamed stream_type to stream_source throughout the codebase, reflecting a more accurate description of the data.
Updated the liquibase SQL script and Member class to include the is_internal field, allowing differentiation between internal and external users.
Enhanced DTOs and domain classes to support new fields and improve data encapsulation.
5. Transactional and Localization Improvements
Added @Transactional annotations to methods that modify data, ensuring data consistency and proper rollback mechanisms in case of failures.
Added localization messages to improve internationalization support, including updates to message source files.
6. Documentation and Code Quality
Added detailed documentation for new and refactored methods, classes, and routes, providing clear guidance for future development and maintenance.
Reviewed and refactored code to reduce redundancy, improve readability, and adhere to coding standards.
Testing
Conducted extensive testing to verify that all new features and refactored code work as expected.
Ensured that exception handling is robust and covers scenarios like unauthorized access and invalid requests.
Validated all route mappings and checked for compliance with RESTful conventions.
Confirmed that localization messages are correctly applied based on the user's locale.
Additional Notes
The refactoring and enhancements are aimed at improving the maintainability and scalability of the services.
The addition of new route mappings and exception handling ensures better control and error management for users interacting with events and streams.
Please review the changes and suggest any further adjustments or improvements.
Description
This pull request introduces significant refactoring, new features, and improvements across the Calendar, Stream, and Event services. Key changes include the migration of code for better modularity, the addition of new route mappings, enhancements to exception handling, and schema updates to support new functionalities.
Key Changes
1. Refactoring and Service Updates
CalendarServiceImpl
toGoogleOauth2Service
to improve code organization and separation of concerns.2. Route Mappings
UserEventController.addNewEventAttendee()
fromPUT
toPOST
to align with RESTful best practices.3. Exception Handling Enhancements
4. Schema and DTO Changes
stream_type
tostream_source
throughout the codebase, reflecting a more accurate description of the data.Member
class to include theis_internal
field, allowing differentiation between internal and external users.5. Transactional and Localization Improvements
@Transactional
annotations to methods that modify data, ensuring data consistency and proper rollback mechanisms in case of failures.6. Documentation and Code Quality
Testing
Additional Notes