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

[ContainerRegistry] doc improvements #16021

Merged
merged 7 commits into from
Aug 16, 2021

Conversation

jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Jun 26, 2021

  • Add example code snippets to update*Properties() ref doc
  • Add comments about orderBy options in README
  • Fix tags in samples
  • Correct deleteImages sample code to keep three images instead of four
  • Update CHANGELOG for beta.4 release

Fixes #16096

@ramya-rao-a
Copy link
Contributor

@maorleger Can you review this please?

@@ -31,7 +31,7 @@ async function main() {
let imageCount = 0;
// Delete images older than the first three.
for await (const manifest of imageManifests) {
if (imageCount++ > imagesToKeep) {
if (imageCount++ >= imagesToKeep) {
Copy link
Member

Choose a reason for hiding this comment

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

for clarity I would recommend just incrementing imageCount separately but up to you

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea!

@jeremymeng jeremymeng merged commit ddf6e76 into Azure:main Aug 16, 2021
@jeremymeng jeremymeng deleted the acr-doc-improvement branch August 16, 2021 20:03
ckairen pushed a commit to ckairen/azure-sdk-for-js that referenced this pull request Aug 24, 2021
* Add example code snippets to update*Properties() ref doc

* Add comments about `orderBy` options in README

* Fix tags

* Correct deleteImages sample code to keep three images instead of four

* Address CR feedback

* Update CHANGELOG for beta.4 release
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.

Azure Container Registry Readme Issue
3 participants