Tags: neosam/shifty-backend
Tags
Release v0.11.0 of shifty-backend Changelog: Features: - Added ShiftplanService with week retrieval logic, support for unsufficiently booked blocks, and special day handling for shiftplan generation. - Introduced a weekly resource report endpoint for retrieving specific week details. - Extended the iCal conversion method by adding a title parameter. - Implemented a REST endpoint for retrieving shiftplan data by year and week. - Added ShiftplanWeekTO transport objects to support serialization in REST endpoints. - Created a new shiftplan.rs module within the REST source directory. - Provided a script to update versions across Cargo.toml files. - Added tests and date validation for the shiftplan service. - Introduced the ShiftplanService trait along with related domain types. Improvements and Refactoring: - Updated the SQL query to group results by day_of_week and modified the volunteer hours calculation. - Improved working days calculation by filtering out unavailable days. - Enhanced employee work details filtering and incorporated volunteer hours subtraction. - Updated the slot service mock to use the new get_slots_for_week method and refined the slot retrieval process in the shiftplan service. - Refactored the shiftplan service to improve transaction handling and overall method organization. - Switched to using the gen_service_impl! macro for the ShiftplanServiceImpl. - Simplified import statements and removed unused Arc references. - Bumped the version to 0.11.0-dev and updated the shiftplan route accordingly. Fixes: - Resolved compiler issues caused by the rest-type. - Removed unused Arc and Uuid imports; added necessary imports (e.g. mockall and ShiftplanService) to fix import errors. Miscellaneous: - Updated package versions to v0.11.0. - Added a project description for AI.