Hello! When I "Delete all pacts" it delete all pa...
# pactflow
l
Hello! When I "Delete all pacts" it delete all pacts but once I publish a new contract again, I could see old pacts immediately. This doesn't seems correct as they are suppose to be deleted. Can you confirm this?
b
I personally do not have experience with Pactflow - only with Pact Broker. But I find it quite similar (for your question at least). So my opinion is that you are not in the Contracts list but in the Matrix - Matrix being the "Run History List". Thus, because you re-published a contract that previously existed, you are being displayed the previous run history.
l
Is there anyway we can clear the history of Matrix completely ?
m
If you choose to “delete the integration” it should remove the integration related data, I believe
l
If I remove the integration then all the webhooks connected to it will also be deleted I believe
m
I think you just want to delete the test and contract data, right? I’ll check with the team tomorrow, I don’t believe we have a button to just remove that
l
Yes Matt, only the contract data
👍 1
It works some months back I think which now has been changed to this behaviour.
m
I’ll follow up tomorrow Leon. I don’t think deleting all pacts removed test data along with the contract versions, but I may be mistaken
(I have set a reminder. The development team is currently in an all day workshop today/tomorrow so we might be a little long to get back)
👍 1
Just checked, it won’t delete the webhook
Checking on the other question
b
@Leon Luu deleting the pacts does not delete the verifications
the verifications remain, and when you publish a pact with exactly the same content, it identifies that it was the same content as was previously published, and hence, the verifications are joined up.
it’s exactly the same as the “pre-verification” feature.
deleting an integration does delete the webhooks
it’s best to have your webhook creation under source control for this reason.
if there are only a few provider versions (as in, the application versions) then if you delete the version resource, the verifications will be deleted too.
It works some months back I think which now has been changed to this behaviour.
There has been no change in this behaviour for many years.
you were probably just publishing different contracts, so it didn’t hook them up to the previous verifications.
m
deleting an integration does delete the webhooks
I should have read the popup, it does say that
l
thanks for clarifying @Beth (pactflow.io/Pact Broker/pact-ruby), got it ! 🙂