e2corporation commented on issue #1979:
URL: 
https://github.com/apache/incubator-devlake/issues/1979#issuecomment-1148652221

   @klesh can you please provide me the latest expected JSON configuration for 
Blueprint Create / `POST`? I need to make some changes to the request structure 
so that we send `boards` and `projects` as an array of **Board IDs** and 
**Repositories**. Backend can then split the string to extract `Owner` and 
`RepositoryName`.
   
   
   # Requested Structure Updates
   ```
   {
       "version": "1.0",
       "connections": [
           {
               "plugin": "github",
               "connectionId": 123,
               "scope": [
                   {
                       "projects": ["merico-dev/lake", "merico-dev/stream"]
                       "transformation": {
                           "issueTypeBug": "^(bug|failure|error)$"
                       },
                       "entities": [
                           "code",
                           "crossdomain",
                           "devops",
                           "ticket",
                           "user"
                       ]
                   }
               ]
           },
           {
               "plugin": "jira",
               "connectionId": 321,
               "scope": [
                   {
                       "boards": [123],
                       "options": {
                           "since": "2022-1-2"
                       },
                       "transformation": {
                           "issueTypeBug": "??"
                       },
                       "entities": []
                   }
               ]
           }
       ]
   }
   ```
   
   
   # Current Structure proposed on #1982
   Dispatching `owner` and `repo` as 2 separate fields is not ideal, instead we 
should send an array of `projects`
   ```
   {
       "version": "1.0",
       "connections": [
           {
               "plugin": "github",
               "connectionId": 123,
               "scope": [
                   {
                       "owner": "merico-dev",
                       "repo": "devlake",
                       "transformation": {
                           "issueTypeBug": "^(bug|failure|error)$"
                       },
                       "entities": [
                           "code",
                           "crossdomain",
                           "devops",
                           "ticket",
                           "user"
                       ]
                   }
               ]
           },
           {
               "plugin": "jira",
               "connectionId": 321,
               "scope": [
                   {
                       "boardId": 123,
                       "options": {
                           "since": "2022-1-2"
                       },
                       "transformation": {
                           "issueTypeBug": "??"
                       },
                       "entities": []
                   }
               ]
           }
       ]
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to