tanium / octobot

github bot with slack and jira integration
MIT License
25 stars 16 forks source link

Fix deleting a repo doesn't delete jira configs #330

Closed trevershick closed 1 year ago

trevershick commented 1 year ago

The added test creates a repo with jira config, then deletes the repo, then recreates the repo with the same values. Initially it failed before the fix was put in.

test run before fix


---- repos::tests::test_jira_repos_delete_recreate stdout ----
thread 'repos::tests::test_jira_repos_delete_recreate' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorMessage { msg: "Error inserting jira SER for repo 2: UNIQUE constraint failed: repos_jiras.repo_id, repos_jiras.jira" }', lib/src/repos.rs:676:
111