MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / create_warehouse_audit_log

Function create_warehouse_audit_log

api/experimentation/services.py:453–469  ·  view source on GitHub ↗
(
    connection: WarehouseConnection,
    user: FFAdminUser,
    *,
    action: str,
)

Source from the content-addressed store, hash-verified

451
452
453def create_warehouse_audit_log(
454 connection: WarehouseConnection,
455 user: FFAdminUser,
456 *,
457 action: str,
458) -> None:
459 AuditLog.objects.create(
460 environment=connection.environment,
461 project=connection.environment.project,
462 **_resolve_audit_log_author(user),
463 related_object_id=connection.id,
464 related_object_type=RelatedObjectType.WAREHOUSE_CONNECTION.name,
465 log=(
466 f"Warehouse connection {action} for environment "
467 f"{connection.environment.name}"
468 ),
469 )
470
471
472def create_metric_audit_log(

Callers 3

perform_createMethod · 0.90
perform_updateMethod · 0.90
perform_destroyMethod · 0.90

Calls 2

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…