Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Including tests that ensure this
|
|
|
|
|
|
|
|
|
|
This is an intermediate fix. There's a user record that never had it's database created. The first time it shows up in the changes feed the revision starts with 2-. Not sure why this is. But we loose this user record if we rely on CouchRest::Changes.created which checks for a revision starting with 1-.
|
|
* do not log the SystemExit after the fork
* log error classes alongside messages
* unify logging in retry_request_once
* debug now logs every step
* info has one message per user created
* warn only logs errors during the actions
* error only logs crashes
|
|
|
|
Couch sometimes responds with 500 or so. Often this is temporary. Let's retry once and log the error instead of dying.
|
|
--run-once will exit once all current changes have been processed
--rerun will process all users again even those that were processed before
--overwrite-security will overwrite security for user databases even
if it has been set before.
|
|
We'll add a flag to overwrite designs and / or security later. For now just make sure this does not crash tapicero.
|
|
Also strip the .json extention because soledad does not expect it
|
|
Pathname makes dealing with files easier than String.
Tapicero will look for design documents in design directory in the tapicero path for now.
|
|
Also logging per user db creation and destruction if they happen.
|
|
|
|
|
|
This commit bundles a few different changes:
* we now use the CouchRest::Database#changes stream instead of our own
* we store and read the last sequence number so on a restart we can start where we left
* we now have a UserDatabase class rather than the CouchDatabaseCreator. It also knows about it's name and we create an instance of it per database we want to create. It's also more flexible when the databases already exist.
|