Skip to content

[dev-tool] sample publish fix duplicate env vars in readme.md from samples#28771

Merged
xirzec merged 1 commit into
Azure:mainfrom
kazrael2119:issue-fix
Mar 6, 2024
Merged

[dev-tool] sample publish fix duplicate env vars in readme.md from samples#28771
xirzec merged 1 commit into
Azure:mainfrom
kazrael2119:issue-fix

Conversation

@kazrael2119
Copy link
Copy Markdown
Member

fix #28745

@github-actions github-actions Bot added the Mgmt This issue is related to a management-plane library. label Mar 5, 2024
@@ -1,246 +0,0 @@
# client library samples for JavaScript
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.

these changes is to remove old version samples

@kazrael2119 kazrael2119 changed the title fix duplicate parameters in readme.md from samples [mgmt] fix duplicate parameters in readme.md from samples Mar 5, 2024
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):

```bash
npx cross-env NETAPP_SUBSCRIPTION_ID="<netapp subscription id>" NETAPP_RESOURCE_GROUP="<netapp resource group>" NETAPP_SUBSCRIPTION_ID="<netapp subscription id>" NETAPP_RESOURCE_GROUP="<netapp resource group>" node accountsCreateOrUpdateSample.js
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.

this file has this issue but the version is not the latest one so we just remove them.

@MaryGao MaryGao requested a review from jeremymeng March 5, 2024 02:51
function exampleNodeInvocation(info: SampleReadmeConfiguration) {
const firstModule = filterModules(info)[0];
const envVars = firstModule.usedEnvironmentVariables
const envVars = [...new Set(firstModule.usedEnvironmentVariables)]
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.

@jeremymeng Could you help review this? The sample publish tools didn't handle the env vars duplications so we add this support.

@MaryGao MaryGao changed the title [mgmt] fix duplicate parameters in readme.md from samples [dev-tool] fix duplicate parameters in readme.md from samples Mar 5, 2024
@MaryGao MaryGao changed the title [dev-tool] fix duplicate parameters in readme.md from samples [dev-tool] [sample publish] fix duplicate parameters in readme.md from samples Mar 5, 2024
@MaryGao MaryGao changed the title [dev-tool] [sample publish] fix duplicate parameters in readme.md from samples [dev-tool] sample publish fix duplicate parameters in readme.md from samples Mar 5, 2024
@MaryGao MaryGao changed the title [dev-tool] sample publish fix duplicate parameters in readme.md from samples [dev-tool] sample publish fix duplicate env vars in readme.md from samples Mar 5, 2024
Copy link
Copy Markdown
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

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

Dev-tool changes look good to me, thanks for the fix!

@xirzec xirzec merged commit c99e94d into Azure:main Mar 6, 2024
@kazrael2119 kazrael2119 deleted the issue-fix branch March 7, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure Resource Management - Elasticsan and Management - Network Analytics Readme Issue

4 participants