OptimalBits/node_acl — pull request #17 by cboulanger (2012-09-25 09:50:41+00:00)
Title: MongoDB backend now (almost) works

"npm test" now passes all 59 tests. Problem: the npm process doesn't exit. Any ideas?

What I have done:

- refactored run_tests.js to be less "nesty". This could be the source of the problem, but I don't think so because I had this problem before the refactoring

- rewrote the backend to use maps instead of arrays to store the lists. This enables the backend to update the values in one (atomic) operation, instead of having to retrieve the array, compute the difference, and store it. This should be much faster, too.

Hope you like the result and I hope you can find out what the remaining one problem might be.