-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[KeyVault] - Include missing properties when reading SecretBundle #13614
Conversation
enabled: attributes?.enabled, | ||
notBefore: attributes?.notBefore, | ||
recoverableDays: attributes?.recoverableDays, | ||
recoveryLevel: attributes?.recoveryLevel, |
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.
Woah! Thank you so much!
Before we had these transformers we used to use the spread operator a lot, and in my attempt to gain better control over it, I ended up missing these properties I think.
Should we see if we're having a similar issue in the other Key Vault clients?
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.
Good idea! Maybe we can merge this in and then I can separately check the other packages?
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.
Sounds good! I'll approve!
import { DeletedSecretBundle, SecretBundle } from "../../src/generated"; | ||
import { getSecretFromSecretBundle } from "../../src/transformations"; | ||
|
||
describe("Transformations", () => { |
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.
I love this test 🌞
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.
Thank you 🌞
What
Why
enabled
wasn't being correctly set.