8000 Fix/orbit 6 issues by Rosomack · Pull Request #193 · orbit-mvi/orbit-mvi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix/orbit 6 issues #193

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

Merged
merged 7 commits into from
Sep 4, 2023
Merged

Fix/orbit 6 issues #193

merged 7 commits into from
Sep 4, 2023

Conversation

Rosomack
Copy link
Contributor
@Rosomack Rosomack commented Aug 2, 2023

Fixes for:

Blocking intents and other container host functions can be called via containerHost.xxx() directly.

I'm removing invokeIntent to keep things consistent cc @mattmook , see discussion at #180 . TL;DR is that this change will allow people not to expose Job from their ContainerHost if they don't need it in tests - I think this is the solution we missed originally.

Copy link
Contributor
@TWiStErRob TWiStErRob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are non-breaking changes, if you remove a method that's definitely a v7.

@@ -31,6 +31,7 @@ public interface OrbitTestContext<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST
/**
* Invoke an intent on the [ContainerHost] under test.
*/
@Deprecated("Use containerHost instead", ReplaceWith("action(containerHost)"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work with IntelliJ quickfix? Is it the reason for the all the thiss in this.containerHost.x()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and yes!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I guess there's no way to exclude the this. with the quickfix, because IJ adds it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I couldn't find a way to omit this. But this can be easily corrected using a search and replace within test scope so it's not as bad.

@Rosomack
Copy link
Contributor Author
Rosomack commented Aug 2, 2023

These are non-breaking changes, if you remove a method that's definitely a v7.

Yes, I would like to fix it quickly in a way that allows people to refactor (ReplaceWith) and not force a breaking change.

7.0.0 is already reserved for removing legacy style tests and the invokeIntent method will go with it

@mattmook mattmook enabled auto-merge (squash) September 4, 2023 15:17
@mattmook mattmook merged commit 6016249 into main Sep 4, 2023
@mattmook mattmook deleted the fix/orbit_6_issues branch September 4, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0