-
Notifications
You must be signed in to change notification settings - Fork 62
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
Refactor 28 generic s3 #45
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM, tiny code-quality improvements.
Let's also try to implement one test using a Generic adapter. It can connect to the same providers as we use, but it would use Generic, instead of a specific adapter.
src/Storage/Device/BackBlaze.php
Outdated
@@ -2,9 +2,10 @@ | |||
|
|||
namespace Utopia\Storage\Device; | |||
|
|||
use Utopia\Storage\Device\S3; | |||
use Utopia\Storage\Device\Generic; |
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.
We should have a better name for Generic
?
Can we use S3
as base instead of creating new Generic
?
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.
S3 is also one of Generic child's.
Can be S3Base? or S3Compatible
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.
What's the difference in S3 itself and Generic? if there is a difference then yes Generic can S3Base
- S3Base
sounds more reasonable than S3Compatible
.
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.
ok
Co-authored-by: Matej Bačo <matejbaco2000@gmail.com>
…ctor-28-genericS3
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.
Looks much better.
@christyjacob4, is this still needed? |
No description provided.