Skip to content

Enhancement Request: Include File Deletion Feature on Code Download in Compiler Repository #71

@AnkanSaha

Description

@AnkanSaha

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:

  1. Upload a code snippet to the Code Compiler.
  2. Execute the code and ensure it is stored in the MongoDB.
  3. Download the executed code.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions