Skip to content

Verify if MFA assignments changed before emitting an event #3597

Description

@j-chmielewski

In modify_network handler, before emitting a LocationMfaFlowsAssigned event, check if the flows really changed:

    // TODO: also check new-old assignments equality before emitting
    if update_mfa_assignments {
        appstate.emit_event(ApiEvent {
            context: context.clone(),
            event: Box::new(ApiEventType::LocationMfaFlowsAssigned {
                location_id: network.id,
                location_name: network.name.clone(),
                assignments: LocationMfaFlowAssignment::snapshot(&mfa_assignments),
            }),
        })?;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions