[RAM] Add error logs in rule details page#128925
Conversation
|
Pinging @elastic/response-ops (Team:ResponseOps) |
JiaweiWu
left a comment
There was a problem hiding this comment.
I tested the error logs locally, everything looks good, other than the comments that I left
I'll let someone else give the green light for the snooze section.
...iggers_actions_ui/public/application/sections/rules_list/components/rule_status_dropdown.tsx
Outdated
Show resolved
Hide resolved
| onRuleChanged={requestRefresh} | ||
| direction="row" | ||
| isEditable={hasEditButton} | ||
| previousSnoozeInterval={null} |
There was a problem hiding this comment.
do we need to specifically pass in null here?
There was a problem hiding this comment.
Yes because we are not going to backport this feature for 8.2, so I will have to remove it. But I think that we should also move the code out of the rule list page to RuleStatusDropdown, therefore we are not duplicating this functionality everywhere we used this component. We will follow up with a new PR.
...s/triggers_actions_ui/public/application/sections/rule_details/components/rule_error_log.tsx
Show resolved
Hide resolved
...s/triggers_actions_ui/public/application/sections/rule_details/components/rule_error_log.tsx
Show resolved
Hide resolved
...s/triggers_actions_ui/public/application/sections/rule_details/components/rule_error_log.tsx
Outdated
Show resolved
Hide resolved
| sorting={{ sort }} | ||
| pagination={pagination} | ||
| onChange={({ page: changedPage, sort: changedSort }) => { | ||
| if (changedPage) { |
There was a problem hiding this comment.
not really a big deal, but should we break this into onChangePage and onChangeSort functions?
...ggers_actions_ui/public/application/sections/rule_details/components/rule_error_log.test.tsx
Show resolved
Hide resolved
ymao1
left a comment
There was a problem hiding this comment.
Error log table looks good! Left some comments about the updated error/warning banners.
...ugins/triggers_actions_ui/public/application/lib/rule_api/load_execution_log_aggregations.ts
Outdated
Show resolved
Hide resolved
...plugins/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.tsx
Show resolved
Hide resolved
...ins/triggers_actions_ui/public/application/sections/rule_details/components/rule_details.tsx
Outdated
Show resolved
Hide resolved
...ins/triggers_actions_ui/public/application/sections/rule_details/components/rule_details.tsx
Show resolved
Hide resolved
...ck/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule.scss
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
LGTM, but just wanted to make sure that we are only disabling the last response, and not the average duration or execution duration graph
Also do we want a more detailed wording for the disabled messaging? Since the old messaging explained why the rule summary couldn't be display, this just says "disabled"
|
@JiaweiWu I worked with @ryankeairns and here we go |
Design PRMerge at your leisure: |
Design tweaks to header, status dropdown, mobile
ymao1
left a comment
There was a problem hiding this comment.
Just some comments about the types and the sorting issue discussed offline and this LGTM!
x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.test.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/alerting/server/lib/get_execution_log_aggregation.ts
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flakyTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
* add error log on details page + snooze * refresh table in details page * fix type * add + fix jest test * add test for error log * remove console * update functional test + delete flaky jest test + fix i18n * review I * remove skip * review II * remove disable panel * clean up design * fix check * fix types * Design tweaks to header, status dropdown, mobile * remove dead code * jest test * fix actions layout * review III Co-authored-by: Ryan Keairns <contactryank@gmail.com> (cherry picked from commit d6b8e4b)
* add error log on details page + snooze * refresh table in details page * fix type * add + fix jest test * add test for error log * remove console * update functional test + delete flaky jest test + fix i18n * review I * remove skip * review II * remove disable panel * clean up design * fix check * fix types * Design tweaks to header, status dropdown, mobile * remove dead code * jest test * fix actions layout * review III Co-authored-by: Ryan Keairns <contactryank@gmail.com> (cherry picked from commit d6b8e4b)



Summary
Checklist