Skip to content

Commit

Permalink
removing ml label from more identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Apr 20, 2021
1 parent 0788b3a commit f94eb16
Show file tree
Hide file tree
Showing 27 changed files with 50 additions and 207 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/file_data_visualizer/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const ABSOLUTE_MAX_FILE_SIZE_BYTES = 1073741274; // 1GB
export const FILE_SIZE_DISPLAY_FORMAT = '0,0.[0] b';

// Value to use in the Elasticsearch index mapping meta data to identify the
// index as having been created by the ML File Data Visualizer.
// index as having been created by the File Data Visualizer.
export const INDEX_META_DATA_CREATED_BY = 'file-data-visualizer';

export const JOB_FIELD_TYPES = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'embedded_map';
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 2.0.
*/

export { EmbeddedMapComponent } from './ml_embedded_map';
export { EmbeddedMapComponent } from './embedded_map';
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EuiFlexItem } from '@elastic/eui';
import { Feature, Point } from 'geojson';
import type { FieldDataRowProps } from '../../stats_table/types/field_data_row';
import { DocumentStatsTable } from '../../stats_table/components/field_data_expanded_row/document_stats';
import { EmbeddedMapComponent } from '../../ml_embedded_map';
import { EmbeddedMapComponent } from '../../embedded_map';
import { convertWKTGeoToLonLat, getGeoPointsLayer } from './format_utils';
import { ExpandedRowContent } from '../../stats_table/components/field_data_expanded_row/expanded_row_content';
import { ExamplesList } from '../../examples_list';
Expand All @@ -38,7 +38,7 @@ export const GeoPointContent: FC<FieldDataRowProps> = ({ config }) => {

geoPointsFeatures.push({
type: 'Feature',
id: `ml-${config.fieldName}-${i}`,
id: `fileDataVisualizer-${config.fieldName}-${i}`,
geometry: {
type: 'Point',
coordinates: [coordinates.lat, coordinates.lon],
Expand Down Expand Up @@ -69,7 +69,7 @@ export const GeoPointContent: FC<FieldDataRowProps> = ({ config }) => {
)}
{formattedResults && Array.isArray(formattedResults.layerList) && (
<EuiFlexItem
className={'mlDataVisualizerMapWrapper'}
className={'dataVisualizerMapWrapper'}
data-test-subj={'mlDataVisualizerEmbeddedMap'}
>
<EmbeddedMapComponent layerList={formattedResults.layerList} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.ml-experimental-badge.euiBetaBadge {
.experimental-badge.euiBetaBadge {
font-size: 10px;
vertical-align: middle;
margin-bottom: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const ExperimentalBadge: FC<{ tooltipContent: string }> = ({ tooltipConte
return (
<span>
<EuiBetaBadge
className="ml-experimental-badge"
className="experimental-badge"
label={
<FormattedMessage
id="xpack.fileDataVisualizer.experimentalBadge.experimentalLabel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {
import { FieldTypeIcon } from '../field_type_icon';
import { JOB_FIELD_TYPES } from '../../../../common';

const ML_JOB_FIELD_TYPES_OPTIONS = {
const JOB_FIELD_TYPES_OPTIONS = {
[JOB_FIELD_TYPES.BOOLEAN]: { name: 'Boolean', icon: 'tokenBoolean' },
[JOB_FIELD_TYPES.DATE]: { name: 'Date', icon: 'tokenDate' },
[JOB_FIELD_TYPES.GEO_POINT]: { name: 'Geo point', icon: 'tokenGeo' },
Expand Down Expand Up @@ -54,9 +54,9 @@ export const DataVisualizerFieldTypesFilter: FC<Props> = ({
if (
type !== undefined &&
!fieldTypesTracker.has(type) &&
ML_JOB_FIELD_TYPES_OPTIONS[type] !== undefined
JOB_FIELD_TYPES_OPTIONS[type] !== undefined
) {
const item = ML_JOB_FIELD_TYPES_OPTIONS[type];
const item = JOB_FIELD_TYPES_OPTIONS[type];

fieldTypesTracker.add(type);
fieldTypes.push({
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { expandLiteralStrings, XJsonMode } from '../../shared_imports';

export const EDITOR_MODE = { TEXT: 'text', JSON: 'json', XJSON: new XJsonMode() };

interface MlJobEditorProps {
interface JobEditorProps {
value: string;
height?: string;
width?: string;
Expand All @@ -22,7 +22,7 @@ interface MlJobEditorProps {
theme?: string;
onChange?: EuiCodeEditorProps['onChange'];
}
export const JsonEditor: FC<MlJobEditorProps> = ({
export const JsonEditor: FC<JobEditorProps> = ({
value,
height = '500px',
width = '100%',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
}

.mlDataVisualizer {
.dataVisualizer {
.euiTableRow > .euiTableRowCell {
border-bottom: 0;
border-top: $euiBorderThin;
Expand All @@ -36,7 +36,7 @@
}
}
}
.mlDataVisualizerSummaryTable {
.dataVisualizerSummaryTable {
max-width: 350px;
min-width: 250px;
.euiTableRow > .euiTableRowCell {
Expand All @@ -46,10 +46,10 @@
display: none;
}
}
.mlDataVisualizerSummaryTableWrapper {
.dataVisualizerSummaryTableWrapper {
max-width: 300px;
}
.mlDataVisualizerMapWrapper {
.dataVisualizerMapWrapper {
min-height: 300px;
min-width: 600px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ export const BooleanContent: FC<FieldDataRowProps> = ({ config }) => {
<ExpandedRowContent dataTestSubj={'mlDVBooleanContent'}>
<DocumentStatsTable config={config} />

<EuiFlexItem className={'mlDataVisualizerSummaryTableWrapper'}>
<EuiFlexItem className={'dataVisualizerSummaryTableWrapper'}>
<ExpandedRowFieldHeader>{summaryTableTitle}</ExpandedRowFieldHeader>
<EuiBasicTable
className={'mlDataVisualizerSummaryTable'}
className={'dataVisualizerSummaryTable'}
compressed
items={summaryTableItems}
columns={summaryTableColumns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ export const DateContent: FC<FieldDataRowProps> = ({ config }) => {
return (
<ExpandedRowContent dataTestSubj={'mlDVDateContent'}>
<DocumentStatsTable config={config} />
<EuiFlexItem className={'mlDataVisualizerSummaryTableWrapper'}>
<EuiFlexItem className={'dataVisualizerSummaryTableWrapper'}>
<ExpandedRowFieldHeader>{summaryTableTitle}</ExpandedRowFieldHeader>
<EuiBasicTable<SummaryTableItem>
className={'mlDataVisualizerSummaryTable'}
className={'dataVisualizerSummaryTable'}
data-test-subj={'mlDateSummaryTable'}
compressed
items={summaryTableItems}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ export const DocumentStatsTable: FC<FieldDataRowProps> = ({ config }) => {
return (
<EuiFlexItem
data-test-subj={'mlDVDocumentStatsContent'}
className={'mlDataVisualizerSummaryTableWrapper'}
className={'dataVisualizerSummaryTableWrapper'}
>
<ExpandedRowFieldHeader>{metaTableTitle}</ExpandedRowFieldHeader>
<EuiBasicTable
className={'mlDataVisualizerSummaryTable'}
className={'dataVisualizerSummaryTable'}
compressed
items={metaTableItems}
columns={metaTableColumns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ export const NumberContent: FC<FieldDataRowProps> = ({ config }) => {
return (
<ExpandedRowContent dataTestSubj={'mlDVNumberContent'}>
<DocumentStatsTable config={config} />
<EuiFlexItem className={'mlDataVisualizerSummaryTableWrapper'}>
<EuiFlexItem className={'dataVisualizerSummaryTableWrapper'}>
<ExpandedRowFieldHeader>{summaryTableTitle}</ExpandedRowFieldHeader>
<EuiBasicTable<SummaryTableItem>
className={'mlDataVisualizerSummaryTable'}
className={'dataVisualizerSummaryTable'}
compressed
items={summaryTableItems}
columns={summaryTableColumns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const DataVisualizerTable = <T extends DataVisualizerTableItem>({
return (
<EuiFlexItem data-test-subj="mlDataVisualizerTableContainer">
<EuiInMemoryTable<T>
className={'mlDataVisualizer'}
className={'dataVisualizer'}
items={items}
itemId={FIELD_NAME}
columns={columns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ColorRangeLegend: FC<ColorRangeLegendProps> = ({

const wrapper = d3
.select(d3Container.current)
.classed('mlColorRangeLegend', true)
.classed('colorRangeLegend', true)
.attr('width', wrapperWidth)
.attr('height', wrapperHeight)
.append('g')
Expand All @@ -74,7 +74,7 @@ export const ColorRangeLegend: FC<ColorRangeLegendProps> = ({
const gradient = wrapper
.append('defs')
.append('linearGradient')
.attr('id', 'mlColorRangeGradient')
.attr('id', 'colorRangeGradient')
.attr('x1', '0%')
.attr('y1', '0%')
.attr('x2', '100%')
Expand All @@ -95,7 +95,7 @@ export const ColorRangeLegend: FC<ColorRangeLegendProps> = ({
.attr('y1', 0)
.attr('width', legendWidth)
.attr('height', legendHeight)
.style('fill', 'url(#mlColorRangeGradient)');
.style('fill', 'url(#colorRangeGradient)');

const axisScale = d3.scale.linear().domain([0, 1]).range([0, legendWidth]);

Expand Down
Loading

0 comments on commit f94eb16

Please sign in to comment.