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

Removing ambiguity between the different ways to create an IndexUid. #4038

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

fulmicoton
Copy link
Contributor

@fulmicoton fulmicoton commented Oct 27, 2023

The code will now panic if the arguments are wrong.
Ideally we would prefer to have a TryFrom implementation.

Before this PR, some client argument could silently create an IndexUi thatwere breaking a contract (IndexUid wrapping a string without a ":k").
After this PR, some client argument could create a panic.

This partly addresses to #3943.

@fulmicoton fulmicoton force-pushed the issue/3943-index-uid-b branch 2 times, most recently from fee5726 to b5a2c05 Compare October 27, 2023 15:32
The code will now panic if the arguments are wrong.
Ideally we would prefer to have a TryFrom implementation.

Before this PR, some client argument could silently create an IndexUi thatwere breaking a contract (IndexUid wrapping a string without a ":k").
After this PR, some client argument could create a panic.

This partly addresses to #3943.
@fulmicoton fulmicoton merged commit a0d5475 into main Oct 28, 2023
2 checks passed
@fulmicoton fulmicoton deleted the issue/3943-index-uid-b branch October 28, 2023 08:58
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