Skip to content

Commit

Permalink
Merge pull request #105 from overmindtech/add-change-timeline
Browse files Browse the repository at this point in the history
Added timeline data
  • Loading branch information
dylanratcliffe authored Jul 26, 2023
2 parents a552669 + d205b73 commit c5879a6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions changes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ service ChangesService {
// Deletes a change
rpc DeleteChange(DeleteChangeRequest) returns (DeleteChangeResponse);

// Get the timeline of changes for a given change
rpc GetChangeTimeline(GetChangeTimelineRequest) returns (GetChangeTimelineResponse);

// Ask the gateway to refresh all internal caches and status slots
// The RPC will return immediately doing all processing in the background
rpc RefreshState(RefreshStateRequest) returns (RefreshStateResponse);
Expand Down Expand Up @@ -135,6 +138,29 @@ service ChangesService {
rpc GetDiff(GetDiffRequest) returns (GetDiffResponse);
}

message GetChangeTimelineRequest {
bytes changeUUID = 1;
}

message GetChangeTimelineResponse {
repeated ChangeTimelineEntry entries = 1;
}

message ChangeTimelineEntry {
// The status that this event should be associated with. Usually this would be
// the status that the changed ended up in as a result of this action
ChangeStatus status = 1;

// The message that describes this event
string statusMessage = 2;

// The time that this event happened
google.protobuf.Timestamp happenedAt = 3;

// The name of the user that performed this action
string actorName = 4;
}

message GetDiffRequest {
bytes changeUUID = 1;
}
Expand Down

0 comments on commit c5879a6

Please sign in to comment.