From 071b1c4529b7189e97390aa3d3ece923e202d09b Mon Sep 17 00:00:00 2001 From: shb Date: Sat, 21 Jun 2025 08:54:55 +0800 Subject: [PATCH] Update dms-api-to-do-list.md --- dms-api-to-do-list.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/dms-api-to-do-list.md b/dms-api-to-do-list.md index a98c669..109249c 100644 --- a/dms-api-to-do-list.md +++ b/dms-api-to-do-list.md @@ -28,7 +28,36 @@ When configured correctly, the file should be uploaded to a folder named `upload 1. **Create a GET route for obtaining and downloading files from S3** - There is no API function yet to get all the files in S3 and offer file download functionality. +- How to show the correct file in a directory without having to perform GET requests to AWS constantly (every call to AWS has costs, so avoid accessing it as much as possible). -2. **Add another table in database for metadata** +2. **Create DELETE route for deleting files from S3** +- There is also no DELETE function yet to remove uploaded files from S3. +- This is also considered a call to S3, so avoid using it as much as possible. + +3. **Add another table in database for metadata** - Changing metadata in AWS is very expensive, so its better to ***only*** store file uploads in S3 and keep the metadata in a separate database. -- Folder directory can be improved \ No newline at end of file +- Folder directory can be improved by adding a path column for easier bread crumb navigation. +- `/components/dms/dialogs/CreateNewDialog.vue` currently displays the correct folder structure according to the database, but because metadata is not available, the navigation for creating a new folder does not work when clicked. + +4. **Modifying UI to fit with data and metadata from database** +- A lot of the frontend UI components use hard-coded dummy data that currently does not match the current data available in the database. Consider adding another table for metadata. +- Below is a non-exhaustive list of personal recommendations: + +``` +Requesting additional changes to the database: +ADD item_count for counting total items in current folder. +ADD access_level to determine access level for each user role. +QUERY cb_sector is still unknown for what uses. +ADD children_count to determine the amount of children for the current folder. +REPLACE cb_parent_id or ADD path for each folder. + +AWS S3 recommendations: +- Add AWS Cloudfront to reduce S3 calls and usage, saving costs. +- Add function to delete files in S3. +``` + +# Contact Me +Some considerations might have went over my head. If you find yourself in a pinch or with a question, feel free to contact me through my email: +- (shariffbukhary01@gmail.com)[mailto:shariffbukhary01@gmail.com?subject=CORRAD%20EDMS] + +Thank you for your continued support and work on this project!