Closed matous-volf closed 1 month ago
The changes involve modifications to the create_project
, edit_project
, create_subtask
, edit_subtask
, create_task
, and edit_task
functions across three files. Each of these functions now includes a step to sanitize the title
field by trimming whitespace, ensuring that leading or trailing spaces are removed before validation. Additionally, the edit_task
function's signature has been updated to accept a mutable reference to allow in-place modifications. These updates aim to enhance input handling and data integrity.
File | Change Summary |
---|---|
src/server/projects.rs |
Updated create_project and edit_project to sanitize the title field by trimming whitespace. |
src/server/subtasks.rs |
Updated create_subtask and edit_subtask to sanitize the title field by trimming whitespace. |
src/server/tasks.rs |
Updated create_task and edit_task to sanitize the title field by trimming whitespace; modified edit_task to accept a mutable reference. |
src/server/tasks.rs
related to the addition of the delete_task
function are relevant because they involve modifications to the same file as the main PR, which also includes changes to the edit_task
function in that file.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
edit_task
function to accept mutable references for in-place modifications.