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

Efss backend fixes #3526

Merged
merged 61 commits into from
Dec 7, 2022
Merged

Conversation

michielbdejong
Copy link
Contributor

Continuation of #3524

@vascoguita
Copy link
Contributor

Thanks for creating a PR from your fork. This way the CI will run even faster since more runners are available to work in parallel (we just have 8 self-hosted runners so far).
@michielbdejong can I delete the cs3org/reva:efss-backend-fixes branch?

@michielbdejong
Copy link
Contributor Author

@gmgigi96 it's green now :)

@glpatcern glpatcern merged commit 2c4e018 into cs3org:master Dec 7, 2022
log.Info().Msgf("pkg/ocm/share/manager/json providerId: %s", fmt.Sprintf("%s:%s", md.StorageId, md.OpaqueId))
log.Info().Msgf("pkg/ocm/share/manager/json owner: %s", userID.OpaqueId)
log.Info().Msgf("pkg/ocm/share/manager/json protocol: %s", protocol)
log.Info().Msgf("pkg/ocm/share/manager/json meshProvider: %s", userID.Idp)
Copy link
Member

Choose a reason for hiding this comment

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

These seems to be debug logs, can you remove them? Or log them better?

},
}
}

log := appctx.GetLogger(ctx)
log.Info().Msg("pkg/ocm/share/manager/nextcloud calls sender.Send")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

@@ -498,33 +543,32 @@ func (sm *Manager) ListReceivedShares(ctx context.Context) ([]*ocm.ReceivedShare
if err != nil {
return nil, err
}
var pointers = make([]*ocm.ReceivedShare, len(respArr))
var pointersBaseShare = make([]*ocm.Share, len(respArr))
var pointersReceivedShare = make([]*ocm.ReceivedShare, len(respArr))
for i := 0; i < len(respArr); i++ {
Copy link
Member

Choose a reason for hiding this comment

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

Use a for-range loop here.
pointersBaseShare should be initialized with make([]*ocm.Share, 0, len(respArr))

}
return nil, errors.New("received an unreadable share object from the EFSS backend")
}
pointersBaseShare[i] = &ocm.Share{
Copy link
Member

Choose a reason for hiding this comment

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

use the append function to add the struct to the list

user, err := getUser(ctx)
if err != nil {
// log.Error().Msg("error getting user!")
Copy link
Member

Choose a reason for hiding this comment

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

please remove all these commented lines

gmgigi96 added a commit that referenced this pull request Dec 7, 2022
@gmgigi96 gmgigi96 mentioned this pull request Dec 7, 2022
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