-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Move ui/agg_types in to shim data plugin #56353
Changes from all commits
9353e6c
99b043c
188f2c1
d92887d
14adb25
a523b3c
6b32d2a
926423d
441cf76
dbec747
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
*/ | ||
|
||
// /// Define plugin function | ||
import { DataPlugin as Plugin, DataStart } from './plugin'; | ||
import { DataPlugin as Plugin } from './plugin'; | ||
|
||
export function plugin() { | ||
return new Plugin(); | ||
|
@@ -27,14 +27,58 @@ export function plugin() { | |
// /// Export types & static code | ||
|
||
/** @public types */ | ||
export { DataStart }; | ||
export { DataSetup, DataStart } from './plugin'; | ||
export { | ||
SavedQueryAttributes, | ||
SavedQuery, | ||
SavedQueryTimeFilter, | ||
} from '../../../../plugins/data/public'; | ||
export { | ||
// agg_types | ||
AggParam, | ||
AggParamOption, | ||
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. only type is used externally |
||
DateRangeKey, | ||
IAggConfig, | ||
IAggConfigs, | ||
IAggType, | ||
IFieldParamType, | ||
IMetricAggType, | ||
IpRangeKey, | ||
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. this and DateRangeKey are only used by field formater deserialization, which i am moving inside data plugin |
||
ISchemas, | ||
OptionedParamEditorProps, | ||
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. only type is needed 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. same for the one below |
||
OptionedValueProp, | ||
} from './search/types'; | ||
|
||
/** @public static code */ | ||
export * from '../common'; | ||
export { FilterStateManager } from './filter/filter_manager'; | ||
export { getRequestInspectorStats, getResponseInspectorStats } from './search'; | ||
export { | ||
// agg_types TODO need to group these under a namespace or prefix | ||
AggParamType, | ||
AggTypeFilters, // TODO convert to interface | ||
aggTypeFilters, | ||
AggTypeFieldFilters, // TODO convert to interface | ||
AggGroupNames, | ||
aggGroupNamesMap, | ||
BUCKET_TYPES, | ||
CidrMask, | ||
convertDateRangeToString, | ||
convertIPRangeToString, | ||
intervalOptions, // only used in Discover | ||
isDateHistogramBucketAggConfig, | ||
isStringType, | ||
isType, | ||
isValidInterval, | ||
isValidJson, | ||
METRIC_TYPES, | ||
OptionedParamType, | ||
parentPipelineType, | ||
propFilter, | ||
Schema, | ||
Schemas, | ||
siblingPipelineType, | ||
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. most (if not all) of theese are just types needed by default editor to build their 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. Yeah, in the next pass I want to go through and strip away more of this stuff. For this first PR I kept things focused on just re-exporting absolutely anything that was needed outside of the data plugin, but there will be plenty more cleanup to follow. |
||
termsAggFilter, | ||
// search_source | ||
getRequestInspectorStats, | ||
getResponseInspectorStats, | ||
} from './search'; |
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.
where is this used externally ?
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.
just in default editor i believe, and just used as a type.