Support getting execution by id with specific list of fields

Registered by Oleg Ovcharuk on 2018-11-08

In Mistral, we can get list of executions by endpoint /v2/executions and we can get a single execution by id via endpoint /v2/executions/{id}
In first case, there are lots of ways to configure the output, but none of them is supported in the second case.
I'd like to extend current beavior by adding support to get the specific list of fields.

It is a very common case, e.g. some system wants to check execution state periodically. Instead of loading only state, it downloads a lot of redundant information. Furthermore, this approach spends a lot of traffic, which should be avoided.

So, here's a little Acceptance Criteria:

- Optional 'fields' parameter is supported in Mistral API (/v2/executions) that returns execution by ID
- Mistral returns only list of execution fields that is specified in 'fields' parameter of request
- Mistral returns all fields if 'fields' parameter is absent in request (already exists)

Blueprint information

Status:
Complete
Approver:
Dougal Matthews
Priority:
Medium
Drafter:
Oleg Ovcharuk
Direction:
Approved
Assignee:
Oleg Ovcharuk
Definition:
Obsolete
Series goal:
Accepted for ussuri
Implementation:
Good progress
Milestone target:
milestone icon victoria-1
Started by
Renat Akhmerov on 2019-09-17
Completed by
Oleg Ovcharuk on 2019-09-17

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-getting-execution-with-specific-list-of-fields,n,z

Addressed by: https://review.openstack.org/616693
    Support getting execution by id with specific list of fields

It makes sense now to continue to work on https://review.opendev.org/#/c/505287/

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.