-
Notifications
You must be signed in to change notification settings - Fork 162
refactor(parameters): replace EnvironmentVariablesService class with helper functions in Parameters #4168
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
refactor(parameters): replace EnvironmentVariablesService class with helper functions in Parameters #4168
Conversation
…helper functions in Parameters
Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need. |
Thanks for picking this up, it's looking good! I only had one small comment. |
…r.ts Removed test utilities that remained from Environment Variables Service Changes to be committed: modified: packages/commons/src/envUtils.ts modified: packages/commons/tests/unit/envUtils.test.ts modified: packages/parameters/src/base/GetOptions.ts modified: packages/parameters/src/ssm/SSMProvider.ts deleted: packages/parameters/src/types/ConfigServiceInterface.ts deleted: packages/parameters/src/utils/env.ts modified: packages/parameters/tests/unit/BaseProvider.test.ts
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.
Thank you for addressing my comments, and great work.
Thank you for your first PR, there're a few similar open issues, in case you're interested feel free to leave a comment
|
Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience! |
Thank you for this PR @JonkaSusaki, it's now been merged! |
Thanks guys! I would love to keep contributing to this project! Next week I'll look for some other issues since I won't be able to work this week. Keep up the good work! |
Summary
Changes
This PR removes the legacy class-based EnvironmentVariablesService from the Parameters package and replaces it with functional local helpers.
packages/parameters/src/config/EnvironmentVariablesService.ts
file.packages/parameters/tests/unit/EnvironmentVariablesService.test.ts
file, since our tests are backed bycommons/tests/unit/envUtils.test.ts
.packages/parameters/src/utils/env.ts
file containing the helpers.packages/parameters/src/base/BaseProvider.ts
.packages/parameters/src/base/GetMultipleOptions.ts
.packages/parameters/src/base/GetOptions.ts
.packages/parameters/src/appconfig/AppConfigProvider.ts
.isValueTrue
function to thepackages/commons/src/envUtils.ts
because it is needed inpackages/parameters/src/ssm/SSMProvider.ts
.isValueTrue
inpackages/commons/tests/unit/envUtils.test.ts
.packages/parameters/src/ssm/SSMProvider.ts
.Issue number: #4138
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.