Merge "Initialize the lazily loaded execution "input" field in API"

This commit is contained in:
Zuul 2019-06-28 15:52:49 +00:00 committed by Gerrit Code Review
commit 6a9aa4c295
1 changed files with 3 additions and 3 deletions

View File

@ -64,13 +64,13 @@ def _load_deferred_fields(ex, fields):
def _get_workflow_execution_resource_with_output(wf_ex):
_load_deferred_fields(wf_ex, ['params', 'output'])
_load_deferred_fields(wf_ex, ['params', 'input', 'output'])
return resources.Execution.from_db_model(wf_ex)
def _get_workflow_execution_resource(wf_ex):
_load_deferred_fields(wf_ex, ['params'])
_load_deferred_fields(wf_ex, ['params', 'input'])
return resources.Execution.from_db_model(wf_ex)
@ -84,7 +84,7 @@ def _get_workflow_execution(id, must_exist=True):
else:
wf_ex = db_api.load_workflow_execution(id)
return _load_deferred_fields(wf_ex, ['params', 'output'])
return _load_deferred_fields(wf_ex, ['params', 'input', 'output'])
# TODO(rakhmerov): Make sure to make all needed renaming on public API.