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

Pacticipant version cannot be deleted when webhook has been triggered #300

Closed
1 of 3 tasks
bartschotten opened this issue Aug 30, 2019 · 3 comments
Closed
1 of 3 tasks

Comments

@bartschotten
Copy link

Pre issue-raising checklist

I have already (please mark the applicable with an x):

  • Upgraded to the latest Pact Broker OR
  • Checked the CHANGELOG to see if the issue I am about to raise has been fixed
  • Created an executable example that demonstrates the issue using either a:
    • Dockerfile
    • Git repository with a Travis or Appveyor (or similar) build

Software versions

  • pact-broker docker version: eg 2.31.0-1

Expected behaviour

Calling DELETE on a pacticipant version resource should delete it.

Actual behaviour

500 internal server error is returned.

Steps to reproduce

Trigger webhook related to the version, then try to delete it.

Relevent log files

ERROR -- : PG::ForeignKeyViolation: ERROR: update or delete on table "pact_publications" violates foreign key constraint "triggered_webhooks_pact_publication_id_fkey" on table "triggered_webhooks"

@bethesque
Copy link
Member

Please update to the latest version of the Pact Broker.

@bethesque
Copy link
Member

PS I still recommend using the SQL script to clean up the data - it will be much faster than iterating over the API.

@bartschotten
Copy link
Author

We upgraded to the latest version and the issue has indeed been fixed. Thanks a lot. I'll look into the sql script as well.

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

2 participants