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

Fix #493 import-module loses previously stored configuration #508

Merged
merged 7 commits into from
May 20, 2023

Conversation

mnieto
Copy link
Contributor

@mnieto mnieto commented Dec 31, 2022

PR Summary

This fix #493 issue

When the module is configured with Set-VSTeamAccount -Level user, the configuration is stored in env variables and then recovered next time while import-module vsteam
The problem was introduced in commit 0528c76 (#467 closed in #480)

Also fixed a related problem with test ran in local: If the user calls Set-VSTeamAccount with -Local parameter, the TEAM_VERSION environment variable is preserved in the user's profile. The Versions.SetApiVersion did not manage the APIs.Version value and the test failed. This behaviour does not occur in during the GitHub build because the TEAM_VERSION variable is not set (it gets the default value).

PR Checklist

If the user calls Set-VSTeamAccount with -Local parameter, the TEAM_VERSION environment variable is preserved. The Versions.SetApiVersion did not manage the APIs.Version value and the test failed. This behavior does not occur in during the github build because the TEAM_VERSION variable is not set
@mnieto mnieto changed the title Fix493 Fix #493 import-module loses previously stored configuration Dec 31, 2022
@mnieto
Copy link
Contributor Author

mnieto commented May 6, 2023

@SebastianSchuetze , any chance to merge this PR?

Source/VSTeam.psm1 Outdated Show resolved Hide resolved
@mnieto mnieto requested a review from SebastianSchuetze May 19, 2023 18:15
@SebastianSchuetze SebastianSchuetze merged commit ec50dc9 into MethodsAndPractices:trunk May 20, 2023
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.

import-module vsteam loses previously stored configuration
2 participants