-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
feat(api): add minio-client
provider
#237
feat(api): add minio-client
provider
#237
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #237 +/- ##
===========================================
- Coverage 91.71% 90.73% -0.98%
===========================================
Files 111 112 +1
Lines 2510 2547 +37
Branches 469 478 +9
===========================================
+ Hits 2302 2311 +9
- Misses 208 236 +28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
PR Review 🔍
|
PR Code Suggestions ✨
|
@rajdip-b i have added error handling and implemented other comments has you said. One thing i was not able to figure out is the error types. i mean |
I don't think you need to catch the types. The type will be very much expected to be caused by bucket errors, so it is fine. |
Oh ok, noted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you are returning errors. Throw them instead. Otherwise the code will be a lot more difficult!
are you talking about line 24? instead of return -> throw ? and is the exit in the place you needed? |
Quality Gate passedIssues Measures |
Fixed it with 204eab9 |
## [1.4.0](v1.3.0...v1.4.0) (2024-05-24) ### 🚀 Features * add example for health and email auth ([b834d25](b834d25)) * **api:** Add `minio-client` provider ([#237](#237)) ([cd71c5a](cd71c5a)) * **api:** Add feature to fork projects ([#239](#239)) ([3bab653](3bab653)) * **api:** Added feedback form module ([#210](#210)) ([ae1efd8](ae1efd8)) * **api:** Added Project Level Access ([#221](#221)) ([564f5ed](564f5ed)) * **api:** Added support for changing email of users ([#233](#233)) ([5ea9a10](5ea9a10)) * implemented auth, ui for most, and fixed cors ([#217](#217)) ([feace86](feace86)) * **platfrom:** add delete method in api client ([#225](#225)) ([55cf09f](55cf09f)) * **postman:** add example for get_self and update_self ([e015acf](e015acf)) * **web:** Add and link privacy and tnc page ([#226](#226)) ([ec81eb9](ec81eb9)) ### 🐛 Bug Fixes * **web:** docker next config not found ([#228](#228)) ([afe3160](afe3160)) ### 📚 Documentation * Added docs regarding postman, and refactored architecture diagrams ([f1c9777](f1c9777)) * Fix typo in organization-of-code.md ([#234](#234)) ([11244a2](11244a2)) ### 🔧 Miscellaneous Chores * **api:** Get feedback forward email from process.env ([#236](#236)) ([204c9d1](204c9d1)) * **postman:** Initialized postman ([bb76384](bb76384)) * **release:** Update changelog config ([af91283](af91283)) * Remove swagger docs ([#220](#220)) ([7640299](7640299)) ### 🔨 Code Refactoring * **api:** Replaced OTP code from alphanumeric to numeric ([#230](#230)) ([f16162a](f16162a))
🎉 This PR is included in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Description
This pull request adds the
minio-client
provider to the project. Theminio-client
allows for interaction with a MinIO server, including uploading, downloading, and deleting files. This feature will enhance the functionality of the project by providing support for MinIO storage.Fixes #120
Mentions
Mention and tag the people
Developer's checklist
If changes are made in the code:
Documentation Update
PR Type
Enhancement, Documentation, Configuration changes
Description
MinioProvider
to interact with MinIO server, including functions for uploading, downloading, and deleting files.MinioProvider
in the provider module.minio
package to dependencies..env.example
.Changes walkthrough 📝
minio.provider.ts
Add `MinioProvider` for MinIO server interactions.
apps/api/src/provider/minio.provider.ts
MinioProvider
to interact with MinIO server.provider.module.ts
Register `MinioProvider` in provider module.
apps/api/src/provider/provider.module.ts
MinioProvider
in the provider module.env.schema.ts
Add MinIO environment variables to schema.
apps/api/src/common/env/env.schema.ts
docker-compose.yml
Add MinIO service to Docker Compose.
docker-compose.yml
.env.example
Add example MinIO environment variables.
.env.example
docker-compose-test.yml
Add MinIO service to test Docker Compose.
docker-compose-test.yml
environment-variables.md
Document MinIO environment variables.
docs/contributing-to-keyshade/environment-variables.md
package.json
Add `minio` package to dependencies.
apps/api/package.json
minio
package to dependencies.