Skip to content
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

[ML] DF Analytics job creation: Add 'excludes' input field to form #53856

Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@ export enum INDEX_STATUS {
ERROR,
}

export interface FieldSelectionItem {
name: string;
mappings_types: string[];
is_included: boolean;
is_required: boolean;
feature_type?: string;
reason?: string;
}

export interface DfAnalyticsExplainResponse {
field_selection: FieldSelectionItem[];
memory_estimation: {
expected_memory_without_disk: string;
expected_memory_with_disk: string;
};
}

export interface Eval {
meanSquaredError: number | string;
rSquared: number | string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Data Frame Analytics: <CreateAnalyticsForm />', () => {
);

const euiFormRows = wrapper.find('EuiFormRow');
expect(euiFormRows.length).toBe(8);
expect(euiFormRows.length).toBe(9);

const row1 = euiFormRows.at(0);
expect(row1.find('label').text()).toBe('Job type');
Expand Down
Loading