Avatars and Repo avatars support storing in minio#12516
Conversation
47b3ce0 to
0b8cecc
Compare
Codecov Report
@@ Coverage Diff @@
## master #12516 +/- ##
==========================================
- Coverage 42.59% 42.56% -0.04%
==========================================
Files 671 674 +3
Lines 73625 73724 +99
==========================================
+ Hits 31363 31380 +17
- Misses 37183 37253 +70
- Partials 5079 5091 +12
Continue to review full report at Codecov.
|
f916357 to
29d6101
Compare
|
It's ready to review. |
e0889ae to
117209d
Compare
117209d to
7abffd6
Compare
|
Imho there should be single avatar storage for both user and repo avatars |
|
I still think a common |
I think we can do that via setting the same configuration for user avatars and repository avatars. |
|
We now have to describe both minio and local storage settings in cheat sheet and app.example.ini:
With exactly the same text and meaning for slightly different keys. If we add a new storage option the code situation is even worse: as every time we add a new storage option we need to change:
Compare with adding a new queue option:
// ImmediateType is the type to execute the function when push
const ImmediateType Type = "immediate"
// Immediate represents an direct execution queue
type Immediate struct {
handler HandlerFunc
}
...
// NewImmediate creates a new false queue to execute the function when push
func NewImmediate(handler HandlerFunc, opts, exemplar interface{}) (Queue, error) {
return &Immediate{
handler: handler,
}, nil
}
func init() {
queuesMap[ImmediateQueueType] = NewImmediateQueue
}
Every place that uses queues can now use the immediate queue without having to think about it further. |
|
see #12813 |
|
@lunny please resolve conflicts |
222e0a0 to
ce6980d
Compare
|
@lafriks done. |
|
I really think we should get #12978 in as it would show a way to simplify the settings somewhat. |
2748df7 to
b419c9f
Compare
b419c9f to
464cc66
Compare
f67afea to
db40c19
Compare
|
@zeripath done. |
|
🚀 |
As a next step of #11387