mappjzc opened a new pull request, #3970:
URL: https://github.com/apache/incubator-devlake/pull/3970
### Summary
support creating a blueprint without any project.
Check the blueprint's project name if it was used by another blueprint.
bp_post2.0.0.sh
```bash
#!/bin/sh
curl --location --request POST 'devlake:8080/blueprints' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name":"test-gitlab-nddtf-v200",
"projectName":"TestProject",
"cronConfig":"0 0 * * *",
"plan":{},
"settings":
{
"version":"2.0.0",
"connections":
[
{
"plugin":"gitlab",
"connectionId":1,
"scopes":[
{
"id": "37",
"name": "思码逸 / Lake",
"entities":["CODE","TICKET","CODEREVIEW","CROSS","CICD"]
}
]
}
]
},
"enable":true,
"mode":"NORMAL",
"isManual":true
}'
echo "\r\n"
```
bp_patch2.0.0.sh
```bash
#!/bin/sh
curl --location --request PATCH 'devlake:8080/blueprints/25' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name":"test-gitlab-nddtf-v200-no-project-name",
"projectName":"TestProject",
"cronConfig":"0 0 * * *",
"plan":{},
"settings":
{
"version":"2.0.0",
"connections":
[
{
"plugin":"gitlab",
"connectionId":1,
"scopes":[
{
"id": "37",
"name": "思码逸 / Lake",
"entities":["CODE","TICKET","CODEREVIEW","CROSS","CICD"]
}
]
}
]
},
"enable":true,
"mode":"NORMAL",
"isManual":true
}'
echo "\r\n"
```
bp_patch2.0.0_np.sh
```bash
#!/bin/sh
curl --location --request PATCH 'devlake:8080/blueprints/25' \
--header 'Content-Type: application/json' \
--data-raw '
{
"name":"test-gitlab-nddtf-v200-no-project-name",
"projectName":"",
"cronConfig":"0 0 * * *",
"plan":{},
"settings":
{
"version":"2.0.0",
"connections":
[
{
"plugin":"gitlab",
"connectionId":1,
"scopes":[
{
"id": "37",
"name": "思码逸 / Lake",
"entities":["CODE","TICKET","CODEREVIEW","CROSS","CICD"]
}
]
}
]
},
"enable":true,
"mode":"NORMAL",
"isManual":true
}'
echo "\r\n"
```
### Does this close any open issues?
Closes #3944
### Screenshots



--
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]