> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Approval-Gated Changes | Collate Governance Guide

> Hold edits to watched fields as change requests until a reviewer approves them, using Approval Mode Enforce in event-based governance workflows.

# Approval-Gated Changes

When an event-based governance workflow uses **Approval Mode** set to **Enforce**, an edit to a watched field isn't written to the asset. The edit becomes a **change request** with a review task. The asset keeps its approved value until a reviewer approves the change. This page describes how change requests behave for the person who makes the edit, the reviewer, and API clients.

For more information on setting up the workflow, see [Approval Mode](https://docs.getcollate.io/ai-2-0/how-to-guides/data-governance/workflows/governance-workflow-triggers.md#approval-mode).

## Lifecycle Workflows and Enforce Workflows

Collate has two kinds of governance workflow that involve approvals. They do different jobs.

| | Lifecycle workflow | Enforce workflow |
| - | - | - |
| **Purpose** | Decides when an asset is ready to be trusted. | Handles changes after the asset is trusted. |
| **What it controls** | Moves the asset through the stages of its **status**, such as Draft, In Review, and Approved. | Holds edits to the fields it watches until a reviewer approves them. |
| **What an approval does** | Lets the asset move to the next stage. | Publishes the held edit. |
| **When edits publish** | Right away. The lifecycle reacts to the edit afterward. | Only after a reviewer approves them. |

For more information on lifecycles, see [Lifecycle Workflows](https://docs.getcollate.io/ai-2-0/how-to-guides/data-governance/workflows/lifecycle-workflows.md).

Using both together is optional. For an end-to-end setup, pair them:

1. Use the lifecycle workflow, for example the **Data Product Onboarding Playbook**, as the rulebook for status changes.
2. Add an Enforce workflow on the same asset type to stage edits to the fields you watch.

## Set Up an Enforce Workflow

An Enforce workflow is an event-based workflow with **Approval Mode** set to **Enforce** and a **User Approval** task. The watched fields depend on your use case.

![Canvas of an Enforce workflow with a Start node, a User Approval node, and Approve and Reject branches that each lead to an End node](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/enforce-workflow-canvas.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=b69239848910857f84cea2c2544c288a)

### Stage Edits Only for Approved Assets

To hold edits only while an asset is in the **Approved** status, add an exclude filter to the **Start** node. The workflow doesn't trigger for assets that match the filter, so edits to assets in any other status publish immediately.

1. In the **Start** node, find **Exclude Filter**.
2. Set **Field** to **Status**, **Operator** to **Is Not**, and **Value** to **Approved**.
3. Set **Approval Mode** to **Enforce**.

![Start node with an Exclude Filter where Status Is Not Approved, and Approval Mode set to Enforce](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/enforce-exclude-filter-approval-mode.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=7025be0e8249deb581b287940b272943)

## What Happens When You Edit a Watched Field

1. Edit a field that the workflow watches, then save.
2. The save returns the unchanged asset, and a toast reads "Your change was submitted for approval. It will be published once it is approved."
3. A **Pending Changes** button with a count appears in the header of the asset, glossary term, domain, or data product.
4. Click **Pending Changes** to open the **Review pending changes** window, where you can see the exact proposed change.

![Data product header with the Pending Changes button and an approval task whose Proposed Changes card shows the updated description and display name](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/pending-changes-task-proposed-changes.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=00585beae214849aca0991ee4a58c825)

The **Pending Changes** button appears only when an Enforce workflow covers the asset type and open change requests exist. Only edits to existing assets are held. Creating an asset isn't held.

Admins are held to the same rules. A requester can't approve their own change, even if they are an admin.

Edits made by bots are never held.

## Move a Glossary Term

Moving a glossary term with **Change Parent Term** goes through the same approval gate as dragging the term. When an Enforce workflow watches the `parent` or `glossary` field, Collate holds the move as a change request.

1. Open the glossary term and click the **⋮** menu in the header.

2. Click **Change Parent Term**.

   ![Glossary term menu with the Change Parent Term option highlighted](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/glossary-term-change-parent-term-menu.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=e404f9cf2a2c1bf781459347d624aec9)

3. In the **Change Parent** dialog, search for the new parent under **Select Parent**.

4. Select the checkbox that confirms the term's status will change to **In Review**. This dialog appears every time you move a glossary term, not only for **Approved** terms. Then click **Save**.

   ![Change Parent dialog with the Select Parent search field and a checkbox confirming that the term status will change to In Review](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/glossary-term-change-parent-dialog.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=d933f228fdb679095db120493b1ef27b)

After you save:

* The **Change Parent** dialog closes, a toast reads "Your change was submitted for approval", and the **Pending Changes** indicator refreshes.
* The term stays where it is until a reviewer approves the change. After approval, Collate moves the term and re-parents its child terms, so their names update as they do for a drag.
* If a reviewer rejects the change, the term stays in place.
* If no Enforce workflow watches `parent` or `glossary`, the move runs as a background job, as before.

You need the same access that changing the term's parent through the API needs. Without it, the move is refused.

## Withdraw a Change Request

Only the requester can withdraw a change. To cancel your own pending change, use the **Withdraw revision** action. Collate confirms with "Change request withdrawn."

## Edit Again While a Change Is Pending

* **Second edit by the same requester**: The new edit becomes a new revision of the change request and re-opens the review task. Approvals given on the earlier revision don't carry over.
* **Edits by two requesters**: Each requester's change is independent. If another approved change already touches the same field, Collate flags the request as **conflicted** when it is approved, and the requester must submit an updated change.

An approval on a superseded revision is refused.

## CSV Import

When a CSV import includes rows that the workflow holds, the import reports them with the message `N row(s) are waiting for approval and are not published yet.`

## Approve or Reject

Reviewers act on the **User Approval** task that the workflow creates. For more information, see [User Approval Task](https://docs.getcollate.io/ai-2-0/how-to-guides/data-governance/workflows/elements/nodes/user-approval-task.md).

* **Approve**: The held edit is published to the asset.
* **Reject**: The held edit is discarded.

![Approval task in Activity Feeds and Tasks showing the requester, the assignee, the Proposed Changes card, and the Action Required section with the Approve button](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/approval-task-action-required.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=34da855205327787fa7a22a13c242cf1)

### Review Changes One at a Time

Click **Pending Changes** on the asset to open the **Review pending changes** window. It groups the proposed changes by field, such as **Description** and **Display Name**. Each field shows the **CURRENT** value and the suggestion, with removed text struck through and added text highlighted.

1. Use **Proposed by** to filter the changes by requester.
2. For each field, click **Accept** or **Reject**. To decide everything at once, click **Accept All** or **Reject All**.
3. Check the counts at the bottom of the window: accepted, rejected, and to review.
4. Click **Submit review**. Collate publishes the changes that you accepted. Changes that you didn't decide on stay pending on the same task.

![Review pending changes window with Accept and Reject buttons for the Description and Display Name suggestions, plus Reject All, Accept All, and Submit review](https://mintcdn.com/collatedocs/9nspcc77Ny-NsoEQ/public/images/ai-2.0/how-to-guides/governance/workflows/review-pending-changes-dialog.png?fit=max\&auto=format\&n=9nspcc77Ny-NsoEQ\&q=85\&s=69848e2873fed1b461f287d5e40882f5)

Deciding one field at a time works when **Allow partial decisions** is on in the **User Approval** task. Only edits that you accept are published. For more information, see [Allow Partial Decisions](https://docs.getcollate.io/ai-2-0/how-to-guides/data-governance/workflows/elements/nodes/user-approval-task.md#allow-partial-decisions).

You can't approve a change that you requested. When an asset has no owners or reviewers to assign the task to, Collate auto-approves the change and publishes the edit. Unlike a lifecycle workflow, an Enforce workflow doesn't route the task to the admins.

## Cancel Pending Requests

Deleting the workflow cancels its pending change requests. Changing the workflow so that it no longer holds changes cancels them too. An example is switching **Approval Mode** from **Enforce** to **Default**.

## API Behavior

| Request | Result |
| - | - |
| Held `PUT` or `PATCH` | Returns `202` with the header `X-OpenMetadata-Pending-Change`. |
| `PUT /v1/glossaryTerms/{id}/moveAsync` | A held move returns `202` with the header `X-OpenMetadata-Pending-Change` and no `jobId`. A move that nothing holds returns `202` with a `jobId` and runs as a background job. A request without a parent returns `400`. |
| Bulk asset writes | Return the header `X-OpenMetadata-Pending-Change-Count`. The status is `202` only when something was held and nothing was applied, otherwise `200`. |
| `GET /v1/changeRequests` | Lists change requests. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.