-
Notifications
You must be signed in to change notification settings - Fork 38
(GH-181) Add Dependency Injection #265
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
(GH-181) Add Dependency Injection #265
Conversation
@gep13 @AdmiringWorm This is the first draft PR. I made so little invasive changes as possible. But there are some problems I found on the way.
Please share also your ideas what we can make better. Thanks! |
I've been making some thoughts about the implementation and I think we need to do some refactoring. Currently the VcsProviderA VcsProvider should only contain logic to communicate with the VCS Api and return only mapped GRM models. This make possible to create providers for different VCS.
VcsServiceA VcsService would consume the VcsProvider and contain only business logic that is related to the VCS. The
Release NotesCurrrently the
This would reduce complexity (a class/function should do only one thing) and increase testability. What dou you think? |
@akordowski all of these suggestions seem like sensible ones to me. |
@gep13 Do I have your permission to implement it this way? |
@akordowski yes, please feel free to continue, and we can review as you are making progress. |
@gep13 It seems as if the environment variables for the |
@akordowski the necessary environment variables are marked as secret, as such they can not be used when running them on pull requests unfortunately. I would say, ignore the errors for missing environment variables in this case. |
@AdmiringWorm Wouldn't you say the pipeline is broken in this case? Because of the failing |
@akordowski and how do you suggest to fix it? |
@AdmiringWorm At my previous PRs there were no problems with the |
Source/GitReleaseManager.IntegrationTests/ReleaseNotesBuilderIntegrationTests.cs
Show resolved
Hide resolved
Source/GitReleaseManager.IntegrationTests/ReleaseNotesBuilderIntegrationTests.cs
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #265 +/- ##
============================================
+ Coverage 45.43% 77.20% +31.77%
============================================
Files 27 54 +27
Lines 799 1132 +333
Branches 135 135
============================================
+ Hits 363 874 +511
+ Misses 418 237 -181
- Partials 18 21 +3
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging e0d53c2 into 3d53566 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts and fixes 1 when merging 1d01178 into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging 1f295f5 into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging edd9ace into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging c3ae4a1 into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging 39ace71 into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
@gep13 @AdmiringWorm Oh boy, what a ride! There are still some points I would like to refactor though, but I think the PR is in a good state for review. |
This pull request introduces 1 alert and fixes 1 when merging 05700d0 into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
I won't be able to do a review until the weekend, but I will keep this on my radar then. |
No rush, as your time allows it. Thank you! |
This pull request introduces 1 alert and fixes 1 when merging aff08ac into 3d53566 - view on LGTM.com new alerts:
fixed alerts:
|
@akordowski I am reviewing this PR just now on my Twitch stream, and have just rebased the PR onto the head of the develop branch. Got a couple other little things to look at as well, just wanted to give you a heads up... |
@gep13 Sounds great, thank you! |
@akordowski if you have time and want to follow along, please go to https://www.twitch.tv/gep13 |
This pull request introduces 1 alert and fixes 1 when merging 844ecb4 into b01de39 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 1 when merging 711d6ca into b01de39 - view on LGTM.com new alerts:
fixed alerts:
|
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.
LGTM!
@akordowski huge thank you for all the work that you have done in this PR, really appreciate it! |
This PR addresses #181.