appwrite / templates

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

🚀 Feature: Add storage cleaner templates #227

Closed Haimantika closed 8 months ago

Haimantika commented 9 months ago

Appwrite Functions allow you to extend and customize your Appwrite server functionality by executing your custom code. 🤩 You can learn more at our official Appwrite Functions docs.

What you’re building

Your task is to implement the storage cleaner template in Node.js.

Storage cleaner integrates with Appwrite Storage and removes all files from the buckets older than X number of days, as configured by the RETENTION_PERIOD_DAYS environment variable. The Storage cleaner should be scheduled using CRON, defaulting to running at 1:00 AM daily.

This could be used in services like PDF converters and caption generators, where file retention is periodic with high number of uploads.

Your function’s implementation should be similar to other Node.js function templates in code format and style. Make sure to follow our contributing guide.

Tasks summary:

If you need any help, contact us on our Discord server.

Are you ready to work on this issue? 🤔 Let us know, and we will assign it to you 😊

Happy coding!

mbos2 commented 9 months ago

Can I work on this one?

Haimantika commented 9 months ago

Can I work on this one?

Hi @mbos2 have assigned the issue to you! Thank you for showing interest in contributing to Appwrite! Happy Hacktoberfest 🎃

Notes:

Please update us with your progress every 3 days, so that we know that you are working on it. Join us on Discord - https://appwrite.io/discord to chat about Hacktoberfest and Appwrite!

mbos2 commented 9 months ago

@Haimantika

The Storage cleaner should be scheduled using CRON, defaulting to running at 1:00 AM daily.

Regarding this, is this the only way of execution that should be available or can I also add execution by RESTful URL that function provides?

By sending time in a request that can be same or different than what is defined in RETENTION_PERIOD_DAYS environment variable.

stnguyen90 commented 9 months ago

@mbos2 let's just stick to what's mentioned in the issue description only.

Gilbishkosma commented 9 months ago

hi @Haimantika , @stnguyen90 I want to work on this if @mbos2 drops.

mbos2 commented 9 months ago

It is half way done, but still need to finish it up.

Then test properly.

Stress test.

It will take couple of days @Gilbishkosma

mbos2 commented 8 months ago

Hi.

Due to business trip I won't make this one, unfortunatelly. My appologies.

Can you please reassign the issue to somebody else?

Thanks.

@Haimantika

Tushar98644 commented 8 months ago

@Haimantika can i take up the issue ?

Haimantika commented 8 months ago

hi @Haimantika , @stnguyen90 I want to work on this if @mbos2 drops.

Hi, are you still interested to work on it?

Gilbishkosma commented 8 months ago

hi @Haimantika , @stnguyen90 I want to work on this if @mbos2 drops.

Hi, are you still interested to work on it?

@Haimantika yes, I would love to work on this.

Kunal-Ladhani commented 8 months ago

Hi would love to work on the issue

Haimantika commented 8 months ago

hi @Haimantika , @stnguyen90 I want to work on this if @mbos2 drops.

Hi, are you still interested to work on it?

@Haimantika yes, I would love to work on this.

Assigned. Please update us with your progress every 3 days, so that we know that you are still working on it.

Gilbishkosma commented 8 months ago

Sure, thanks for assigning this to me .

Haimantika commented 8 months ago

Hi @Kunal-Ladhani @Tushar98644 we are assigning issues on a first-come, first-serve basis. The issues will go to you, only if the assigned user decides to drop

drraghavendra commented 8 months ago

Hi @Haimantika pleaseassign the issue to me

Gilbishkosma commented 8 months ago

@Haimantika I have raised a PR for this issue https://github.com/appwrite/templates/pull/242

Gilbishkosma commented 8 months ago

@Haimantika the PR #242 related to this issue is merged, we can close the issue.