Skip to main content

Pacticipants

A pacticipant is an application that takes part in a pact, as a consumer, a provider or both. The Pacticipants page lists every pacticipant in your workspace. Open one to see its versions, branches, tags, labels, and what each environment runs. For the terms, see Pacticipants and versions.

You can also set one up before its first pact, edit its name, display name, main branch, repository, owner, linked project and labels, and delete it. See Manage a pacticipant. On its Versions tab you tag, delete and restore its versions. See Manage versions. Its Settings tab also gives you a README badge. See Add a badge.

Before you start​

  • You hold Pacts → View. Without it, the page shows Permission denied.
  • Pacticipants appear once a consumer publishes a pact. Publishing registers both the consumer and the provider.

Open the Pacticipants page​

  1. In the rail, under Ship, click Contracts.
  2. Click the Pacticipants tab. It lists the pacticipants by handle.

Each row shows:

ColumnWhat it shows
PacticipantThe display name, which links to the pacticipant's page, and the handle under it.
Main branchThe branch a query reads when it names none.
LabelsThe pacticipant's labels.
RepositoryThe repository URL. An http or https URL opens in a new tab.
UpdatedWhen the pacticipant last changed, in UTC.
The Pacticipants page: Billing Service, Ledger API and Mobile App, each with its handle, main branch, labels, repository and last update, under a Label filter.The Pacticipants page: Billing Service, Ledger API and Mobile App, each with its handle, main branch, labels, repository and last update, under a Label filter.
Route/ade/dashboard/pacts/pacticipants

Click New pacticipant to set one up before it publishes. See Create a pacticipant. The Contracts tabs open the Matrix, Can I deploy?, Webhooks, Environments, Contract health and Verification settings pages.

To see only some pacticipants, choose a label from the Label list. Choose Deleted (can be restored) from the Show list to see the deleted ones. See Restore a deleted pacticipant. Choose All labels to see every pacticipant again. The list shows 50 pacticipants at a time. Click Load more to see the next 50.

If the workspace has no pacticipant yet, the page shows the command that publishes your first pacts:

apiome pact publish ./pacts \
--consumer-app-version "$GIT_COMMIT" \
--branch "$GIT_BRANCH"

Open a pacticipant​

Click a pacticipant's name. Its page has three tabs: Overview, Versions and Settings. See Manage versions for Versions and Manage a pacticipant for Settings. Overview has six sections:

  • Overview shows the handle, the main branch, the repository, the labels, what the pacticipant is Bound to (a project, a consumer, or nothing), and when it was registered.
  • Owner shows the team that owns the pacticipant. See Give a pacticipant an owner.
  • Branches lists each branch with its Head version, the latest version recorded on it. The main branch is marked Main.
  • Environments lists every environment of the workspace. For each one, it shows the versions of this pacticipant that are Deployed now, with their application instance, and the releases that are Released and supported. A production environment is marked Production. Click an environment to open its page.
  • Pacts lists every pact this pacticipant is in, as the consumer or the provider. Each row shows the consumer and provider, this pacticipant's Role, the Latest consumer version that published the pact, when it was published, and how its latest verification went. Click a pact to open it. See Pact detail. Click Network diagram to see every pacticipant connected to this one, with each integration's verdict. See Integration network. When this pacticipant is the provider of a pact, click Verification to see its verification results, re-run a pact and verify the stale ones. See Verification results and re-runs.
  • Versions lists the recorded versions, latest first, with their branches, tags, when they were recorded and by whom, and a link to the build. To tag, delete or restore them, use the Versions tab.
The Billing Service page: Overview facts, the Owner section naming the Billing team, two branches with main marked Main, Production and Staging with the versions deployed and released there, and three pacts with their roles and verdicts.The Billing Service page: Overview facts, the Owner section naming the Billing team, two branches with main marked Main, Production and Staging with the versions deployed and released there, and three pacts with their roles and verdicts.
Route/ade/dashboard/pacts/pacticipants/billing-service

A commit SHA is shortened to its first 12 characters. Hover over it to see the full version number.

