This PR is 3 of 9 related to the new single flow changes. We will merge all changes into the single-flow-development branch
first, and finally merge into main.
Please ignore test-related code for now, this is currently being refactored and updated, will be addressed in a later PR
This PR adds the detector jobs and review & create pages (steps 3 & 4 in the creation flow, respectively). Specifically, the changes include:
Adds the new DetectorJobs page, which allows the user to pick between starting a real-time detector and/or a historical analysis, all based off of the same configuration. Has consistent validation with the rest of the create flow pages.
Adds the new ReviewAndCreate page, which allows the user to look over all of the detector configuration settings they've selected, and edit buttons to return to the corresponding step if they want to make changes. Has consistent validation with the rest of the create flow pages, and will kick off a real-time job and/or historical task if the user has selected to do so.
ReviewAndCreate page components - the AdditionalSettings, DetectorDefinitionFields and ModelConfigurationFields are similar but refactored versions of those currently shown in the DetectorConfig configuration page. The new FilterDisplayList component allows for rendering a list of all filters created based on the new filter data model (custom labels, custom filters, simple filters). The new DetectorScheduleFields component shows what the user has selected regarding starting a real-time and/or historical detector upon creation.
Updates and refactors relevant helper functions to convert Formik fields to detector
Screenshot (Detector Jobs page):
Screenshot (Review & Create page):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes:
This PR is 3 of 9 related to the new single flow changes. We will merge all changes into the single-flow-development branch first, and finally merge into main.
Please ignore test-related code for now, this is currently being refactored and updated, will be addressed in a later PR
This PR adds the detector jobs and review & create pages (steps 3 & 4 in the creation flow, respectively). Specifically, the changes include:
DetectorJobs
page, which allows the user to pick between starting a real-time detector and/or a historical analysis, all based off of the same configuration. Has consistent validation with the rest of the create flow pages.ReviewAndCreate
page, which allows the user to look over all of the detector configuration settings they've selected, and edit buttons to return to the corresponding step if they want to make changes. Has consistent validation with the rest of the create flow pages, and will kick off a real-time job and/or historical task if the user has selected to do so.ReviewAndCreate
page components - theAdditionalSettings
,DetectorDefinitionFields
andModelConfigurationFields
are similar but refactored versions of those currently shown in theDetectorConfig
configuration page. The newFilterDisplayList
component allows for rendering a list of all filters created based on the new filter data model (custom labels, custom filters, simple filters). The newDetectorScheduleFields
component shows what the user has selected regarding starting a real-time and/or historical detector upon creation.Screenshot (Detector Jobs page):
Screenshot (Review & Create page):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.