Closed AlexVulaj closed 10 months ago
Thanks @AlexVulaj for this pr. I am currently short on time for open-source contributions due to other/private obligations. This means the review of this PR can take a bit. I have seen that my peer @ghostsquad already had a look into it (this is great!). Thanks for contributing to open source, and thanks for understanding.
@andygrunwald no worries! I appreciate you taking a look. Let me know if there are any changes required.
@andygrunwald gentle ping - any updates?
@AlexVulaj Sorry for the delay. Private things. I had a quick check on this. Looks good from my side.
I won't merge this into the 1.x branch anymore.
What type of PR is this?
What this PR does / why we need it:
This PR takes a few custom, unexported types in
user.go
and exports them. These types are used in multiple function signatures onUserService
, making it impossible to write a user-defined interface for those functions whichUserService
can implement. Exporting these types will allowUserService
to properly implement a user-defined interface, which will in turn allow for cleaner testing and mocking.Which issue(s) this PR fixes:
Fixes #179
Special notes for your reviewer:
It would be awesome to get this out in a 1.x release before 2.x to unblock any ongoing testing efforts from users. This shouldn't be a breaking change, as nobody would've been able to use the unexported type prior to this pull request anyway.
Additional documentation e.g., usage docs, etc.:
noticed a minor typo in the README while going through and cleaned that up as well