-
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
[storage] Migrate storage projects to use snippets extraction #33271
base: main
Are you sure you want to change the base?
Conversation
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.
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.
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\"", |
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.
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.
Packages impacted by this PR
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