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

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

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

kazrael2119
Copy link
Contributor

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
Contributor 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
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
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
@@ -131,13 +130,12 @@ function table(info: SampleReadmeConfiguration) {
*/
function exampleNodeInvocation(info: SampleReadmeConfiguration) {
const firstModule = filterModules(info)[0];
const envVars = firstModule.usedEnvironmentVariables
const envVars = [...new Set(firstModule.usedEnvironmentVariables)]
Copy link
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
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
161 checks passed
@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