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

Leverage shares space storageid and type when listing shares #2975

Merged
merged 9 commits into from
Jun 16, 2022

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Jun 15, 2022

The list shares call now also fills the storageid to allow the space registry to directly route requests to the correct storageprovider. The spaces registry will now also skip storageproviders that are not configured for a requested type, causing type 'personal' requests to skip the sharestorageprovider.

related #2881

@butonic butonic requested review from labkode, ishank011, glpatcern and a team as code owners June 15, 2022 14:28
@butonic butonic requested review from a team and removed request for a team June 15, 2022 14:30
@butonic butonic changed the title Leverage sharesstorage storageid Leverage shares space storageid and type when listing shares Jun 15, 2022
@@ -200,7 +200,7 @@ func (c *cachedRegistryClient) ListStorageProviders(ctx context.Context, in *reg
return resp, nil
case storageID == "":
return resp, nil
case storageID == utils.ShareStorageProviderID:
case storageID == utils.ShareStorageProviderID: // TODO do we need to compare providerid and spaceid separately?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could not make the debugger halt here, but AFACT we need to skip the cache when the spaceid or the providerid match the sharesstorageproviderid. In and case the CI was green without this, so ... can be deferred to a subsequent PR.

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
… type

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic force-pushed the leverage-sharesstorage-storageid branch from 4ca796b to 063d4da Compare June 16, 2022 09:38
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
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.

None yet

2 participants