Skip to content

Certificates api changes#6309

Merged
g2vinay merged 9 commits into
Azure:masterfrom
g2vinay:certificates-api-changes
Nov 26, 2019
Merged

Certificates api changes#6309
g2vinay merged 9 commits into
Azure:masterfrom
g2vinay:certificates-api-changes

Conversation

@g2vinay

@g2vinay g2vinay commented Nov 12, 2019

Copy link
Copy Markdown
Member

Fixes #6285 , #6408

@joshfree joshfree added Client This issue points to a problem in the data-plane of the library. KeyVault labels Nov 13, 2019

@joshfree joshfree left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

left minor comments

* Expiry date in UTC.
*/
private OffsetDateTime expires;
private OffsetDateTime expiresOn;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can you confirm that we landed on "On" and not "At"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

KV is using "On" suffix across all languages.
Storage and Identity too use "On" suffix, I believe.

@joshfree
joshfree requested review from heaths and samvaity November 13, 2019 16:48
@joshfree joshfree added this to the [2019] December milestone Nov 13, 2019
@joshfree joshfree assigned g2vinay and 04diiguyi and unassigned 04diiguyi Nov 13, 2019

@heaths heaths left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few comments, both otherwise LGTM.

Comment thread sdk/keyvault/azure-security-keyvault-certificates/README.md Outdated

@samvaity samvaity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would there be a review again in the API review tool after this is merged?

Comment thread sdk/keyvault/azure-security-keyvault-certificates/README.md
} catch (RuntimeException ex) {
return monoError(logger, ex);
}
public PollerFlux<DeletedCertificate, Void> beginDeleteCertificate(String name) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here, can return an NPE if status is null or if any of the three other than the mentioned ones and passed to the PollResponse<>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

for delete case, non-null status is returned in all cases.

@samvaity samvaity Nov 20, 2019

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Service will always return a non-null status. But here we initialize the status variable to null and only update it if the service returned status is either inProgress, completed or failed. But if it is not any of those we keep the status value as null and that is further passed to PollResponse which expects a non-null status.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated the default case in switch statement to parse a response other than those three, but that state should not hit ideally, as service should not emit any other status than those three.

@g2vinay
g2vinay marked this pull request as ready for review November 26, 2019 19:53
@g2vinay
g2vinay requested a review from mssfang as a code owner November 26, 2019 19:53
@g2vinay
g2vinay merged commit bdaa889 into Azure:master Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. KeyVault

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Certificate API changes

7 participants