Repository navigation
Use invoke operator to execute usecases - #4136
Closed
abelgardep wants to merge 1 commit into
Closed
abelgardep wants to merge 1 commit into
abelgardep wants to merge 1 commit into
Conversation
Member
|
Will review. Thanks a lot!! |
JuancaG05
force-pushed
the
technical/usecase_invoke
branch
from
September 4, 2023 12:45
25d0c48 to
5599d07
Compare
JuancaG05
approved these changes
Sep 4, 2023
JuancaG05
left a comment
Contributor
There was a problem hiding this comment.
LGTM 👍 Thanks a lot @abelgardep! I think this will be very handy and more understandable 😃
Contributor
|
There are some conflicts after we merged other PR, could you solve them please? 🙏 @abelgardep |
abelgardep
force-pushed
the
technical/usecase_invoke
branch
from
September 10, 2023 20:43
5599d07 to
499e367
Compare
Contributor
Author
|
Done @JuancaG05 🍻 |
Contributor
|
I think there's something related with the library that is not correctly rebased @abelgardep, could you check please? You can see that builds are not correctly created in the latest BitRise triggers. Let's move this on as soon as it is correctly rebased 🚀 |
Contributor
Author
|
Overseeded by #4179 PR updated and pushed within oC. It should be easier to fix any issue this way. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minimal refactor. It removes all the
executeverbosity for use cases.Previous approach:
fun execute(params: Params): Type = run(params)Operator approach:
operator fun invoke(params: Params): Type = run(params)Instead of
useCase.execute(useCaseParams),operatorallows us touseCase(useCaseParams)If you are OK with the current execute approach, just close the PR 👍
QA