-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Problem:
Currently, in the Code Compiler Repository, when users download their code, the program only deletes the corresponding MongoDB record, leaving the downloaded file intact. This poses a potential issue as it could lead to an accumulation of unnecessary files over time.
Feature Request:
We need to enhance this functionality to ensure that not only the MongoDB record is deleted but also the associated file upon user download. This will help maintain a clean and efficient system, preventing the unnecessary buildup of files that are no longer needed.
Proposed Solution:
Implement a file deletion mechanism in conjunction with MongoDB record deletion when a user initiates a download. This involves updating the codebase to include the necessary file deletion logic, ensuring that all related files are promptly removed from the system.
Steps to Reproduce:
- Upload a code snippet to the Code Compiler.
- Execute the code and ensure it is stored in the MongoDB.
- Download the executed code.
- Verify that both the MongoDB record and the associated file are successfully deleted.
Additional Considerations:
- Ensure that the file deletion process is secure and does not inadvertently affect other files or compromise system integrity.
- Update documentation to reflect the new feature, providing clear instructions for users.
This enhancement will contribute to a more streamlined and efficient user experience, preventing unnecessary clutter in the system and improving overall maintenance.