-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Security Solution] Remove graphQL host #94592
Conversation
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
field: string; | ||
}; | ||
aggs?: { | ||
[aggSortField: string]: { |
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.
are you sure that 's aggSortField
here?
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.
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.
maybe we could switch to elasticsearch types now? #83808
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.
ok, replaced line 27 - 62 with estypes.AggregationContainer
import { RequestOptionsPaginated } from '../..'; | ||
import { HostsFields } from '../common'; | ||
|
||
export interface HostFirstLastSeenRequestOptions | ||
extends Partial<RequestOptionsPaginated<HostsFields>> { | ||
hostName: string; | ||
order: 'asc' | 'desc'; | ||
order: Direction.asc | Direction.desc; |
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.
🙏
x-pack/plugins/security_solution/public/hosts/components/hosts_table/columns.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/hosts/components/hosts_table/index.tsx
Show resolved
Hide resolved
…_table/columns.tsx Co-authored-by: Xavier Mouligneau <[email protected]>
x-pack/plugins/security_solution/public/hosts/components/hosts_table/index.tsx
Show resolved
Hide resolved
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
* rm host from graphql * clean up * rm SortRequestDirection * fix types * rm comment * fix types * fix unit test * fix unit test * Update x-pack/plugins/security_solution/public/hosts/components/hosts_table/columns.tsx Co-authored-by: Xavier Mouligneau <[email protected]> * revert assertUnreachable * use estypes * rename details to HostDetails Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]>
* rm host from graphql * clean up * rm SortRequestDirection * fix types * rm comment * fix types * fix unit test * fix unit test * Update x-pack/plugins/security_solution/public/hosts/components/hosts_table/columns.tsx Co-authored-by: Xavier Mouligneau <[email protected]> * revert assertUnreachable * use estypes * rename details to HostDetails Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]>
Summary
This PR is to remove graphQL endpoint for host entirely. Before this PR we've replace every endpoint of host with search strategy except from host details.
Steps to verify:
graphql
, make sure nothing appears.