summaryrefslogtreecommitdiff
path: root/server/src
AgeCommit message (Collapse)Author
2015-09-29Freeze debian version.Kali Kaneko
2015-09-29Merge branch 'develop' into debian/platform-0.8Kali Kaneko
2015-09-28[feat] conf for enabling db creation via custom shVictor Shyba
We can now use a custom script to create databases by setting a parameter 'create_cmd' on soledad configuration. This will set CouchServerState to use it on ensure_database.
2015-09-24[style] pep8Victor Shyba
2015-09-24[refactor] init_caching instead of setting attrVictor Shyba
As meskio found commented, setting this attribute directly is ugly, CouchDatabase now has a init_caching method for setting up cache instance.
2015-09-24[feat] adds cache expirationVictor Shyba
Now each backend object will be retrieved from cache for sync.py and values will live for 3600 by default. That is changed via parameter if needed.
2015-09-24[feat] full caching for each sync_id sessionVictor Shyba
The CouchDB backend implementation was accessing CouchDB too many times for the same values. Those values are known inside the same sync_id, which is the id of current sync session. This commit adds caching for all redundant calls to Couch inside the same sync_id for each replica. Refactoring is still needed, but for now couch.py works normally as if caching is not present, while sync.py injects the cache as a attribute to enable it. This needs a simpler implementation.
2015-09-24[feat] adds caching for other gen and trans idVictor Shyba
There are two functions in couch.py used to save and retrieve the last know gen and trans id for the syncing replica. The get function is called very often, but is only set on one point. Added a simple caching to avoid queying couch for a value that we already have. If cache is empty, it just query as usual and fills it.
2015-09-24[feat] first draft of sync_state in memoryVictor Shyba
This commit changes sync_state to be in memory, with all tests passing. The memory variable for now is a dict with each key composed by source_replica_uid and sync_id, replicating CouchDB implementation. Next steps includes migrating this to Beaker and refactor/clean up code. Changed the module's INFO dict to use Beaker's caching and adapted methods to get and save from it. Still needs refactoring, all tests passes. Beaker is now using memory as default; It is configurable, but we aren't opening the possibility of config now for security. We need to check what can be misconfigured first. We are not sure if beaker will be the definitive solution for server side caching. This change isolates it with more granularity. In order to replace it, just change get_cache_for to return the proper caching object using another implementation. This caching object is supposed to behave as a dict.
2015-09-24Freeze debian version.Kali Kaneko
2015-09-24Merge tag '0.7.3' into debian/experimentalKali Kaneko
Tag leap.soledad version 0.7.3
2015-08-28Freeze debian version.Kali Kaneko
2015-08-28Merge tag '0.7.2' into debian/experimentalKali Kaneko
Tag leap.soledad version 0.7.2
2015-08-26[bug] process put after last BadRequest checkVictor Shyba
If we check for a BadRequest after calling meth_put we will end up on a scenario where the server replies with an error, but everything got processed.
2015-08-24[refactor] remove simplejson dep on serverdrebs
2015-08-17[bug] add missing parameter to unauthorized errordrebs
2015-08-04[style] pep8 cleanupKali Kaneko
2015-07-24[style] fixed pep8 warnings on the soledad server codeBruno Wagner
2015-06-10Freeze debian version.Kali Kaneko
2015-06-10Merge tag '0.6.5' into debian/experimentalKali Kaneko
Tag version 0.6.5.
2015-04-09[fix] remove unneded params to CouchServerStatedrebs
This commit removes some leftover code from a time when Soledad Server used to check for permissions on certain databases when starting (i.e. shared and tokens databases). This was later removed as correct permissions enforcement was relayed to tapicero. Closes: #6833.
2015-04-09[fix] remove unneded params to CouchServerStatedrebs
This commit removes some leftover code from a time when Soledad Server used to check for permissions on certain databases when starting (i.e. shared and tokens databases). This was later removed as correct permissions enforcement was relayed to tapicero. Closes: #6833.
2015-03-19[feat] use monthly tokens databasedrebs
Any solead release that includes this commit will be incompatible with LEAP Platform < 0.6.1 because only from that version on the platform implements the ephemeral monthly tokens databases. Closes: #6785.
2014-12-16Freeze debian version.Kali Kaneko
2014-12-11Freeze debian version.Kali Kaneko
2014-12-08Freeze debian version.Kali Kaneko
2014-10-07Freeze debian version.drebs
2014-10-01Merge tag '0.6.0' into deb-0.6.0drebs
Tag leap.soledad version 0.6.0 Conflicts: client/pkg/requirements.pip
2014-07-08Update target sync with sequential info (#5869).drebs
2014-07-02Split sync_exchange into many requests (#5517).drebs
2014-06-06Freeze debian version.drebs
2014-06-06Merge tag '0.5.2' into deb-0.5.2drebs
Tag leap.soledad version 0.5.2
2014-06-06Freeze debian version.drebs
2014-06-05Make server auth time-insensitive.drebs
2014-06-05Replace client sync state by a sync_id.drebs
2014-05-28Fix stuff from kali's review.drebs
2014-05-23Fix tests for new sync process.drebs
2014-05-22Split sync in multiple POST requests in server (#5571).drebs
2014-05-22Cleanup and pep8 fix.drebs
2014-04-09freeze reported debian version to 0.5.0Kali Kaneko
2014-04-09Merge tag '0.5.0' into deb-0.5.0Kali Kaneko
Tag leap.soledad 0.5.0
2014-03-17Fix raising of auth token errors (#5191).drebs
2014-03-12Do not ensure shared database upon Soledad Server start (#5302).drebs
2014-01-25Improve unauthorized error messages.drebs
2014-01-20Allow sync of large files (~100MB) (#4836).drebs
2014-01-20Move lock resource to its own file.drebs
2014-01-17Fix typo on tempfile.gettempdir() call.drebs
2014-01-07Use temp dir for server side locks (#4918).drebs
2014-01-06Add proper error reporting to shared db lock.drebs
2013-12-23freeze debian version to 0.5.0-rc1Kali Kaneko