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: Add storage cleaner templates #227

Closed
6 tasks
Haimantika opened this issue Oct 9, 2023 · 17 comments
Closed
6 tasks

🚀 Feature: Add storage cleaner templates #227

Haimantika opened this issue Oct 9, 2023 · 17 comments
Assignees
Labels
hacktoberfest Issues for Hacktoberfest 2023

Comments

@Haimantika
Copy link

Haimantika commented Oct 9, 2023

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:

  • Fork & clone Appwrite's templates repository
  • Create a branch feat-implement-storage-cleaner-node
  • Write code for the function in folder node/storage-cleaner/.
  • Test the function using Appwrite, provide a video.
  • Write a README.md explaining what the function does, how to use it, and customize it. Here is an example.
  • Submit a pull request to our templates repository

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!

@Haimantika Haimantika added the hacktoberfest Issues for Hacktoberfest 2023 label Oct 9, 2023
@mbos2
Copy link

mbos2 commented Oct 9, 2023

Can I work on this one?

@Haimantika
Copy link
Author

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
Copy link

mbos2 commented Oct 9, 2023

@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
Copy link

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

@Gilbishkosma
Copy link

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

@mbos2
Copy link

mbos2 commented Oct 11, 2023

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
Copy link

mbos2 commented Oct 14, 2023

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
Copy link

@Haimantika can i take up the issue ?

@Haimantika
Copy link
Author

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

Hi, are you still interested to work on it?

@Gilbishkosma
Copy link

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.

@Haimantika Haimantika assigned Gilbishkosma and unassigned mbos2 Oct 14, 2023
@Kunal-Ladhani
Copy link

Hi would love to work on the issue

@Haimantika
Copy link
Author

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
Copy link

Sure, thanks for assigning this to me .

@Haimantika
Copy link
Author

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
Copy link

Hi @Haimantika pleaseassign the issue to me

@Gilbishkosma
Copy link

@Haimantika I have raised a PR for this issue #242

@Gilbishkosma
Copy link

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

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

No branches or pull requests

8 participants