opensearch-project/alerting-dashboards-plugin
在 GitHub 查看[BUG] Remove "Last updated by fields" from the UI
Open
#763 创建于 2023年10月5日
buggood first issue
仓库指标
- Star
- (31 star)
- PR 合并指标
- (PR 指标待抓取)
描述
What is the bug?
The SearchMonitor API is not returning user information on a security-enabled cluster.
How can one reproduce the bug? Steps to reproduce the behavior:
- Create a monitor.
- Go to devtools.
- Execute the API call below.
- The response will not contain user information.
GET _plugins/_alerting/monitors/_search
{"query": {"match_all": {}}}
What is the expected behavior?
The response should contain some user information as the alerting dashboards plugin is expected to display Last updated by on two pages.
What is your host/environment?
- OS: mac OS
- Version: 13.4.1 (22F82)
- Plugins: Alerting and alerting dashboards v2.9
Do you have any screenshots?
These two pages in the UI should display Last updated by; but the necessary info isn't in the API response.
Do you have any additional context? This is the API response for the monitor referenced in the screenshots above.
GET _plugins/_alerting/monitors/_search
{"query": {"match_all": {}}}
{
"took": 11,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 2,
"hits": [
{
"_index": ".opendistro-alerting-config",
"_id": "64ngAIsBxWW_xjH902oo",
"_version": 5,
"_seq_no": 6,
"_primary_term": 1,
"_score": 2,
"_source": {
"type": "monitor",
"schema_version": 8,
"name": "hurneyt-test updated2",
"monitor_type": "query_level_monitor",
"enabled": true,
"enabled_time": 1696528317787,
"schedule": {
"period": {
"interval": 1,
"unit": "MINUTES"
}
},
"inputs": [
{
"search": {
"indices": [
"opensearch_dashboards_sample_data_ecommerce"
],
"query": {
"size": 0,
"query": {
"bool": {
"filter": [
{
"range": {
"order_date": {
"from": "{{period_end}}||-1h",
"to": "{{period_end}}",
"include_lower": true,
"include_upper": true,
"format": "epoch_millis",
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
}
}
}
}
],
"triggers": [
{
"query_level_trigger": {
"id": "6ongAIsBxWW_xjH90Wpy",
"name": "trigger1",
"severity": "1",
"condition": {
"script": {
"source": "ctx.results[0].hits.total.value < 10000",
"lang": "painless"
}
},
"actions": []
}
}
],
"last_update_time": 1696528317787,
"data_sources": {
"query_index": ".opensearch-alerting-queries",
"findings_index": ".opensearch-alerting-finding-history-write",
"findings_index_pattern": "<.opensearch-alerting-finding-history-{now/d}-1>",
"alerts_index": ".opendistro-alerting-alerts",
"alerts_history_index": ".opendistro-alerting-alert-history-write",
"alerts_history_index_pattern": "<.opendistro-alerting-alert-history-{now/d}-1>",
"query_index_mappings_by_type": {},
"findings_enabled": false
},
"owner": "alerting"
}
}
]
}
}