-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Fix some type issues in x-pack/test_serverless #167346
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
Changes from all commits
771043c
925f29d
508659c
9cd04ce
0acf688
d66f3fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,17 +14,17 @@ import { CasesFindResponse } from '@kbn/cases-plugin/common/types/api'; | |
| import { kbnTestConfig, kibanaTestSuperuserServerless } from '@kbn/test'; | ||
| import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
|
||
| export interface User { | ||
| username: string; | ||
| password: string; | ||
| description?: string; | ||
| roles: string[]; | ||
| } | ||
|
Comment on lines
+17
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't see that
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm still verifying these, but I these kinds of "export" additions were a kind of typescript errors that were something like an inferred type was private - these additions fixed those errors, but now that I'm re-verifying, both User and CommonSavedObjectAttributes works without export, so I'm puzzled 😕
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IDE TypeScript errors work in mysterious ways 🤷
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it wasn't an IDE, it was through the typecheck command. But it no longer seems to be present, so we can undo these, or keep them |
||
|
|
||
| export function SvlCasesApiServiceProvider({ getService }: FtrProviderContext) { | ||
| const kbnServer = getService('kibanaServer'); | ||
| const supertest = getService('supertest'); | ||
|
|
||
| interface User { | ||
| username: string; | ||
| password: string; | ||
| description?: string; | ||
| roles: string[]; | ||
| } | ||
|
|
||
| const superUser: User = { | ||
| username: 'superuser', | ||
| password: 'superuser', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,15 +9,15 @@ import { Case, Attachment } from '@kbn/cases-plugin/common/types/domain'; | |
| import { omit } from 'lodash'; | ||
| import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
|
||
| export function SvlCasesOmitServiceProvider({}: FtrProviderContext) { | ||
| interface CommonSavedObjectAttributes { | ||
| id?: string | null; | ||
| created_at?: string | null; | ||
| updated_at?: string | null; | ||
| version?: string | null; | ||
| [key: string]: unknown; | ||
| } | ||
| export interface CommonSavedObjectAttributes { | ||
| id?: string | null; | ||
| created_at?: string | null; | ||
| updated_at?: string | null; | ||
| version?: string | null; | ||
| [key: string]: unknown; | ||
| } | ||
|
Comment on lines
+12
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't see that |
||
|
|
||
| export function SvlCasesOmitServiceProvider({}: FtrProviderContext) { | ||
| const savedObjectCommonAttributes = ['created_at', 'updated_at', 'version', 'id']; | ||
|
|
||
| return { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.