Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create project if it doesn't already exist #135

Closed
ConorSheehan1 opened this issue Nov 24, 2020 · 3 comments
Closed

Create project if it doesn't already exist #135

ConorSheehan1 opened this issue Nov 24, 2020 · 3 comments
Labels
new feature New Feature released Released

Comments

@ConorSheehan1
Copy link

Would it be possible to add a param to /send-results or add a new endpoint, so that if results are sent to a project that doesn't exist, the project is created?

e.g.

curl -X POST "$ALLURE_SERVER/allure-docker-service/send-results?project_id=$PROJECT_ID&create_project=1" -H 'Content-Type: multipart/form-data' $FILES -ik
# create project $PROJECT_ID if it doesn't already exist
# send results to $PROJECT_ID
@fescobar fescobar added new feature New Feature backlog Backlog labels Nov 25, 2020
@fescobar
Copy link
Owner

@ConorSheehan1 it could be a new feature. I've added to the backlog.

@fescobar fescobar added testing Testing work in progress Work in progress and removed backlog Backlog labels Dec 1, 2020
fescobar added a commit that referenced this issue Dec 1, 2020
Updating flask-swagger-ui to 3.36.0
 #134 - Order of test cases in the Emailable Report
 #135 - Create project if it doesn't already exist
@fescobar fescobar added ready to be released Ready to be released and removed testing Testing work in progress Work in progress labels Dec 2, 2020
fescobar added a commit that referenced this issue Dec 2, 2020
Updating Allure version to 2.13.6
Updating flask-swagger-ui to 3.36.0
#134 - Order of test cases in the Emailable Report
#135 - Create project if it doesn't already exist
@fescobar
Copy link
Owner

fescobar commented Dec 2, 2020

Hi @ConorSheehan1
Your feature was released in version 2.13.6
Use query parameter force_project_creation=true in POST /send-results
Here the documentation:
https://github.com/fescobar/allure-docker-service#force-project-creation-option
Thank you so much.

@fescobar fescobar added released Released and removed ready to be released Ready to be released labels Dec 2, 2020
@ConorSheehan1
Copy link
Author

Wow that was fast! Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New Feature released Released
Projects
None yet
Development

No branches or pull requests

2 participants