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

feat: Infer storage name based on endpoint #1551

Merged
merged 10 commits into from
Mar 12, 2023

Conversation

xinlifoobar
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Infer storage account name based on endpoint uri for known patterns.

Issue: #1519

src/services/azblob/backend.rs Outdated Show resolved Hide resolved
src/services/azblob/backend.rs Show resolved Hide resolved
@Xuanwo
Copy link
Member

Xuanwo commented Mar 10, 2023

Done. This may incur a breaking change when the account name is empty. but should be ok for this err.

You are correct. We should allow for an empty account name. I apologize for the incorrect review. Please infer the account name only from the endpoint when the user inputs the account key, but the account name is empty.

@xinlifoobar
Copy link
Contributor Author

@Xuanwo Just reverted the last change. The infer should happen at the time when the account_key/sas(for blob only) is provided while there is no account name.

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Xuanwo Xuanwo changed the title feat: Infer storage name based on endpoint. feat: Infer storage name based on endpoint Mar 12, 2023
@Xuanwo Xuanwo merged commit 11bf083 into apache:main Mar 12, 2023
@xinlifoobar xinlifoobar deleted the dev/xinli1/infer-sa-from-ep branch March 13, 2023 05:41
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