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

[storage] Migrate storage projects to use snippets extraction #33271

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

mpodwysocki
Copy link
Member

@mpodwysocki mpodwysocki commented Mar 3, 2025

Packages impacted by this PR

  • @azure/storage-blob
  • @azure/storage-blob-changefeed
  • @azure/storage-file-datalake
  • @azure/storage-file-share
  • @azure/storage-internal-avro
  • @azure/storage-queue

Issues associated with this PR

Describe the problem that is addressed by this PR

Updates all projects under databoxedge to use snippets extraction.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Mar 3, 2025
@mpodwysocki mpodwysocki marked this pull request as ready for review March 10, 2025 17:35
@Copilot Copilot bot review requested due to automatic review settings March 10, 2025 17:35

Choose a reason for hiding this comment

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

PR Overview

This PR migrates the storage projects to use snippets extraction for code samples in tests, READMEs, and Migration Guides. Key changes include updating sample code blocks to use TypeScript snippet markers, updating various client README files to reference snippets, and inserting dev-tool ignore markers in changelogs and migration guides.

Reviewed Changes

File Description
sdk/storage/storage-blob-changefeed/test/snippets.spec.ts Added TypeScript sample tests using snippet extraction markers.
sdk/storage/storage-blob-changefeed/README.md Updated code sample blocks to reference TS snippets.
sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts Updated inline code samples to use TS snippet markers.
sdk/storage/storage-blob/src/BlobBatchClient.ts Updated sample comments to include TS snippet markers.
sdk/storage/storage-blob/src/ContainerClient.ts Updated code snippets to use TS snippet markers and improved examples.
sdk/storage/storage-blob/src/BlobServiceClient.ts Revised sample code blocks, switching from JS to TS snippet markers.
sdk/storage/storage-blob-changefeed/src/BlobChangeFeedClient.ts Updated snippet examples for customer usage of change feed listing.
sdk/storage/storage-file-datalake/src/clients.ts Updated Node.js and browser sample code blocks with TS snippet markers.
Various README.md and CHANGELOG.md files Inserted snippet markers and dev-tool ignore comments for consistent documentation.
MigrationGuide.md files (storage-blob, storage-file-share) Added dev-tool snippet ignore markers and updated credential instantiations.

Copilot reviewed 37 out of 37 changed files in this pull request and generated no comments.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@@ -49,7 +49,7 @@
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "dev-tool run test:node-js-input --no-test-proxy -- -t 300000 \"dist-esm/test/*.spec.js\" \"dist-esm/test/node/*.spec.js\"",
"integration-test:node": "dev-tool run test:node-js-input --no-test-proxy -- --exclude 'test/snippets.spec.ts' -t 300000 \"dist-esm/test/*.spec.js\" \"dist-esm/test/node/*.spec.js\"",
Copy link
Member

Choose a reason for hiding this comment

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

Seams this would cause test fail.
storage-internal-avro is not a project, it's just a folder to place some codes for storage-blob-changefeed, we should not test it as a project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants