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

Function _resolve_audit_log_author

api/experimentation/services.py:445–450  ·  view source on GitHub ↗
(
    user: FFAdminUser,
)

Source from the content-addressed store, hash-verified

443
444
445def _resolve_audit_log_author(
446 user: FFAdminUser,
447) -> dict[str, int | None]:
448 if getattr(user, "is_master_api_key_user", False):
449 return {"author_id": None, "master_api_key_id": user.key.id}
450 return {"author_id": user.pk, "master_api_key_id": None}
451
452
453def create_warehouse_audit_log(

Callers 3

create_metric_audit_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…