Version

variable_version.rolled_back

An environment was rolled back to an earlier version.

When it fires

After RollbackVersionService succeeds. The stats object summarises what changed during the rollback.

Payload

ts
{
    type: 'variable_version.rolled_back',
    data: {
        versionId: string         // target version that was rolled back to
        environmentId: string
        versionLabel: string
        stats: {
            added: number         // variables that didn't exist and were re-created
            updated: number       // variables that existed with different values
            removed: number       // variables that exist now but didn't in the target version
        }
    }
}

Example

json
{
    "type": "variable_version.rolled_back",
    "data": {
        "versionId": "0192a1b2-c3d4-7000-8000-000000000050",
        "environmentId": "0192a1b2-c3d4-7000-8000-000000000020",
        "versionLabel": "v12",
        "stats": {
            "added": 0,
            "updated": 3,
            "removed": 1
        }
    }
}