Age | Commit message (Collapse) | Author |
|
* Turn _valid_keys into a static method for all handlers.
* Use in batch handlers the valid keys defined in common.
* Change the JSON serializer using the default one, and change
how mongodb Cursor results are stored (should be slightly
faster).
Change-Id: I17cf26d9011e34125bf6873edda7179a5202aa39
|
|
* Refactor handlers code to use the newly defined keys.
Change-Id: Ib14578bd1f2a57297b2296a0c1d12824700c9f2e
|
|
Change-Id: I2665b62993a5865e13cb16d9dfe0357676592eef
|
|
* Will break the frontend.
* Rework BaseHandler in order for that to handle all the async
calls setup, and leave the subclasses to implement just the
correct methods.
* TokenHandler is a special case, since we need special token
protection for that.
* Fix db.py so that it returns plaun mongodb objects (Cursor)
and store them as is: they are iteratable.
* Make HandlerResponse the only accepted response type to
create the response that is sent to the clients.
* Fixe, rework and add tests.
Change-Id: Ief7dad65b2801f701e7e5f67b3a360329aca69f6
|
|
|
|
* Apparently, mongodb internally has a field called 'created',
that collides with the 'created' attribute we have in the
models. Sort operations on that field returned weird results
when you drop the DB and re-import everything and are expecting
to see the real documents date.
* Rename created models attribute into created_on, and move it
into the base model.
* Fix tests.
|
|
|
|
|
|
* Handle the aggregate query on the BaseHandler.
* Add more valid GET keys for job and defconfig.
* Fix a test.
|
|
|
|
* Fix error calling utils.db.delete, missing an argument.
* Add unittest for DELETE.
|
|
* Since it does not need to have a payload, remove the valid
keys for a DELETE payload for this handler.
|
|
* DELETE should not contain any payload, but for the
SubscriptionHandler we make an exception since we want to be
able to 'unsubscribe' just a single email from the document.
* Reowrk check methods in the parent class, and add new check for
headers and content type.
* Fix other handlers, and tests as well.
|
|
|
|
|
|
|
|
|
|
|
|
* Implement query for a single document by id.
* GET method is now defined into the BaseHandler class,
inherited by all handlers.
* Subclassed handlers need to define a property to retrieve
the mongodb collection where documents are stored.
|
|
|