Skip to content

[Connect 2.5] Workstreams - Work adding permissions #3258

@maxceem

Description

@maxceem

We should determine which Project Template is for pre-packed and which one for taas project so we know if we should let customers add works or no.

The best solution here would be to reuse permissions from Project Service model WorkManagementPermission which suppose to control permissions for creating works for particular templates. But so far we don't have yet API endpoints implemented for them. Also, so far we don't have yet a good and comfortable way to define them for Project Templates (no API to manage them).

So for the first release, we can go with a simpler way, which could later be evaluated to use WorkManagementPermission model instead.

  1. We should define inside planConfigs, workstreamsConfig permission rule for creating works inside workstreams.
{
  "workstreamsConfig": {

     "addWorkPermission": {
        "projectRoles": ['manager'],
        "topcoderRoles": ['administrator']
     },     

    // other workstreamsConfig properties as per https://github.com/appirio-tech/connect-app/issues/3240
}
  1. During project creation with such a workstreamsConfig, we should copy this permission addWorkPermission into project's
details.settings.workstreams = {
  "addWorkPermission": {
        "projectRoles": ['manager'],
        "topcoderRoles": ['administrator']
     },   
}

So after inside Connect we can determine if the user has permission to add works to the project.

@vikasrohit do you think would ok for the first release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions