-
Notifications
You must be signed in to change notification settings - Fork 367
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
Task/graveler storage id enrichment #8729
base: master
Are you sure you want to change the base?
Conversation
fb4a734
to
364c903
Compare
364c903
to
863dc4c
Compare
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! One suggestion
pkg/api/controller.go
Outdated
@@ -2024,7 +2024,7 @@ func (c *Controller) CreateRepository(w http.ResponseWriter, r *http.Request, bo | |||
} | |||
|
|||
// Validate storage ID exists | |||
storageID = c.getActualStorageID(storageID) | |||
storageID = config.GetActualStorageID(c.Config.StorageConfig(), storageID) |
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.
Suggestion - move this to line 1986 (or even replace that line)
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.
Approved, but look into GetStorageByID and just return the single storage and fill back the ID in the case we read the information from the KV. It will allow GetStorageByID to align the value of the storage in case it is different from the one we stored.
@@ -2,6 +2,7 @@ package ref_test | |||
|
|||
import ( | |||
"context" | |||
"github.com/treeverse/lakefs/pkg/config" |
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.
goimports
No description provided.