Digital-Identity-Labs/shibkit-meta_meta — Issue #14: Recursive call to #entities resulting in doubled list
Author: binaryape
Created: 2011-10-16 20:31:49+00:00
State: open
Labels: Bug, Optimisation

MetaMeta.entities is resulting in a list twice as long as it should be. Seems to be caused by a call to another lazy method calling back to #entities.

Could be fixed by using Array#uniq in #entities or by not avoiding calling #entities from #entities. I think this was originally done to avoid a bug in earlier version of MetaMeta, and might not be needed now.

For the time being I've commented out the second call, but also left the bodge using #uniq in place but also commented out. I think this needs properly investigating after tests are completed.