Fix some type issues in x-pack/test#167343
Conversation
|
Pinging @elastic/kibana-operations (Team:Operations) |
|
Pinging @elastic/fleet (Team:Fleet) |
|
Pinging @elastic/apm-ui (Team:APM) |
| } from '@elastic/elasticsearch/lib/api/types'; | ||
|
|
||
| interface Pipeline { | ||
| export interface Pipeline { |
There was a problem hiding this comment.
I can't see that this is used outside of this file?
There was a problem hiding this comment.
maybe it's no longer relevant, but it was used in another time when this was fixed :/
x-pack/test/api_integration/apis/management/ingest_pipelines/lib/fixtures.ts
Show resolved
Hide resolved
| await waitForSignalsToBePresent(supertest, log, 1, [id]); | ||
| const signalsOpen = await getSignalsById(supertest, log, id); | ||
| const ips = signalsOpen.hits.hits.map((hit) => hit._source?.ip).sort(); | ||
| expect(ips.flat(Number.MAX_SAFE_INTEGER)).to.eql([]); |
There was a problem hiding this comment.
this would kill the typescript typecheck by saying the expanded type is infinitely deep
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
…ported function has or is using name...
d4e5c0a to
7b58719
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
ReviewersWe merged this to unblock the pipeline checks. Feel free to comment and suggest changes, and we will follow up. |
| expectedAgentCount: number, | ||
| attempts: number, | ||
| _attemptsMade = 0 | ||
| ): Promise<any> { |
There was a problem hiding this comment.
This should be Promise<GetAgentsResponse> that should be imported from @kbn/fleet-plugin/common
There was a problem hiding this comment.
Thanks for the tip. I opened a PR to fix: #167488
Follow up to #167343 See: #167343 (comment)
Summary
We're breaking #166813 up into smaller PRs in the interest of getting PRs through sooner for type fixes. These are the changes for
x-pack/test.