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

Cleanup attachments #1

Closed
xet7 opened this issue Feb 28, 2017 · 3 comments
Closed

Cleanup attachments #1

xet7 opened this issue Feb 28, 2017 · 3 comments

Comments

@xet7
Copy link
Member

xet7 commented Feb 28, 2017

From @fmonthel

Wekan-cleanup fix to delete (at least into cfs.attachments.filerecord) upload data.
Not sure how to proceed with other cfs.* collection, I need to look deeper
wekan-cleanup fix as well to delete checklists

Script is deleting as well board(s) with no cards into and created more than x days ago

@maulal
Copy link
Contributor

maulal commented Feb 28, 2017

Hi, i have already write a script in javascript that delete all orphans data in wekan (gridFS document also). I think it should be better to use javascript also to cleanup the databases (in the future it could be integrate easily in wekan with a "cron like" pluggin).

At least, it's easier to execute:

  • No need to install a python driver
  • the script work with the mongo shell only (it's often install with the databases)

For my purpose, i will do this script, so if it's needed i can share.

bye

@xet7
Copy link
Member Author

xet7 commented Feb 28, 2017

@maulal

Please submit pull request to this repo, that does:

  • Create new directory named "Javascript"
  • Add your Javascript cleanup script, license and readme to that Javascript directory
  • If possible, use MIT license so your code is easier to integrate to Wekan.

Thanks!

@maulal
Copy link
Contributor

maulal commented Mar 1, 2017

@xet7 Done ! I will add soon another script, in the same idea as @fmonthel did, but in javascript.

bye

@xet7 xet7 closed this as completed Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants