Bug #2642
Implement Archived Files Listing & Download Functionality from S3 Bucket in UI
Added by Prashant Jain about 2 months ago.
Updated 14 days ago.
Description
Description:
Create functionality to display archived files stored in S3 buckets on the application UI and allow users to download archived files when required.
Requirements:
Backend/API Changes
Create API to fetch archived file details from S3 bucket.
API should return:
File Name
File Path / Key
File Size
Archive Date / Upload Date
File Type (if applicable)
Status (Archived / Available)
UI Changes
Add new section/page for Archived Files.
Display archived files in tabular/grid format.
Columns:
File Name
File Size
Archive Date
File Type
Actions
Download Functionality
Provide Download action/button for each file.
Download should securely fetch the file from S3.
Handle permission/access validation.
Show proper error message if file is unavailable or access fails.
Optional Enhancements
Search / Filter by:
File Name
Date Range
File Type
Pagination for large datasets.
Acceptance Criteria
User can view archived files available in S3 from UI.
User can download selected archived files successfully.
Proper error handling for missing/inaccessible files.
UI remains responsive for large number of archived records.
Access control/permissions are enforced.
Backend/API:
• Implemented pagination support for archived files API.
• Added company-based filtering to ensure users can only access archived file data belonging to their logged-in company.
UI:
• Completed Archived Log Files UI implementation.
• Added archived files listing with required details and actions.
• Implemented download functionality for archived files.
• Added proper error handling, and responsive UI behavior.
Fixed theme/color consistency issues to ensure the page follows application theme behavior similar to other modules.
Implemented and tested date filter functionality, including default date handling and payload validation for API requests.
Worked on file name search/filter issues where existing files were returning no results and validated search behavior.
Performed testing and validation of UI behavior, API payloads, and filter functionality for archived log files.
Completed UI implementation for the Archived Files module, including preview and download functionality for archived files. Refined the action section to support file preview and download interactions and performed UI validation to ensure proper functionality and user experience.
I implemented searching and pagination for the Archived Logs module and verified that both features were working correctly.
Also available in: Atom
PDF