Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] 'Trash' option #76

Open
EDIflyer opened this issue Nov 16, 2024 · 6 comments
Open

[FEATURE] 'Trash' option #76

EDIflyer opened this issue Nov 16, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@EDIflyer
Copy link

Is your feature request related to a problem? Please describe.
As discussed in #26 it would be nice to have the option of 'trash'/'recycle bin' so that deleted items could be restored if deleted by mistake. Perhaps worth having as a settings toggle for those who don't like it and prefer instant delete? (a bit like Windows has that option)

Describe the solution you'd like
When deleting a snippet it just goes to a trash can.
User then has ability to restore from trash or permanently delete.

Describe alternatives you've considered
Continue existing setup of instant delete (albeit with confirmation)

Additional context
I think this is of secondary importance to the versioning suggested in the issue above, but would be a complementary offering.

@EDIflyer EDIflyer added the enhancement New feature or request label Nov 16, 2024
@vlavrynovych
Copy link

I would add an auto-delete after X days, where X can be configured

@jordan-dalby jordan-dalby added this to the Backlog milestone Nov 17, 2024
@github-project-automation github-project-automation bot moved this to Backlog in ByteStash Nov 17, 2024
@kunal697
Copy link

can i work on this issue ?

@jordan-dalby
Copy link
Owner

@kunal697 sure!

@kunal697
Copy link

kunal697 commented Jan 2, 2025

Hello,

I’m currently working on this issue and would like to confirm a few details to ensure I align with the project’s requirements.

My Proposed Approach:

  1. API Endpoint for Recycle Bin:
    Create an API endpoint to handle soft-deleted snippets.
    Deleted snippets will be moved to the recycle bin and can be retrieved through this endpoint.

  2. Scheduled Cleanup:
    Implement a scheduled task (e.g., a cron job or scheduler) to permanently delete snippets from the recycle bin after 30 days.
    This task would run once daily at a specific time.

I would like your thoughts on this or any specific requirement

@EDIflyer
Copy link
Author

EDIflyer commented Jan 2, 2025

Sounds good to me!

@jordan-dalby
Copy link
Owner

@kunal697
Yep, the proposal looks good!

@jordan-dalby jordan-dalby modified the milestones: v1.5.6, v1.6.0 Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

4 participants