Narrow the versions​

  1. Click a branch name, in Branches or in the Versions table, to list only the versions recorded on that branch. The first row is the branch's head.
  2. Click a tag in the Versions table to list only the versions with that tag. The first row is the latest version with the tag.
  3. Click Clear to list every version again.

You can narrow by a branch and a tag at the same time. The count next to Versions says what the list shows, for example 2 versions on branch main, tagged prod. The list shows 50 versions at a time. Click Load more to see the next 50.

Give a pacticipant an owner​

A pacticipant's owner is a team. The team's members get a notification, and the team's chat channel gets a message, when something about the pacticipant needs attention:

To assign or change the owner:

  1. Open the pacticipant.
  2. Under Owner, choose a team from Choose a team….
  3. Click Assign owner (or Change owner when it already has one).

A suggested owner shows a Confirm button. Click it to make that team the owner.

From the command line, run apiome teams assign pacticipant <id> --team <slug>. The <id> is the pacticipant's id from GET /v1/tenants/{tenant}/pacticipants/{handle}. A team page lists the pacticipants it owns under Pacticipants.

With no owner team, notices go to the owner of the consumer or project the pacticipant is Bound to, and otherwise to the Unowned findings report. See Teams → Ownership.

When a section cannot be read​

Each section loads on its own. If one cannot be read, it shows the reason and Try again, and the other sections still show. If an environment's lists cannot be read, its row says Could not be read with the reason, and the other environments still show.

If the workspace has no environment yet, Environments shows the commands that create one and record a deployment. See Environments and deployments. If no pact names the pacticipant yet, Pacts shows the apiome pact publish command.

Manage versions​

The Versions tab lists the pacticipant's versions, latest first, and lets you tag, delete and restore them.

  1. Open the pacticipant and click the Versions tab.

  2. To find a version, type part of its number, a branch or a tag in Search versions, branches, tags…. The search covers the versions loaded so far. When there are more, the tab says so; click Load more to search further.

  3. To change what the list shows, click a chip:

    ChipWhat it lists
    AllEvery version.
    The main branch, for example mainThe versions recorded on the main branch. Shown when the pacticipant has a main branch.
    DeployedThe versions that are deployed to, or released in, an environment now.
    UnverifiedThe versions whose pacts have no verification result yet.
    DeletedThe deleted versions that can still be restored. The count is next to it.

Each row shows the version, its branch, its tags, where it is Running in, and when it was created. A commit SHA is shortened; hover over it to see the full number.

The Versions tab of Orders UI: a search field and the All, main, Deployed, Unverified and Deleted chips, three versions with their branches, tags and the environments they run in, two of them selected, and the selection bar with Add a tag, Delete and Clear.The Versions tab of Orders UI: a search field and the All, main, Deployed, Unverified and Deleted chips, three versions with their branches, tags and the environments they run in, two of them selected, and the selection bar with Add a tag, Delete and Clear.
Route/ade/dashboard/pacts/pacticipants/orders-ui/versions

Tag a version​

  1. In the version's Tags cell, click + tag.
  2. Type the tag, for example prod. A tag may contain /, for example feat/new-invoice.
  3. Click Add. The tag shows on the row.

Tagging a version that already has the tag changes nothing. If the tag is refused, the reason shows under the field.

Delete a version​

Deleting a version hides it with its pacts, the verification results it published, its branch membership and its tags. A branch it headed falls back to its previous version. Can-i-deploy answers that relied on it change. You can restore it until it is purged, after 30 days by default.

  1. On the version's row, click the ⋯ menu, then Delete version.
  2. Read what goes with it.
  3. Optional: type a Reason. It is stored with the delete and in the audit trail.
  4. Click Delete version.

A version that is deployed or released now cannot be deleted. The dialog says, for example, 3.3.2 is running in Production. Record its undeployment first. and offers no delete. See Environments and deployments.

The ⋯ menu also opens Pacts of this version, on the Matrix, and Can I deploy this?, on the Can I deploy? page.

Restore a deleted version​

  1. Click the Deleted chip. Each row shows when the version was deleted, by whom and why, and when it is purged.
  2. Click Restore on the row.

The version comes back with its pacts, verification results and deployments exactly as they were. A branch it headed is headed by it again. If a new version has taken its number since, restoring is refused. A version that was deleted with its pacticipant comes back when you restore the pacticipant.

Act on several versions​

  1. Tick the box of each version, or the box in the header to select every version shown.
  2. In the bar at the bottom, choose an action:
    • Add a tag: type the tag and click Add a tag. Every selected version gets it.
    • Delete: opens the delete dialog for the selected versions. Versions that are deployed or released are listed as blocked and are not deleted.
    • Restore (in the Deleted view): restores every selected version.
    • Clear: unselects them.

After a bulk action, one line says how many versions changed. It names every version that did not, with the reason.

The same, from anywhere under the list shows the apiome pact create-version-tag (or restore-version) command, the Pact CLI command and the REST request for the first selected version.

When something cannot be read​

If the environments cannot be read, the Running in column is empty and the tab says so. Apiome still refuses to delete a version that is deployed or released. If the versions cannot be read, the tab shows the reason and Try again. With no version yet, it says Nothing published under name yet. Publish a pact, or record one from a mock.

The Deployed and Unverified views read each version on its own and show at most 50. The tab says when it left some out. Unverified reads the pacticipant's first 1,000 matrix rows.

Manage a pacticipant​

Create a pacticipant​

Publishing a pact creates its consumer and its provider for you. Create one yourself when you want to set it up first, for example to give it an owner or a main branch before its first build.

  1. On the Pacticipants page, click New pacticipant.
  2. In Name, type the name pacts will use, for example Billing Service. The dialog shows the handle it gets, for example billing-service. URLs and CI name it by the handle.
  3. Optional: change Main branch (it starts as main), choose an Owner team, and type the Repository URL.
  4. Optional: choose a project from Start from a project. The project is linked to the pacticipant, so its published versions can become provider contracts. An empty Name takes the project's name.
  5. Click Create pacticipant. Its page opens.

If another pacticipant already has the name, the dialog says so under Name. If the owner cannot be set, the pacticipant is still created and the list says why. Set the owner on its Settings tab.

Change the settings​

  1. Open the pacticipant and click the Settings tab.

  2. Under General, change any of these:

    FieldWhat it does
    NameThe name pacts use. See Rename a pacticipant.
    Display nameWhat people read when it differs from the name, for example Billing (EU). Pacts never use it. Leave it empty to clear it.
    Main branchThe branch that "latest on main" selectors read.
    RepositoryAn http or https URL of the source repository.
    Linked projectThe project that describes this pacticipant as a provider. Its published versions can become provider contracts. Choose None to unlink it.
    LabelsType a label in Add a label and press Enter, or click a label's × to remove it.
  3. Click Save changes. Only the fields you changed are sent. Click Discard to put the stored values back.

The page says Saved. If a label could not be added or removed, it says which one and why. The other changes are kept.

The Settings tab of Billing Service: General with Name, Display name, Main branch, Repository, Linked project and Labels, the Owner section, Badges with a verified badge preview and its Markdown, the Danger zone, and an aside with the handle, previous names and the same settings as an apiome pact command.The Settings tab of Billing Service: General with Name, Display name, Main branch, Repository, Linked project and Labels, the Owner section, Badges with a verified badge preview and its Markdown, the Danger zone, and an aside with the handle, previous names and the same settings as an apiome pact command.
Route/ade/dashboard/pacts/pacticipants/billing-service/settings

The Owner section is the same as on Overview. See Give a pacticipant an owner. The aside shows the handle, when the pacticipant was registered, its Previous names, and The same, from anywhere: your changes as an apiome pact create-or-update-pacticipant command, a Pact CLI command and a REST request.

Without Pacts → Edit, the tab shows the values without inputs.

Add a badge​

