deckhand/deckhand
Felipe Monteiro e4abca1cd7 Use DAG to resolve substitution dependency chain
Currently, Deckhand fails to perform substitution given
a substitution dependency chain for a group of documents.
That is, if A depends on B and C depends on B for substitution
then substitution will fail. Deckhand, at present, can only
perform substitution if A depends on B and C depends on B
and D depends on B, for example: In this case, the dependency
chain is no bigger than 2.

However, for cases where the substitution dependency chain
is larger than 2, then the dependency is no longer trivial. This
is because the substitution dependencies form a DAG that must
be topologically sorted in order to derive the correct order of
substitution. Once the documents are correctly sorted according
to this scheme, then substitution can be carried out as usual.

This PS makes the aforementioned changes to Deckhand's layering
module to make substitution work for non-cyclical dependencies:
A DAG is used to topologically sort the documents according to
their substitution dependency chain. A unit and functional
test has been added to verify the code.

If a cycle is detected, a critical error is thrown. Unit tests
have been added to validate this case as well.

Change-Id: Iaca3963f44aec6c897ad9fd690ce314a3a4d97a2
2018-02-12 20:54:54 +00:00
..
barbican The field returned by barbican is secret_ref, not secret_href 2018-02-07 21:45:04 -05:00
client Move DB calls out of engine module into controllers 2018-01-18 14:59:43 -05:00
conf Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
control Fix: return only concrete documents from layering module 2018-02-12 18:51:29 +00:00
db Optimize runtime for excluding deleted documents 2018-02-06 15:22:08 -05:00
engine Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
policies Rename Deckhand bucket endpoint to buckets for consistency 2017-10-27 19:21:03 +01:00
tests Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
__init__.py Oslo config integration (#1) 2017-06-26 16:57:50 -07:00
cmd.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
context.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
errors.py Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
factories.py Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
policy.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00
service.py DECKHAND-87: Deckhand API client library 2017-12-13 20:56:23 +00:00
types.py Add functional tests for "owned" documents 2017-12-23 02:25:29 +00:00
utils.py [Fix gate] Fix ValueError being thrown if sub path starts with $ 2018-02-09 00:40:48 -05:00