generated from corrad-software/corrad-af-2024
Update dms-api-to-do-list.md
This commit is contained in:
parent
1a207525c5
commit
071b1c4529
@ -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**
|
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.
|
- 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.
|
- 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
|
- 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!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user