Skip to content

Commit

Permalink
Remove badge; remove neural preset queries
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Dec 30, 2024
1 parent 08b97d3 commit 1260847
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 122 deletions.
12 changes: 0 additions & 12 deletions common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,18 +442,10 @@ export const QUERY_PRESETS = [
name: 'Basic k-NN',
query: customStringify(KNN_QUERY),
},
{
name: `${WORKFLOW_TYPE.SEMANTIC_SEARCH} (neural)`,
query: customStringify(SEMANTIC_SEARCH_QUERY_NEURAL),
},
{
name: WORKFLOW_TYPE.MULTIMODAL_SEARCH,
query: customStringify(MULTIMODAL_SEARCH_QUERY_BOOL),
},
{
name: `${WORKFLOW_TYPE.MULTIMODAL_SEARCH} (neural)`,
query: customStringify(MULTIMODAL_SEARCH_QUERY_NEURAL),
},
{
name: `Hybrid search (match & k-NN queries)`,
query: customStringify(HYBRID_SEARCH_QUERY_MATCH_KNN),
Expand All @@ -462,10 +454,6 @@ export const QUERY_PRESETS = [
name: `Hybrid search (match & term queries)`,
query: customStringify(HYBRID_SEARCH_QUERY_MATCH_TERM),
},
{
name: `Hybrid search (match & neural queries)`,
query: customStringify(HYBRID_SEARCH_QUERY_MATCH_NEURAL),
},
] as QueryPreset[];

/**
Expand Down
2 changes: 1 addition & 1 deletion documentation/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following tutorial is an accurate representation of the experimental OpenSearch Flow OSD Plugin as of 11/27/2024, based on OSD 2.18.
The following tutorial is an accurate representation of the OpenSearch Flow OSD Plugin as of 12/30/2024, based on OSD 2.18.

Changelog:

Expand Down
64 changes: 0 additions & 64 deletions public/general_components/experimental_badge.tsx

This file was deleted.

1 change: 0 additions & 1 deletion public/general_components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

export { MultiSelectFilter } from './multi_select_filter';
export { ProcessorsTitle } from './processors_title';
export { ExperimentalBadge } from './experimental_badge';
export { QueryParamsList } from './query_params_list';
export { JsonPathExamplesTable } from './jsonpath_examples_table';
export * from './results';
Expand Down
7 changes: 0 additions & 7 deletions public/general_components/service_card/plugin_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { PLUGIN_ID } from '../../../common';
import { ContentManagementPluginStart } from '../../../../../src/plugins/content_management/public';
import { CoreStart } from '../../../../../src/core/public';
import pluginIcon from './icon.svg';
import { ExperimentalBadge } from '../experimental_badge';

const HEADER_TEXT = 'Design and test your search solutions with ease';
const DESCRIPTION_TEXT =
Expand Down Expand Up @@ -67,12 +66,6 @@ export const registerPluginCard = (
</h3>
</EuiTitle>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="upLeft"
/>
</EuiFlexItem>
</EuiFlexGroup>
);
},
Expand Down
13 changes: 0 additions & 13 deletions public/pages/workflow_detail/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import { MountPoint } from '../../../../../../src/core/public';
import { getWorkflow, updateWorkflow, useAppDispatch } from '../../../store';
import { useFormikContext } from 'formik';
import { isEmpty, isEqual } from 'lodash';
import { ExperimentalBadge } from '../../../general_components';

interface WorkflowDetailHeaderProps {
workflow?: Workflow;
Expand Down Expand Up @@ -333,14 +332,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) {
<HeaderControl
setMountPoint={setAppRightControls}
controls={[
{
renderComponent: (
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="downLeft"
/>
),
},
{
text: `Last saved: ${workflowLastUpdated}`,
color: 'subdued',
Expand Down Expand Up @@ -415,10 +406,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) {
<EuiText color="subdued" size="s">
{`Last saved: ${workflowLastUpdated}`}
</EuiText>,
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="downLeft"
/>,
]}
bottomBorder={false}
rightSideGroupProps={{
Expand Down
24 changes: 0 additions & 24 deletions public/pages/workflows/workflows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {
} from '../../services';
import { prettifyErrorMessage } from '../../../common/utils';
import { DataSourceOption } from '../../../../../src/plugins/data_source_management/public/components/data_source_menu/types';
import { ExperimentalBadge } from '../../general_components';
import { TopNavControlData } from '../../../../../src/plugins/navigation/public';

export interface WorkflowsRouterProps {}
Expand Down Expand Up @@ -217,22 +216,6 @@ export function Workflows(props: WorkflowsProps) {
}, [getSavedObjectsClient, getNotifications(), props.setActionMenu]);
}

const experimentalBadgeInHeader = (
<HeaderControl
setMountPoint={setAppCenterControls}
controls={[
{
renderComponent: (
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="downLeft"
/>
),
} as TopNavControlData,
]}
/>
);

const DESCRIPTION = `Design, experiment, and prototype your solutions with ${PLUGIN_NAME}. Build your search and last mile
ingestion flows with a visual interface. Experiment with different configurations with prototyping tools and launch them
into your environment.`;
Expand All @@ -254,12 +237,6 @@ export function Workflows(props: WorkflowsProps) {
<h1>{PLUGIN_NAME}</h1>
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="downLeft"
/>
</EuiFlexItem>
</EuiFlexGroup>
<EuiText color="subdued">{DESCRIPTION}</EuiText>
</EuiFlexGroup>
Expand All @@ -275,7 +252,6 @@ export function Workflows(props: WorkflowsProps) {
/>
)}
{dataSourceEnabled && renderDataSourceComponent}
{USE_NEW_HOME_PAGE && experimentalBadgeInHeader}
<EuiPage>
<EuiPageBody>
<EuiPageHeader
Expand Down

0 comments on commit 1260847

Please sign in to comment.