Skip to content

VSN-2473 : Defining methods to toggle documents favorite status & correcting mapper to calculate favorite status + adapting all invocations.

yassine.elazami a demandé de fusionner VSN-2473 vers develop

Merge Request Description

Defining Signatures

Introduced method signatures related to marking and unmarking documents as favorites. This establishes the foundational contract for favorite-related actions.

Implementation Defined

Implemented the logic for marking and unmarking folders as favorites. This provides the actual behavior behind the previously defined signatures.

Defining Paths

Defined API paths for actions related to marking and unmarking documents as favorites. This ensures clear routing for these operations.

Features Exposition

Exposed new features through the controller layer. This makes the favorite-related functionality accessible via the service’s API.

Adding Docs Repository Method

Added a repository method to fetch document IDs associated with a specific user UUID. This enables user-specific favorite document handling.

Correcting Mapping

Corrected the mapping of the favorite flag in the document-to-DTO mapper. This ensures accurate representation of favorite status in data transfer objects.

Refactoring Documents to DTO Calls

Refactored document-to-DTO calls for consistency and maintainability. This improves the clarity and reliability of data transformations.

Refactoring Innovations in Controller

Refactored controller logic to streamline handling of favorite-related operations. This enhances readability and reduces redundancy.

Correcting to DTO Call in Folder Mapper

Corrected folder mapper logic to properly call DTO transformations. This ensures folder favorite status is correctly calculated and represented.

Closes VSN-2473

Rapports de requête de fusion