Hi everyone! Recently I've created pacticipant on ...
# pactflow
a
Hi everyone! Recently I've created pacticipant on pactflow side without name. Can't delete it using api now 🙂 Any ideas?
Copy code
"name": "",
        "displayName": "",
        "createdAt": "2022-04-04T07:54:22+00:00",
        "_embedded": {
          "labels": []
        },
        "_links": {
          "self": {
            "href": "<https://caspian.pactflow.io/pacticipants/>"
          },
          "pb:versions": {
            "href": "<https://caspian.pactflow.io/pacticipants//versions>"
          }
m
Strange! Sounds like a weird bug - do you know how you managed to create it?
I’ll raise a card to look next week (note it’s a long weekend here in Melbourne)
I don’t think the pacticipant API would accept this, I’m wondering if perhaps a contract with an empty provider did
a
Thank you for the reply, Matt! I don't remember how I managed to create it. I think I was playing with
publish.sh
script to send OAS and somehow one of environment variables was not properly initialized.
👍 1
m
Ah that makes sense, thanks for the pointer. We can remove the empty pacticipant for you next week when we're back
👍 1
y
Hi @Anton Yakutovich, I managed this today, as I also didn't have my PACTICIPANT env var set (as was running the script outside of a Makefile). 1. Select integration from integrations list 2. select view contract 3. Click on the 3 dots and click delete 4. Click delete on the confirmation 5. Refresh the page and it should be removed from the list. Not tried via the API, but hope that may help 👍
ideally we would have server side validation that stops that happening in the first place, and the planned CLI tool, could provide that feedback sooner to the user, pre upload
👍 1
a
Thank you for the update. As far as I remember, in my case I even couldn't open the page for that participant. I ended up cleaning all participants except empty one using
curl -X DELETE
to https://XYZ.pactflow.io/pacticipants/pacticipant_name/versions
Integration panel doesn't have it right now. It's only visible from API calls.