Adds deindexLink() and reindexLink() methods to RedisClient, as well as moves the previously private addLinkToSearchSets() to RedisClient.indexLink().
This also renames LinkDb.checkOwnership() to LinkDb.getLinkIfOwner(), which now returns the link info object it uses to validate ownership. This will make dispatching to the RedisClient indexing methods more efficient.
The next PR will do some more refactoring between RedisClient and LinkDb in an effort to better separate concerns.
Coverage decreased (-0.003%) to 98.15% when pulling d438c2bfa281d33883baa7860fc38b0ec441e705 on deindex-and-reindex into 74105db3fb5c30815f4e92de02891460c0b48cf9 on master.
I'm performing some refactorings to address the Code Climate warnings, but they're proving to be nontrivial, so I'm going to merge this PR and open a new one with those more significant refactorings.
Adds
deindexLink()
andreindexLink()
methods toRedisClient
, as well as moves the previously privateaddLinkToSearchSets()
toRedisClient.indexLink()
.This also renames
LinkDb.checkOwnership()
toLinkDb.getLinkIfOwner()
, which now returns the link info object it uses to validate ownership. This will make dispatching to theRedisClient
indexing methods more efficient.The next PR will do some more refactoring between
RedisClient
andLinkDb
in an effort to better separate concerns.