appwrite / templates

Templates for Appwrite Functions ⚡️🌩️
https://appwrite.io
MIT License
105 stars 81 forks source link

Feat implement storage cleaner node #242

Closed Gilbishkosma closed 8 months ago

Gilbishkosma commented 8 months ago

What does this PR do?

This is a PR for the issue #227. In this i had to create a template to removes all files from the buckets older than X number of days.

Test Plan

I have tested the function template in Appwrite Cloud, I created 5buckets and added 10images on each bucket, then deleted the files by executing the template. Here is the video for it: demo video

Related PRs and Issues

This is a PR for the issue #227

Have you read the Contributing Guidelines on issues?

Yes, i have Read the contribution guide.

Gilbishkosma commented 8 months ago

The only concern i have for this template is that it will take time more than 15minutes(this is the maximum execution time for a function) in case the number of files to be deleted is more than 2k. Cause currently there is no method to do bulk delete in appwrite.

Gilbishkosma commented 8 months ago

@Meldiron i have pushed the recommended changes

Gilbishkosma commented 8 months ago

@loks0n I have pushed the requested changes

loks0n commented 8 months ago

🥳 Merged!

Thanks for your contribution.

Gilbishkosma commented 8 months ago

Thanks a lot @loks0n , @Meldiron , @gewenyu99 , @stnguyen90, @Haimantika 😇. I really enjoyed working on this PR and thanks for the PR watch parties.

gewenyu99 commented 2 months ago

Hey there! There were a lot of big PRs during this Hacktoberfest, and we wanted to give everyone ample time to collaborate with our engineering team. If you were able to merge your PRs during October, amazing. If it’s still not merged, don’t worry about it either. Either way, we’ve got your Hacktoberfest swag minted and ready to ship.

Please comment with your Discord username here so we can contact you about your shipping information to deliver your Hacktoberfest swag.

Gilbishkosma commented 2 months ago

Hey there! There were a lot of big PRs during this Hacktoberfest, and we wanted to give everyone ample time to collaborate with our engineering team. If you were able to merge your PRs during October, amazing. If it’s still not merged, don’t worry about it either. Either way, we’ve got your Hacktoberfest swag minted and ready to ship.

Please comment with your Discord username here so we can contact you about your shipping information to deliver your Hacktoberfest swag.

@gewenyu99 my discord username is: gilbish

gewenyu99 commented 2 months ago

Be in touch soon!