daml/triggers
Moritz Kiefer dbf28e0794
Revamp trigger status endpoint (#7961)
* Revamp trigger status endpoint

fixes #7951

The previous endpoint was a memory leak, nothing got persisted across
restarts and it omitted useful information like the metadata of the
trigger. The information is useful for testing, so I abstracted over
it so we can do what we did before in testing.

As for the endpoint, it now queries the actor for its current status
and only returns that and includes the metadata in the response.

As mentioned in #7951, I do think there is value in some kind of
history and potentially something including trace statements but I’d
like to do that properly instead of the hacky thing we have atm.

changelog_begin

- [Trigger Service] The trigger status endpoint /v1/triggers/:id now
  includes metadata about the trigger like the party and the trigger
  id. The logs field has been replaced by a status field.

changelog_end

* Fix ACS query test

changelog_begin
changelog_end
2020-11-13 15:59:34 +01:00
..
daml Expose Event from the high-level trigger API (#7899) 2020-11-05 15:02:17 +01:00
runner slow down trigger on RESOURCE_EXHAUSTED failures (#7820) 2020-11-10 21:36:48 +00:00
service Revamp trigger status endpoint (#7961) 2020-11-13 15:59:34 +01:00
tests slow down trigger on RESOURCE_EXHAUSTED failures (#7820) 2020-11-10 21:36:48 +00:00