Workflow sharing support in Mistral

Registered by Lingxian Kong

The idea is from https://bugs.launchpad.net/mistral/+bug/1470373, although we already have a solution for that, I think we should think more, to make the feature more flexible, more controllable to end users. Think about scenarios below:

* When user A creates workflow/workbook/action via API, he can specify a param (e.g. 'scope=public' ) , then all the mistral users can see and use that resource user A created.
Yeah, it's already resolved by bug 1470373! But there is a potential problem, what if user B doesn't want to see so many 'noisy' workflows/actions?

* User A created a 'private' resource as before, he makes a POST request to mistral, e.g. http://localhost:8989/workflows/123/members, with body content {"member": "user B"}, then user B accepts the sharing through some ways, then both user A and user B can see and use that resource.

* User A created a resource and share it with user B, but user B doesn't want to accept it, and user B could reject and can't see and user that resource.

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
Medium
Drafter:
Lingxian Kong
Direction:
Approved
Assignee:
Lingxian Kong
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon 2.0.0
Started by
Nikolay Makhotkin
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-resource-sharing,n,z

Addressed by: https://review.openstack.org/244030
    Add db model for resource sharing

Addressed by: https://review.openstack.org/244154
    Add db operations for resource members

Addressed by: https://review.openstack.org/244155
    [WIP] Support workflow sharing

Addressed by: https://review.openstack.org/255645
    Support workflow UUID in REST API

Addressed by: https://review.openstack.org/255649
    Support UUID when getting a workflow definition

Gerrit topic: https://review.openstack.org/#q,topic:bp/mistral-workflow-resource-sharing,n,z

Addressed by: https://review.openstack.org/278652
    Show shared workflows

Addressed by: https://review.openstack.org/279335
    Add timestamp for member api response

Addressed by: https://review.openstack.org/282648
    Delete workflow members when deleting workflow

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.