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 Request: Empty Archive #1625

Closed
therampagerado opened this issue May 4, 2018 · 14 comments
Closed

Feature Request: Empty Archive #1625

therampagerado opened this issue May 4, 2018 · 14 comments

Comments

@therampagerado
Copy link

Recently I've increased our virtualbox resources to 3 gb and 6 cores of our server CPU but the load when node is updating something somewhere is making the app unresponsive. It simply does not 'click'.

Will deleting old items from the recycle bin reduce the load?

I have 12 users and around 10-12 cards per day on average. Of course most of them are in the recycle bin but running the app from January I would imagine we have around 1200-1400 cards in our bin now. Of course loading it takes forever but this is normal.

What can I do to speed the app up? (other than adding gazzilion ram and moving the virtual box to new server with 4 CPUs...) :D

@xet7
Copy link
Member

xet7 commented May 4, 2018

@therampagerado

Try cleanup scripts:
https://github.com/wekan/wekan-cleanup

@therampagerado
Copy link
Author

Can something similar be implemented in admin section@

@udvarit
Copy link

udvarit commented May 6, 2018

Forget the "older than" condition, I'd be really happy with a simple "Delete everything from the recycle bin" button.

@xet7 xet7 changed the title Idea - delete recycle bin items older than..... Feature Request: Empty Recycle Bin May 6, 2018
@therampagerado
Copy link
Author

We (our company) will definitely need 'delete older than.... days' option because we sometimes need to go back and check or replicate an old order.

But fixed option will be fine for us...

  • older than 30 days
  • older than 3 months (the perfect scenario for us)
  • older than 6 months
  • older than 365 days..

etc...

@therampagerado
Copy link
Author

Today I deleted ~300 cards but the used space of the system didn't reduce. I read that mongodb does not clear the space for the files that are no longer there until we repair the db.

How to do that? And firstly - when I delete items from my recycle bin will they delete everything after them effectively freeing up space? Files, options on the cards, etc.

@feuerball11
Copy link
Contributor

I'm looking into deleting things from the recycling bin the days.

@therampagerado
Copy link
Author

@feuerball11 what do you plan here?

@feuerball11
Copy link
Contributor

I Havent looked into this deeply jet, Mostly becouse my Company wants a Presentation Tomorrow, and i'm looking at bugs for CustomFields fist, now.
But i have something in mind like Deleting single Boards / Cards, and also Deleting the content from the Complete Recycling bin.

Originaly i only wanted to do so for Boards, but i last saw that there is a racycling bin also for Cards and Lists. (Also cards have already a delete Option)

So i guess i add a Delete option for lists, and look at deleting Cards, if there is something what needs to be done, to remove them finaly from the Database.

In worst case i'll look at a Admin option for Cleaning the Database.

@feuerball11
Copy link
Contributor

Timelines moved, and i have no time to do this. Sry. I want to concentrate on Custom Fields and Advanced Filters

@udvarit
Copy link

udvarit commented Jun 10, 2018

I'm sad to hear that the feature got postponed. In the meantime, I whipped up a PHP script that deletes archived lists, archived cards, all associated data, and all activities from a Wekan export json file. My Wekan grain is a tenth of its size after the Export -> Filter -> Import cycle!
I uploaded the script in case anyone's interested: https://gist.github.com/udvarit/e5927b8ceb2220db8d7113ee96618e71
EDIT: Please don't try this with a Sandstorm installation, #1430 is still not fixed.

@xet7
Copy link
Member

xet7 commented Jun 10, 2018

@xet7 xet7 added this to the 2018-08-31 P+FX milestone Jun 24, 2018
@d3dbit
Copy link

d3dbit commented Jul 8, 2018

@udvarit ,
Thanks for your PHP script.
But could you explain to us how to use it?
Could you explain it in the wekan cleanup repo wiki?

@xet7, thanks to upload the script to the wiki.

@udvarit
Copy link

udvarit commented Jul 8, 2018

@d3dbit
Thank you very much for expressing interest for my script. I just learned that I can't make a pull request to update the wiki, so I created a gist with the instructions: https://gist.github.com/udvarit/ff21d84994678d9d3757299b44fd1237

@xet7 xet7 changed the title Feature Request: Empty Recycle Bin Feature Request: Empty Archive Nov 17, 2018
@xet7
Copy link
Member

xet7 commented Nov 17, 2018

Recycle Bin has now been renamed to Archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants