littlehorse-enterprises / littlehorse

This repository contains the code for the LittleHorse Server, Dashboard, CLI, and Java/Go/Python SDK's. Brought to you by LittleHorse Enterprises LLC
https://littlehorse.dev/
Other
119 stars 11 forks source link

Add `CompleteUserTask` to Audit Log #904

Open Snarr opened 4 months ago

Snarr commented 4 months ago

In user_tasks.proto, we have a message UserTaskEvent that is stored in the audit log of a UserTaskRun for observability purposes. There are different types of UserTaskEvents that can be logged, and we should add SaveUserTask and CompleteUserTask to this list of types once they are ready.

From schemas/littlehorse/user_tasks.proto:

message UserTaskEvent {
  ...
  oneof event {
    // Denotes that a TaskRun was scheduled via a trigger.
    UTETaskExecuted task_executed = 2;

    // Denotes that the UserTaskRun was assigned.
    UTEAssigned assigned = 3;

    // Denotes that the UserTaskRun was cancelled.
    UTECancelled cancelled = 4;
    // TODO: Add "save user task" and "complete user task" to the
    // audit log
  }
}
Snarr commented 2 months ago

Partially resolved: https://github.com/littlehorse-enterprises/littlehorse/pull/946