(
connection: WarehouseConnection,
user: FFAdminUser,
*,
action: str,
)
| 451 | |
| 452 | |
| 453 | def 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 | |
| 472 | def create_metric_audit_log( |
no test coverage detected
searching dependent graphs…