feat: implement delete content functionality and refresh content feature #458
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant improvements to the content management features in the backend, focusing on robustness and feature completeness. Notably, it implements the ability to delete content, adds an endpoint to refresh content, and enhances the download logic with retry capabilities. The changes also include updates to controllers, service layers, permissions, and tests to support these new features.
Content Management Features
DeleteContentUseCasewith a full stack (controller, service, command, interface) allowing deletion of content by link ID. [1] [2] [3] [4] Fdb06b47L139R139, Fdb06b47L150R150, [5]Robustness Improvements
DownloadContentServicewith retry logic (3 retries, 1s delay) for content downloads to improve reliability. [1] [2]Controller and API Updates
GetContentControllerto support both standard content retrieval and refresh operations; addedDeleteContentController. [1] Fdb06b47L139R139, Fdb06b47L150R150, [2]Testing Enhancements
refreshContentand deletion), including mocks for new service dependencies. [1] [2] [3]Documentation
ROADMAP.mdto mark the new features and improvements as completed, with brief implementation notes.