Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sandeep Kumawat <[email protected]>
  • Loading branch information
Sandeep Kumawat committed Aug 29, 2024
1 parent 8713281 commit 7ba37c7
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ exports[`<CreateDataStream /> spec it goes to data streams page when click cance
<span
class="euiButtonContent euiButton__content"
>
EuiIconMock
<span
class="euiButton__text"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,7 @@ const DataStreamDetail = (props: DataStreamDetailProps, ref: Ref<FieldInstance>)
</EuiSmallButtonEmpty>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSmallButton
fill
onClick={onSubmit}
isLoading={isLoading}
iconType={isEdit ? undefined : "plus"}
data-test-subj="CreateDataStreamCreateButton"
>
<EuiSmallButton fill onClick={onSubmit} isLoading={isLoading} data-test-subj="CreateDataStreamCreateButton">
{isEdit ? "Save changes" : "Create data stream"}
</EuiSmallButton>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ exports[`<DataStreamDetail /> spec render component 1`] = `
<span
class="euiButtonContent euiButton__content"
>
EuiIconMock
<span
class="euiButton__text"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,13 @@ export default class AdvancedAggregation extends Component<AdvancedAggregationPr
<Fragment>
<EuiFlexItem>
<EuiCallOut>
<p>
The order of fields impacts rollup performance. Aggregating by smaller buckets and then by larger buckets is faster
than the opposite. For example, if you are rolling up flight data for five airlines with 100 destinations,
aggregating by airline and then by destination is faster than aggregating by destination first.
</p>
<EuiText size="s">
<p>
The order of fields impacts rollup performance. Aggregating by smaller buckets and then by larger buckets is
faster than the opposite. For example, if you are rolling up flight data for five airlines with 100 destinations,
aggregating by airline and then by destination is faster than aggregating by destination first.
</p>
</EuiText>
</EuiCallOut>
<EuiSpacer size="s" />
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const ConfigureRollup = ({ isEdit, rollupId, rollupIdError, onChangeName, onChan
</EuiText>
</EuiFlexGroup>
<EuiHorizontalRule margin={"xs"} />
<EuiSpacer size="s" />
<EuiCompressedFormRow
label={
<EuiText size="s">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ export default class RollupIndices extends Component<RollupIndicesProps, RollupI
<EuiHorizontalRule margin={"xs"} />
<EuiSpacer size="s" />
<EuiCallOut color="warning">
<p>You can't change indices after creating a job. Double-check the source and target index names before proceeding.</p>
<EuiText size="s">
<p>You can't change indices after creating a job. Double-check the source and target index names before proceeding.</p>
</EuiText>
</EuiCallOut>
{hasAggregation && (
<Fragment>
Expand Down
1 change: 0 additions & 1 deletion public/pages/CreateRollup/components/Schedule/Schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export default class Schedule extends Component<ScheduleProps> {
data-test-subj="jobEnabledByDefault"
/>
)}
<EuiSpacer size="s" />
{!isEdit && isContinuous(continuousJob, onChangeContinuousJob)}

<EuiCompressedFormRow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ exports[`<CreateRollupForm /> spec renders the component 1`] = `
<hr
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
class="euiSpacer euiSpacer--s"
/>
<div
class="euiFormRow euiFormRow--compressed"
id="some_html_id-row"
Expand Down Expand Up @@ -311,9 +308,13 @@ exports[`<CreateRollupForm /> spec renders the component 1`] = `
<div
class="euiTextColor euiTextColor--default"
>
<p>
You can't change indices after creating a job. Double-check the source and target index names before proceeding.
</p>
<div
class="euiText euiText--small"
>
<p>
You can't change indices after creating a job. Double-check the source and target index names before proceeding.
</p>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { ChangeEvent, Component } from "react";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiCallOut, EuiComboBoxOptionOption } from "@elastic/eui";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiCallOut, EuiComboBoxOptionOption, EuiText } from "@elastic/eui";
import { RouteComponentProps } from "react-router-dom";
import { RollupService } from "../../../../services";
import { BREADCRUMBS, ROUTES } from "../../../../utils/constants";
Expand Down Expand Up @@ -88,7 +88,9 @@ export default class CreateRollupStep2 extends Component<CreateRollupStep2Props>
<MetricsCalculation {...this.props} fieldsOption={fields} />
<EuiSpacer />
<EuiCallOut color="warning">
<p>You can't change aggregations or metrics after creating a job. Double-check your choices before proceeding.</p>
<EuiText size="s">
<p>You can't change aggregations or metrics after creating a job. Double-check your choices before proceeding.</p>
</EuiText>
</EuiCallOut>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { Component } from "react";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiComboBoxOptionOption, EuiCallOut } from "@elastic/eui";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiComboBoxOptionOption, EuiCallOut, EuiText } from "@elastic/eui";
import { RouteComponentProps } from "react-router-dom";
import { RollupService } from "../../../../services";
import { BREADCRUMBS, ROUTES } from "../../../../utils/constants";
Expand Down Expand Up @@ -92,7 +92,9 @@ export default class CreateRollupStep4 extends Component<CreateRollupProps> {
<ScheduleRolesAndNotifications {...this.props} />
<EuiSpacer />
<EuiCallOut color="warning">
<p>You can't change aggregations or metrics after creating a job. Double-check your choices before proceeding.</p>
<EuiText size="s">
<p>You can't change aggregations or metrics after creating a job. Double-check your choices before proceeding.</p>
</EuiText>
</EuiCallOut>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ export default class TransformIndices extends Component<TransformIndicesProps, T
<Fragment>
<EuiSpacer />
<EuiCallOut color="warning">
<p>You can't change indices after creating a job. Double-check the source and target index names before proceeding.</p>
<EuiText size="s">
<p>You can't change indices after creating a job. Double-check the source and target index names before proceeding.</p>
</EuiText>
</EuiCallOut>
</Fragment>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,13 @@ exports[`<CreateTransformForm /> spec renders the component 1`] = `
<div
class="euiTextColor euiTextColor--default"
>
<p>
You can't change indices after creating a job. Double-check the source and target index names before proceeding.
</p>
<div
class="euiText euiText--small"
>
<p>
You can't change indices after creating a job. Double-check the source and target index names before proceeding.
</p>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function DataStreamsActions(props: DataStreamsActionsProps) {
<>
<SimplePopover
data-test-subj="moreAction"
panelPaddingSize="s"
button={
<EuiSmallButton iconType="arrowDown" iconSide="right">
Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ exports[`<EditRollup /> spec renders the component 1`] = `
<hr
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
class="euiSpacer euiSpacer--s"
/>
<div
class="euiFormRow euiFormRow--compressed"
id="some_html_id-row"
Expand Down Expand Up @@ -153,9 +150,6 @@ exports[`<EditRollup /> spec renders the component 1`] = `
<hr
class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall"
/>
<div
class="euiSpacer euiSpacer--s"
/>
<div
class="euiFormRow euiFormRow--compressed"
id="some_html_id-row"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export default class AggregationAndMetricsSettings extends Component<
</EuiFlexGroup>
<EuiHorizontalRule margin={"xs"} />
<div>
<EuiSpacer size="s" />
<EuiText size="s">
<h3>Additional metrics</h3>
</EuiText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default class GeneralInformation extends Component<GeneralInformationProp
</EuiFlexGroup>
<EuiHorizontalRule margin={"xs"} />
<div>
<EuiSpacer size="s" />
<EuiFlexGrid columns={4}>
{infoItems.map((item) => (
<EuiFlexItem key={`${item.term}#${item.value}`}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const RollupStatus = ({ metadata }: RollupStatusProps) => (
</EuiFlexGroup>
<EuiHorizontalRule margin={"xs"} />
<div>
<EuiSpacer size="s" />
<EuiFlexGrid columns={4}>
<EuiFlexItem>
<EuiText size="s">
Expand Down

0 comments on commit 7ba37c7

Please sign in to comment.