The Badges section of the Settings tab gives you a README badge that says whether the pacticipant's pacts are verified, failing or unknown. Badges are served for a pacticipant linked to a public project. See Pact badges.

  1. Open the pacticipant and click the Settings tab.
  2. Under Badges, choose what the badge is For: the pacticipant (all its pacts), or one of its pacts, for example Orders UI → Billing Service.
  3. Check the preview. It is the badge exactly as anyone fetching it sees it now.
  4. Click a pill: Markdown (Apiome's SVG badge), shields.io (shields.io draws it from the shields.json endpoint) or Image URL. Then click the copy button.
  5. Paste it into your README.

The badge shows the latest pact's verification. A badge for a branch, a tag or an environment is not served. If the pacticipant has no linked project, the section says to link one under General. If the linked project has no published, public version, the section says it serves no badge.

Rename a pacticipant​

Change Name on the Settings tab and click Save changes.

  • The handle does not change, so URLs, CI jobs and links keep working.
  • The history stays: versions, branches, pacts and verification results.
  • The old name keeps working. A pact published under the old name, or a URL or command that names it, still finds this pacticipant. The old name is listed under Previous names.

If another pacticipant has the name, or had it before a rename, the tab says A pacticipant named … already exists. under Name, and nothing is saved.

Delete a pacticipant​

Deleting a pacticipant hides it with all its versions, pacts, verification results, deployments, branches and tags. You can restore it until it is purged, after 30 days by default.

  1. Open the pacticipant and click the Settings tab.
  2. Under Danger zone, click Delete name….
  3. Read what goes with it: the number of versions, pacts and verification results, and the providers and consumers that lose it. A provider that loses a consumer gets a different can-i-deploy answer.
  4. Type the pacticipant's handle to confirm, for example billing-service.
  5. Optional: type a Reason. It is stored with the delete and in the audit trail.
  6. Click Delete name.

The dialog then offers Restore name to undo the delete, and All pacticipants.

A pacticipant with a version that is deployed or released now cannot be deleted. The dialog names the versions and says Record the undeployment first. See Environments and deployments.

Restore a deleted pacticipant​

  1. On the Pacticipants page, choose Deleted (can be restored) from the Show list. Each row shows when it was deleted, by whom and why, and when it is purged.
  2. Click Restore on the row.

The pacticipant comes back with the versions that were deleted with it. If another pacticipant has taken its handle since, restoring is refused. Delete or rename that one first.

From the command line​

# Create a pacticipant, or update the one with this name
apiome pact create-or-update-pacticipant --name "Billing Service" \
--main-branch main --repository-url https://github.com/acme/billing

# Delete one (refused while a version is deployed or released)
apiome pact delete-pacticipant --name "Billing Service" --reason "retired"

# Tag a version, delete one and restore it
apiome pact create-version-tag -a "Billing Service" -e 3.3.2 -t prod
apiome pact delete-version -a "Billing Service" -e 3.3.1 --reason "bad build"
apiome pact restore-version -a "Billing Service" -e 3.3.1

create-version-tag takes pact-broker create-version-tag's flags, including --auto-create-version and --tag-with-git-branch. delete-version is refused while the version is deployed or released.

create-or-update-pacticipant takes pact-broker create-or-update-pacticipant's flags. It never renames: rename on the Settings tab, or with PATCH /v1/tenants/{tenant}/pacticipants/{handle}. See apiome pact commands and the Pacticipants API.

Who can do what​

ActionPermission
Open the Pacticipants page and a pacticipant's pagePacts → View
See a pacticipant's owner and its settingsPacts → View
Create a pacticipantPacts → Create
Change its settings, rename it, add or remove labelsPacts → Edit
Assign, change, confirm or remove a pacticipant's ownerPacts → Edit
Delete a pacticipant, or restore a deleted onePacts → Delete (Owner and Admin)
Tag a versionPacts → Create
Delete a version, or restore a deleted onePacts → Delete (Owner and Admin)
See a badge preview and copy its MarkdownPacts → View

Every read and write is scoped to your current workspace. Creating, changing, deleting and restoring a pacticipant, and tagging, deleting and restoring a version, is recorded in the audit trail. Without Pacts → Create, the Versions tab shows no + tag; without Pacts → Delete, it shows no delete, restore or select boxes.