-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Endpoint] connect policy response ui to api #66093
[Endpoint] connect policy response ui to api #66093
Conversation
Pinging @elastic/endpoint-app-team (Feature:Endpoint) |
Pinging @elastic/endpoint-management (Team:Endpoint Management) |
After this PR, we'll put in @nnamdifrankie PR next - #65962. It makes an adjustment to the API schema and makes view changes as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
Some minor (optional) comments provided - which can be done post PR merge if applicable
export const policyResponseLoading = (state: Immutable<HostState>): boolean => | ||
state.policyResponseLoading; | ||
|
||
export const policyResponseError = (state: Immutable<HostState>) => state.policyResponseError; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add explicit return type:
export const policyResponseError = (state: Immutable<HostState>) => state.policyResponseError; | |
export const policyResponseError = (state: Immutable<HostState>): boolean => state.policyResponseError; |
truncateText: true, | ||
render: (ip: string[]) => { | ||
return ( | ||
<EuiToolTip content={ip.toString().replace(',', ', ')} anchorClassName="eui-fullWidth"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: do the ip.toString().replace(',', ', ')
once and store value in a variable - then use variable in the two places below.
[Endpoint] Connect policy response UI to API
[Endpoint] Connect policy response UI to API Co-authored-by: Elastic Machine <[email protected]>
💔 Build Failed
Failed CI StepsTest FailuresKibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/reporting_management/report_delete_pagination·ts.reporting management app Delete reports "before all" hook for "Confirm single report deletion works"Standard Out
Stack Trace
Kibana Pipeline / kibana-xpack-agent / X-Pack API Integration Tests.x-pack/test/api_integration/apis/endpoint/policy·ts.apis Endpoint plugin Endpoint policy api GET /api/endpoint/policy_response "before all" hook for "should return one policy response for host"Standard Out
Stack Trace
Kibana Pipeline / kibana-xpack-agent / X-Pack API Integration Tests.x-pack/test/api_integration/apis/endpoint/policy·ts.apis Endpoint plugin Endpoint policy api GET /api/endpoint/policy_response "before all" hook for "should return one policy response for host"Standard Out
Stack Trace
History
To update your PR or re-run it, just comment with: |
<EuiToolTip content={ip.toString().replace(',', ', ')} anchorClassName="eui-fullWidth"> | ||
<EuiText size="s" className="eui-fullWidth"> | ||
<span className="eui-textTruncate eui-fullWidth"> | ||
{ip.toString().replace(',', ', ')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ip.join(', ')
Summary
Summarize your PR. If it involves visual changes include a screenshot or gif.
Checklist
Delete any items that are not applicable to this PR.
For maintainers