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
66 stars 7 forks source link

Add `SaveUserTask` and `CompleteUserTask` to Audit Log #904

Open Snarr opened 3 weeks ago

Snarr commented 3 weeks 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
  }
}