-
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
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) |
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.
apm changes lgtm
@@ -12,7 +12,7 @@ import { | |||
IngestPutPipelineRequest, | |||
} from '@elastic/elasticsearch/lib/api/types'; | |||
|
|||
interface Pipeline { | |||
export interface Pipeline { |
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.
I can't see that this is used outside of this file?
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 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
@@ -152,7 +152,7 @@ export default ({ getService }: FtrProviderContext) => { | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would kill the typescript typecheck by saying the expanded type is infinitely deep
@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.
response ops changes lgtm
…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: |
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.
Looks good, let's merge
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be Promise<GetAgentsResponse>
that should be imported from @kbn/fleet-plugin/common
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.
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
.