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

fix accounts backend regression from #2590 #2688

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

wkloucek
Copy link
Contributor

@wkloucek wkloucek commented Oct 27, 2021

Description

Fix accounts backend regression from #2590. On update from oCIS 1.13.0 to current 1.14.0-rc1 one looses the non demo accounts because the indexer is used the disk in the current oCIS

@update-docs
Copy link

update-docs bot commented Oct 27, 2021

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.

@wkloucek wkloucek requested review from C0rby, kobergj and micbar and removed request for lookacat, kulmann and pascalwengerter October 27, 2021 10:29
@wkloucek wkloucek mentioned this pull request Oct 27, 2021
22 tasks
if err != nil {
logger.Fatal().Err(err).Msg("cs3 storage was configured but failed to start")
func createMetadataStorage(cfg *config.Config, logger log.Logger) (storage.Repo, error) {
switch strings.ToLower(cfg.Repo.Backend) {
Copy link
Contributor

Choose a reason for hiding this comment

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

backend was set from a lowercase string anyway, so the additional strings.ToLower should not be needed, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's ensured in the command now ;-) That's the easiest and safest way to do it. Thanks for the feedback

@wkloucek wkloucek requested a review from kulmann October 27, 2021 10:54
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻

@wkloucek wkloucek force-pushed the fix_accounts_backend branch 2 times, most recently from a89a2fd to 338701e Compare October 27, 2021 12:11
@wkloucek wkloucek force-pushed the fix_accounts_backend branch from 338701e to f45254b Compare October 27, 2021 12:14
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

52.2% 52.2% Coverage
0.0% 0.0% Duplication

@wkloucek wkloucek merged commit 5456f13 into release-1.14.0 Oct 27, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix_accounts_backend branch October 27, 2021 12:50
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.

2 participants