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

Porch does not distinguish between versions of the same pipeline #70

Open
kjsanger opened this issue Jul 9, 2024 · 0 comments
Open

Comments

@kjsanger
Copy link
Member

kjsanger commented Jul 9, 2024

Porch does not distinguish between versions of the same pipeline. Changing the version but not the pipeline name when registering results in 409 where I'd expect a new version of the same pipeline to be registered.

jq -n '{name: "foo", uri: "bar", version: "baz"}' | curl -i --header 'Content-Type: application/json' --header 'Authorization: Bearer 00000000000000000000000000000000' -X POST --json @- http://localhost:8081/pipelines/
HTTP/1.1 201 Created
date: Tue, 09 Jul 2024 14:45:11 GMT
server: uvicorn
content-length: 42
content-type: application/json

{"name":"foo","uri":"bar","version":"baz"}

$  jq -n '{name: "foo", uri: "bar", version: "bam"}' | curl -i --header 'Content-Type: application/json' --header 'Authorization: Bearer 00000000000000000000000000000000' -X POST --json @- http://localhost:8081/pipelines/
HTTP/1.1 409 Conflict
date: Tue, 09 Jul 2024 14:45:30 GMT
server: uvicorn
content-length: 36
content-type: application/json

{"detail":"Pipeline already exists"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant