1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 03:32:42 +01:00
phorge-phorge/src/applications/herald/controller
epriestley bf2f3991d2 When using the Herald test console on a transactional object, guess a reasonable set of transactions to simulate
Summary:
Depends on D20518. Ref T13283. When you use the "Test Console" in Herald to test rules, pass the most recent group of transactions to the Adapter.

This will make it easier to test rules that depend on edit state, since you can make the type of edit you're trying to test and then use the Test Console to actually test if it matches in the way you expect.

The transactions we select may not be exactly the group of transactions that most recently applied. For example, if you make edits A, B, and C in rapid succession and then run the Test Console on the object, it may select "A + B + C" as a transaction group. But we'll show you what we selected and this is basically sane/reasonable and should be fine.

(Eventually, we could include a separate "transaction group ID" on transactions if we want to get this selection to match exactly.)

Test Plan: Ran the Test Console on various objects, saw sensible transaction lists in the transcripts.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13283

Differential Revision: https://secure.phabricator.com/D20519
2019-05-16 10:32:54 -07:00
..
HeraldController.php Add skeleton code for webhooks 2018-02-09 13:55:04 -08:00
HeraldDisableController.php Modularize HeraldRule transactions 2019-03-07 11:55:31 -08:00
HeraldNewController.php Replace "URI->setQueryParams()" after initialization with a constructor argument 2019-02-14 11:46:37 -08:00
HeraldRuleController.php Modularize HeraldRule transactions 2019-03-07 11:55:31 -08:00
HeraldRuleListController.php Add skeleton code for webhooks 2018-02-09 13:55:04 -08:00
HeraldRuleViewController.php Replace the primary "Disabled/Enabled" Herald Rule filter with "Active/Inactive", considering author status 2018-11-15 15:47:35 -08:00
HeraldTestConsoleController.php When using the Herald test console on a transactional object, guess a reasonable set of transactions to simulate 2019-05-16 10:32:54 -07:00
HeraldTranscriptController.php In Herald, save applied transaction PHIDs in the transcript and display them in the UI 2019-05-16 09:58:16 -07:00
HeraldTranscriptListController.php Modernize Herald 2015-11-30 07:11:52 -08:00
HeraldWebhookController.php Add skeleton code for webhooks 2018-02-09 13:55:04 -08:00
HeraldWebhookEditController.php Add skeleton code for webhooks 2018-02-09 13:55:04 -08:00
HeraldWebhookKeyController.php Refine core webhook implementation somewhat 2018-02-09 13:55:55 -08:00
HeraldWebhookListController.php Add skeleton code for webhooks 2018-02-09 13:55:04 -08:00
HeraldWebhookTestController.php Trigger all "Firehose" webhooks on all transactional edits 2018-02-09 13:56:34 -08:00
HeraldWebhookViewController.php Index "Call Webhook" in Herald, and show calling rules on the Webhook page 2019-03-07 14:48:14 -08:00