-
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
[ML] DF Analytics: Creation wizard part 1 #67564
Merged
alvarezmelissa87
merged 27 commits into
elastic:master
from
alvarezmelissa87:ml-df-analytics-creation-wizard
Jun 4, 2020
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
661b55b
create newJob route and start of wizard
alvarezmelissa87 a002ba2
wip: create configStep component
alvarezmelissa87 c517da4
finish configStep form and details
alvarezmelissa87 6bb45c5
wip: create andvanced step components
alvarezmelissa87 bdf2906
create details step component
alvarezmelissa87 7226ab7
createStep component
alvarezmelissa87 633ccf1
ensure advanced options are correct for each job type
alvarezmelissa87 70185db
add validation to each step
alvarezmelissa87 1461140
use custom table for excludes
alvarezmelissa87 fdca5fd
move customSelectionTable to shared components
alvarezmelissa87 3aecbc7
form validation for advanced fields
alvarezmelissa87 11dd4e1
wip: source index selection modal
alvarezmelissa87 12cf4b4
add source index preview
alvarezmelissa87 dae899c
update details
alvarezmelissa87 a32ec5a
ensure advanced parameters added to config on creation
alvarezmelissa87 1e77fbe
can create job from savedSearch. can set source query in ui
alvarezmelissa87 29f80cb
validate source object has supported fields
alvarezmelissa87 68236b3
eslint updates
alvarezmelissa87 d7f9234
update tests. comment out clone action for now
alvarezmelissa87 0b40a5e
add create button to advanced editor
alvarezmelissa87 732b8c6
remove deprecated test helper functions
alvarezmelissa87 1d1cb3f
fix translation errors
alvarezmelissa87 5a6a567
update help text. read only once job created.
alvarezmelissa87 2ef783e
fix functional tests
alvarezmelissa87 336bad4
add nextStepNav to df service for tests
alvarezmelissa87 7c0a368
fix excludes table page jump and hyperParameter not showing in details
alvarezmelissa87 e984987
fix checkbox width for custom table
alvarezmelissa87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
.../data_frame_analytics/pages/analytics_creation/components/advanced_step/advanced_step.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React, { FC } from 'react'; | ||
import { EuiForm } from '@elastic/eui'; | ||
|
||
import { CreateAnalyticsStepProps } from '../../../analytics_management/hooks/use_create_analytics_form'; | ||
import { AdvancedStepForm } from './advanced_step_form'; | ||
import { AdvancedStepDetails } from './advanced_step_details'; | ||
import { ANALYTICS_STEPS } from '../../page'; | ||
|
||
export const AdvancedStep: FC<CreateAnalyticsStepProps> = ({ | ||
actions, | ||
state, | ||
step, | ||
setCurrentStep, | ||
stepActivated, | ||
}) => { | ||
return ( | ||
<EuiForm> | ||
{step === ANALYTICS_STEPS.ADVANCED && ( | ||
<AdvancedStepForm actions={actions} state={state} setCurrentStep={setCurrentStep} /> | ||
)} | ||
{step !== ANALYTICS_STEPS.ADVANCED && stepActivated === true && ( | ||
<AdvancedStepDetails setCurrentStep={setCurrentStep} state={state} /> | ||
)} | ||
</EuiForm> | ||
); | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not related to this PR, but as this file is being touched by this PR, could you set the
width
of the first checkbox column to32px
to stop the selection border being cropped. It is used twice - once for the jobs table, and once for the groups table. It needs to match the width of theeuiTableRowCellCheckbox
.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.
Updated to 32px in fdf122f9dce26a106075d73672c0510fa95dd2f8