Skip to main content

upgrade

Function upgrade 

Source
pub fn upgrade(
    snapshot: Vec<StateUpdateKind>,
) -> Vec<MigrationAction<StateUpdateKind, StateUpdateKind>>
Expand description

Migrates the catalog role attribute auto_provision_source to the new AutoProvisionSource enum.

For cloud environments, all existing roles that look like an email address are assumed to have been provisioned via Frontegg. For self-managed environments, the field is left as None (the JSON default handles this without explicit update actions).