-
Notifications
You must be signed in to change notification settings - Fork 90
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
Projects creation API does not support multiple pipeline options correctly #1454
Comments
There is a syntax conflict as the comma
We may have to drop the support for providing multiple pipelines as a comma-separated string, such as
Because in the CLI, each pipeline is provided as an option and that string is easily parsed: I've introduced that bug recently in d5273cb#diff-e1ee2ed7559ce1892ae462df0375df930a4c51e037809e80a550df3374911bdcR87-R88 |
This makes sense @tdruez , thanks! |
Signed-off-by: tdruez <[email protected]>
Signed-off-by: tdruez <[email protected]>
Closing as this is fixed! |
There is a bug preventing running a
map_deploy_to_develop
pipeline with multiple options enabled.When trying to create a project from the API like this:
We get the following error:
But if we use one option like the following:
It runs the pipeline with the specified optional steps selected without any issues.
So the pipeline option specified do exist and specifying options work nicely through the API for a single pipeline option, but fails for multiple pipeline options.
This is across any pipelines, i.e.
"pipeline": ["resolve_dependencies:StaticResolver,DynamicResolver"],
fails too with{'pipeline': ['"DynamicResolver" is not a valid choice.']}
.The same issue is not present in the CLI. When I run
docker compose exec -it web scanpipe create-project test-cli --pipeline resolve_dependencies:StaticResolver,DynamicResolver --input-url <INPUT_URL> --execute
it creates and runs the project with the specified selected options allright.Relevant docs: https://scancodeio.readthedocs.io/en/latest/rest-api.html#create-a-project
The text was updated successfully, but these errors were encountered: