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

Cs3 share manager #2626

Merged
merged 22 commits into from
Mar 15, 2022
Merged

Cs3 share manager #2626

merged 22 commits into from
Mar 15, 2022

Conversation

aduffeck
Copy link
Contributor

@aduffeck aduffeck commented Mar 9, 2022

This PR introduces a new share manager which uses the new metadata storage backend.

@aduffeck aduffeck requested review from a team, labkode and ishank011 as code owners March 9, 2022 13:08
@update-docs
Copy link

update-docs bot commented Mar 9, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@aduffeck aduffeck requested a review from glpatcern as a code owner March 9, 2022 13:12
Copy link
Contributor

@kobergj kobergj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some smaller ones. Looks good in general!

pkg/share/manager/cs3/cs3.go Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Outdated Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Outdated Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Outdated Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Outdated Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Outdated Show resolved Hide resolved
pkg/share/manager/cs3/cs3.go Outdated Show resolved Hide resolved
pkg/storage/utils/indexer/errors/errors.go Show resolved Hide resolved
return nil, err
}

fn := path.Join("shares", share.Id.OpaqueId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw a few places where we hardcode path segments like this. I wonder if we should not have a central place where we define these instead of hardcoding.

Maybe not really part of this PR..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dragotin I just pushed a commit which changes the remaining places to also make use of shareFilename() which encapsulates the knowledge about the directoy layout.
Not sure if that's what you meant, but I don't think we need to move this to a central place inside the repository as the layout is only relevant to the share manager itself.

@micbar micbar requested a review from kobergj March 15, 2022 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants