deckhand/deckhand/control
Felipe Monteiro b80df59d11 fix: Address small issues with revision rollback controller
1. There is no exception called `InvalidRollback` in Deckhand (it
was removed a while back). Instead, the only exception that
db_api.revision_rollback raises is RevisionNotFound from
the revision_get call internally.

So catch that instead from the controller.

2. The default value of parameters is `str` so when revision_id
of '0' is passed to the db module for processing, it skips over
the check for `if revision_id == 0` as revision_id is a str,
not int. So this leverages builtin int converter logic in
falcon [0] but requires uplifting the version of falcon to
at least 1.3.0 to make use of it [1].

[0] https://falcon.readthedocs.io/en/stable/api/routing.html#field-converters
[1] https://falcon.readthedocs.io/en/1.3.0/api/routing.html#field-converters

Change-Id: I068cd9e9b6818a5d51501f2718ee2d40d556c094
2018-10-18 09:45:16 -04:00
..
views [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
__init__.py DECKHAND-2: Design core Deckhand API framework 2017-06-27 19:26:51 +01:00
api.py Add no oauth middleware to bypass keystone authentication 2018-05-08 03:46:52 +01:00
base.py refactor: Use yaml.add_representer to reduce complexity 2018-07-10 19:23:52 +01:00
buckets.py Fix: Transaction rollback following DB creation error 2018-09-10 05:13:40 +00:00
common.py optimization: Skip post-validation for rendered document cache hit 2018-10-02 18:58:07 -05:00
health.py Fix: various documentation and URL fixes 2018-09-25 11:44:57 +02:00
middleware.py Add explicit start/end to Deckhand response middleware 2018-10-05 18:07:45 +00:00
no_oauth_middleware.py Add no oauth middleware to bypass keystone authentication 2018-05-08 03:46:52 +01:00
revision_deepdiffing.py Adding api for revisions deep diffing 2018-09-17 17:01:34 +05:30
revision_diffing.py Adding api for revisions deep diffing 2018-09-17 17:01:34 +05:30
revision_documents.py optimization: Skip post-validation for rendered document cache hit 2018-10-02 18:58:07 -05:00
revision_tags.py Make Deckhand validation exceptions adhere to UCP standard 2018-04-26 18:51:08 +00:00
revisions.py Invalidate rendered documents cache when deleting all revisions 2018-08-22 16:10:27 +01:00
rollback.py fix: Address small issues with revision rollback controller 2018-10-18 09:45:16 -04:00
validations.py [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
versions.py Allow anonymous access for health and versions 2017-11-21 16:37:34 -06:00