Duke-GCB / Duke-GCB/bespin-api

Improve error messages when loading workflows

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Attempting to load an updated workflow file with the same version number causes a unique constraint violation. The workflow fails to load. The reason can be seen in the stacktrace on the server:

```
IntegrityError: UNIQUE constraint failed: data_workflowversion.workflow_id, data_workflowversion.version
```

But the response to the client is simply:

```
{"detail":"Unable to import workflow"}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.