-
Notifications
You must be signed in to change notification settings - Fork 3.2k
App Configuration Provider Arch Review Fixes #28197
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
Conversation
…yVaultOptions to be Keyword only.
|
API change check APIView has identified API level changes in this PR and created following API reviews. |
|
|
||
| def __init__(self, credential=None, secret_clients=None, secret_resolver=None): | ||
| # type: (TokenCredential, List[SecretClient], Callable) -> None | ||
| def __init__(self, *, credential=None, secret_clients=None, secret_resolver=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to use something like:
| def __init__(self, *, credential=None, secret_clients=None, secret_resolver=None): | |
| def __init__(self, *, credential: Optional[TokenCredential]=None, secret_clients: Optional[List[SecretClient]]=None, secret_resolver: Optional[Callable[[str], str]]=None): |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is updated in the other PR as it changes to multiple @overloads
| "Key Vault %s does not contain secret %s" | ||
| % (key_vault_identifier.vault_url, key_vault_identifier.name) | ||
| ) | ||
| return referenced_client.get_secret(key_vault_identifier.name, version=key_vault_identifier.version).value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean we want to raise ResourceNotFoundError rather than wrapping it into KeyVaultReferenceError?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the comments brought up in the review board meeting was that we shouldn't use the customer errors unless we really need one for something. So, yes in this case raise whatever error the SDK throws.
|
See #28497 for all the new changes, including this. |
Description
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines