-
Notifications
You must be signed in to change notification settings - Fork 160
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 out copyConcurrency calculation in install.copyFiles() #4287
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
97a5945
to
3513ea2
Compare
3513ea2
to
66eb059
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
66eb059
to
f594f48
Compare
Extract the copyConcurrency parameter out of copyFiles() function allows for a simpler function signature and removes a dependency on cli.IOStreams that was used only to output an error log. The functions copyFiles() and calculateCopyConcurrency() implement a better separation of concerns.
f594f48
to
2bdceeb
Compare
|
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.
👌
What does this PR do?
Extract the copyConcurrency parameter out of copyFiles() function allows for a simpler function signature and removes a dependency on cli.IOStreams that was used only to output an error log. The functions copyFiles() and calculateCopyConcurrency() implement a better separation of concerns.
Why is it important?
General cleanliness of code and testability
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature works[ ] I have added an entry in./changelog/fragments
using the changelog tool[ ] I have added an integration test or an E2E testAuthor's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs
Questions to ask yourself