Skip to content
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

Sector/more fixes 2 #4

Closed
wants to merge 4 commits into from
Closed

Conversation

Vizaxo
Copy link
Owner

@Vizaxo Vizaxo commented Jul 16, 2017

This contains fixes for @skaldarnar's feedback on #3, and some updates to moveToPool().

I haven't done anything with the remove() method apart from updating the documentation for now, warning against improper use (I've also added an equivalent message to the partnering insertRef() method).

I updated some of the tests, and found and fixed a bug where moveToPool wasn't properly assigning the ref to the right pool using assignToPool(), which led to it appearing to be in the original pool, when it was actually in the new pool.

Vizaxo added 4 commits July 15, 2017 19:07
Add tests for the contains() and remove() methods of PojoEntityPool.
Update the tests for BaseEntityRef's setScope(), and
PojoEntityManager's moveToPool() methods, to properly check that
EntityRefs are removed from pools when they should be.

Also fix the helper methods for moveToPool to ensure that EntityRefs
are properly removed, and properly re-assigned to the correct pool.
Make remove() call unassignPool() on the EntityManager, so that the
pool mapping is no longer registered. This Doesn't have an effect when
using the method in moveToPool, but is more correct if the method is
used in a different situation.
@Vizaxo
Copy link
Owner Author

Vizaxo commented Jul 23, 2017

Merged in MovingBlocks#3009

@Vizaxo Vizaxo closed this Jul 23, 2017
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.

2 participants