summaryrefslogtreecommitdiff
path: root/src/leap/mx/couchdbhelper.py
AgeCommit message (Collapse)Author
2015-09-15[test] add test infrastructureRuben Pollan
Some refactor on the couchdb usage was needed to be able to mock couchdb. - Resolves: #7435
2015-04-16[bug] return uuid as result of alias resolverdrebs
This fixes a bug introduced on b0ef529cc882a96903597fb5279919969fa286c3, when the alias resolver was modified to return the user's address instead of the uuid. In order to fix this, I had to revert one of the changes made by the commit above, which is to don't make use of reduced view for the uuid query. The pgp public key query remains reduced, as implemented in the commit above. We also refactor the code a bit to allow for log messages specific to each of tcp map's sublasses. Related: #6858.
2015-04-09[refactor] use couch reduced views for lookupsdrebs
The way uuid and pgp key were being queried by means of couch views was not efficient because they weren't using the reduce function and were filtering the views results in the python code. Also, the uuid is not actually needed to find out either if the address exists or if there's a pgp public key for that address. This commit refactors the couch helper to make use of the reduce functions in queried views and to get rid of the intermediate uuid querying.
2014-09-04Leap mx will not stop working for everyone if an user is inconsistentBruno Wagner Goncalves
2013-10-28Make the mail received callback more robust and add support for mlTomás Touceda
2013-10-15pep8 and sphinx formatKali Kaneko
2013-08-20Migrate mx to work with the new couchdb structure and viewsTomás Touceda
2013-05-03Add setup script and init.d scriptTomas Touceda
Also, some pep8 fixes
2013-05-02Several fixes according to the review commentsTomas Touceda
2013-04-25Catch the case where there's no pubkey for a userTomas Touceda
2013-04-24Improve the rest and start everything from start_mxTomas Touceda
2013-04-23Add pubkey retrievingTomas Touceda
2013-04-22More fixesTomas Touceda