#5485 "A rule's page waits up to 25 s for its metric preview: a cold 24 h series read from plugin_metrics". Opening "Agent offline" took 25.6 s; a cold day of one series measured 18.3 s over MCP, a warm one 63 ms. The pickers still come with the page from plugin_metric_latest; the preview is its own request (hx-trigger=load), showing "Reading the last day…" until it lands. Picker swaps no longer read it either. #5486 "Send test where it can be found": the button moves from inside "What happens" to the page header beside History, its result under the verdict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -316,5 +316,8 @@ async def test_a_rule_covering_hosts_lists_its_hosts_under_it(app):
|
||||
assert 'aria-expanded="false" aria-controls="hosts-p1"' in quiet
|
||||
assert '<tbody id="hosts-p1" class="row-children" hidden>' in quiet and "never fired" in quiet
|
||||
assert "Covers every host in <strong>swarm</strong>: 2 now (node-a, node-b)" in page
|
||||
# #5486: Send test sits in the page's header, its result under the verdict.
|
||||
assert page.index('hx-post="/alerts/rules/p1/test"') < page.index('id="rule-test-result"') \
|
||||
< page.index('id="rule-watches"')
|
||||
assert 'name="covers" value="group"' in page and "fixed once the rule exists" in page
|
||||
assert 'data-cover-resource hidden' in page
|
||||
|
||||
Reference in New Issue
Block a user