Skip to content

Commit b6f15ca

Browse files
committed
Update legacy naming (#84)
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent dea0bd4 commit b6f15ca

19 files changed

+75
-61
lines changed

.github/workflows/draft-release-notes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
update_release_draft:
10-
if: github.repository == 'opensearch-project/opensearch-ai-flow-dashboards'
10+
if: github.repository == 'opensearch-project/dashboards-flow-framework'
1111
name: Update draft release notes
1212
runs-on: ubuntu-latest
1313
steps:

.github/workflows/lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
run-lint:
77
name: Run lint script
88
runs-on: ubuntu-latest
9-
if: github.repository == 'opensearch-project/opensearch-ai-flow-dashboards'
9+
if: github.repository == 'opensearch-project/dashboards-flow-framework'
1010
steps:
1111
- name: Checkout OpenSearch Dashboards
1212
uses: actions/checkout@v2
@@ -31,12 +31,12 @@ jobs:
3131
- name: Checkout plugin
3232
uses: actions/checkout@v2
3333
with:
34-
path: OpenSearch-Dashboards/plugins/opensearch-ai-flow-dashboards
34+
path: OpenSearch-Dashboards/plugins/dashboards-flow-framework
3535
- name: Bootstrap the plugin
3636
run: |
37-
cd OpenSearch-Dashboards/plugins/opensearch-ai-flow-dashboards
37+
cd OpenSearch-Dashboards/plugins/dashboards-flow-framework
3838
yarn osd bootstrap
3939
- name: Run lint script
4040
run: |
41-
cd OpenSearch-Dashboards/plugins/opensearch-ai-flow-dashboards
41+
cd OpenSearch-Dashboards/plugins/dashboards-flow-framework
4242
yarn lint:es common/* public/* server/*

DEVELOPER_GUIDE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ You will need to install [node.js](https://nodejs.org/en/), [nvm](https://github
2525
### Environment Setup
2626

2727
1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](./package.json#L7).
28-
2. Download and install [OpenSearch AI Flow Framework](https://github.com/opensearch-project/opensearch-ai-flow-framework).
28+
2. Download and install [OpenSearch Flow Framework](https://github.com/opensearch-project/flow-framework).
2929
3. Download the OpenSearch Dashboards source code for the [version specified in package.json](./package.json#L7) you want to set up.
3030

3131
See the [OpenSearch Dashboards contributing guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/CONTRIBUTING.md) and [developer guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/DEVELOPER_GUIDE.md) for more instructions on setting up your development environment.
3232

3333
4. Change your node version to the version specified in `.node-version` inside the OpenSearch Dashboards root directory (this can be done with the `nvm use` command).
3434
5. Create a `plugins` directory inside the OpenSearch Dashboards source code directory, if `plugins` directory doesn't exist.
3535
6. Check out this package from version control into the `plugins` directory.
36-
7. Run `yarn osd bootstrap` inside `OpenSearch-Dashboards/plugins/opensearch-ai-flow-dashboards`.
36+
7. Run `yarn osd bootstrap` inside `OpenSearch-Dashboards/plugins/dashboards-flow-framework`.
3737

3838
Ultimately, your directory structure should look like this:
3939

@@ -42,14 +42,14 @@ Ultimately, your directory structure should look like this:
4242
.
4343
├── OpenSearch-Dashboards
4444
│ └──plugins
45-
│ └── opensearch-ai-flow-dashboards
45+
│ └── dashboards-flow-framework
4646
```
4747

4848
### Build
4949

5050
To build the plugin's distributable zip simply run `yarn build`.
5151

52-
Example output: `./build/opensearch-ai-flow-dashboards-2.10.0.0.zip`
52+
Example output: `./build/dashboards-flow-framework-2.13.0.0.zip`
5353

5454
### Run
5555

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## OpenSearch AI Flow Dashboards Plugin
1+
## OpenSearch Flow Framework Dashboards Plugin
22

3-
This plugin provides a simple UI for building AI applications with OpenSearch.
3+
This plugin provides a simple UI for building applications with OpenSearch Flow Framework.
44

55
TODO: add details
66

common/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
export const PLUGIN_ID = 'aiFlowDashboards';
6+
export const PLUGIN_ID = 'flow-framework';
77

8-
export const BASE_NODE_API_PATH = '/api/ai_flow';
8+
export const BASE_NODE_API_PATH = '/api/flow_framework';
99
export const BASE_INDICES_NODE_API_PATH = `${BASE_NODE_API_PATH}/indices`;
1010
export const SEARCH_INDICES_PATH = `${BASE_INDICES_NODE_API_PATH}/search`;
1111
export const FETCH_INDICES_PATH = `${BASE_INDICES_NODE_API_PATH}/fetch`;

opensearch_dashboards.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
2-
"id": "aiFlowDashboards",
3-
"version": "2.10.0.0",
4-
"opensearchDashboardsVersion": "2.10.0",
2+
"id": "flowFramework",
3+
"version": "2.13.0.0",
4+
"opensearchDashboardsVersion": "2.13.0",
55
"server": true,
66
"ui": true,
7-
"requiredBundles": ["opensearchDashboardsUtils"],
8-
"requiredPlugins": ["navigation"],
7+
"requiredBundles": [
8+
"opensearchDashboardsUtils"
9+
],
10+
"requiredPlugins": [
11+
"navigation"
12+
],
913
"optionalPlugins": []
10-
}
14+
}

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "ai-flow-dashboards",
3-
"version": "2.10.0.0",
4-
"description": "OpenSearch AI Flow Dashboards Plugin",
2+
"name": "dashboards-flow-framework",
3+
"version": "2.13.0.0",
4+
"description": "OpenSearch Flow Framework Dashboards Plugin",
55
"main": "index.js",
66
"config": {
7-
"plugin_version": "2.10.0.0",
8-
"plugin_name": "aiFlowDashboards",
9-
"plugin_zip_name": "ai-flow-dashboards"
7+
"plugin_version": "2.13.0.0",
8+
"plugin_name": "flowFramework",
9+
"plugin_zip_name": "dashboards-flow-framework"
1010
},
1111
"scripts": {
1212
"plugin-helpers": "../../scripts/use_node ../../scripts/plugin_helpers",
@@ -18,7 +18,7 @@
1818
},
1919
"repository": {
2020
"type": "git",
21-
"url": "https://github.com/opensearch-project/opensearch-ai-flow-dashboards.git"
21+
"url": "https://github.com/opensearch-project/dashboards-flow-framework.git"
2222
},
2323
"pre-commit": [
2424
"lint:es:precommit"
@@ -38,4 +38,4 @@
3838
"pre-commit": "^1.2.2"
3939
},
4040
"resolutions": {}
41-
}
41+
}

public/app.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import {
1717

1818
interface Props extends RouteComponentProps {}
1919

20-
export const AiFlowDashboardsApp = (props: Props) => {
20+
export const FlowFrameworkDashboardsApp = (props: Props) => {
2121
const sidebar = (
2222
<EuiPageSideBar style={{ minWidth: 190 }} hidden={false} paddingSize="l">
2323
<EuiSideNav
2424
style={{ width: 190 }}
2525
items={[
2626
{
27-
name: Navigation.AiApplicationBuilder,
27+
name: Navigation.FlowFramework,
2828
id: 0,
2929
items: [
3030
{

public/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
import './index.scss';
77

8-
import { AiFlowDashboardsPlugin } from './plugin';
8+
import { FlowFrameworkDashboardsPlugin } from './plugin';
99

1010
// This exports static code and TypeScript types,
1111
// as well as, OpenSearch Dashboards Platform `plugin()` initializer.
1212
export function plugin() {
13-
return new AiFlowDashboardsPlugin();
13+
return new FlowFrameworkDashboardsPlugin();
1414
}
1515
export {
16-
AiFlowDashboardsPluginSetup,
17-
AiFlowDashboardsPluginStart,
16+
FlowFrameworkDashboardsPluginSetup,
17+
FlowFrameworkDashboardsPluginStart,
1818
} from './types';

public/pages/overview/overview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { getCore } from '../../services';
2525
export function Overview() {
2626
useEffect(() => {
2727
getCore().chrome.setBreadcrumbs([
28-
BREADCRUMBS.AI_APPLICATION_BUILDER,
28+
BREADCRUMBS.FLOW_FRAMEWORK,
2929
BREADCRUMBS.OVERVIEW,
3030
]);
3131
});

public/pages/workflow_detail/workflow_detail.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function WorkflowDetail(props: WorkflowDetailProps) {
7474

7575
useEffect(() => {
7676
getCore().chrome.setBreadcrumbs([
77-
BREADCRUMBS.AI_APPLICATION_BUILDER,
77+
BREADCRUMBS.FLOW_FRAMEWORK,
7878
BREADCRUMBS.WORKFLOWS,
7979
{ text: workflowName },
8080
]);

public/pages/workflows/workflows.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function Workflows(props: WorkflowsProps) {
7373

7474
useEffect(() => {
7575
getCore().chrome.setBreadcrumbs([
76-
BREADCRUMBS.AI_APPLICATION_BUILDER,
76+
BREADCRUMBS.FLOW_FRAMEWORK,
7777
BREADCRUMBS.WORKFLOWS,
7878
]);
7979
});

public/plugin.ts

+11-7
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@ import {
1010
Plugin,
1111
} from '../../../src/core/public';
1212
import {
13-
AiFlowDashboardsPluginSetup,
14-
AiFlowDashboardsPluginStart,
13+
FlowFrameworkDashboardsPluginSetup,
14+
FlowFrameworkDashboardsPluginStart,
1515
} from './types';
1616
import { PLUGIN_ID } from '../common';
1717
import { setCore, setRouteService } from './services';
1818
import { configureRoutes } from './route_service';
1919

20-
export class AiFlowDashboardsPlugin
21-
implements Plugin<AiFlowDashboardsPluginSetup, AiFlowDashboardsPluginStart> {
22-
public setup(core: CoreSetup): AiFlowDashboardsPluginSetup {
20+
export class FlowFrameworkDashboardsPlugin
21+
implements
22+
Plugin<
23+
FlowFrameworkDashboardsPluginSetup,
24+
FlowFrameworkDashboardsPluginStart
25+
> {
26+
public setup(core: CoreSetup): FlowFrameworkDashboardsPluginSetup {
2327
// Register the plugin in the side navigation
2428
core.application.register({
2529
id: PLUGIN_ID,
26-
title: 'AI Application Builder',
30+
title: 'Flow Framework',
2731
category: {
2832
id: 'opensearch',
2933
label: 'OpenSearch plugins',
@@ -44,7 +48,7 @@ export class AiFlowDashboardsPlugin
4448
return {};
4549
}
4650

47-
public start(core: CoreStart): AiFlowDashboardsPluginStart {
51+
public start(core: CoreStart): FlowFrameworkDashboardsPluginStart {
4852
return {};
4953
}
5054

public/render_app.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ReactDOM from 'react-dom';
88
import { BrowserRouter as Router, Route } from 'react-router-dom';
99
import { Provider } from 'react-redux';
1010
import { AppMountParameters, CoreStart } from '../../../src/core/public';
11-
import { AiFlowDashboardsApp } from './app';
11+
import { FlowFrameworkDashboardsApp } from './app';
1212
import { store, ReactFlowContextProvider } from './store';
1313

1414
export const renderApp = (
@@ -19,7 +19,9 @@ export const renderApp = (
1919
<Provider store={store}>
2020
<ReactFlowContextProvider>
2121
<Router basename={appBasePath + '#/'}>
22-
<Route render={(props) => <AiFlowDashboardsApp {...props} />} />
22+
<Route
23+
render={(props) => <FlowFrameworkDashboardsApp {...props} />}
24+
/>
2325
</Router>
2426
</ReactFlowContextProvider>
2527
</Provider>,

public/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import { NavigationPublicPluginStart } from '../../../src/plugins/navigation/public';
77

8-
export interface AiFlowDashboardsPluginSetup {}
9-
export interface AiFlowDashboardsPluginStart {}
8+
export interface FlowFrameworkDashboardsPluginSetup {}
9+
export interface FlowFrameworkDashboardsPluginStart {}
1010

1111
export interface AppPluginStartDependencies {
1212
navigation: NavigationPublicPluginStart;

public/utils/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
export enum Navigation {
7-
AiApplicationBuilder = 'AI Application Builder',
7+
FlowFramework = 'Flow Framework',
88
Overview = 'Overview',
99
Workflows = 'Workflows',
1010
}
@@ -17,7 +17,7 @@ export enum APP_PATH {
1717
}
1818

1919
export const BREADCRUMBS = Object.freeze({
20-
AI_APPLICATION_BUILDER: { text: 'AI application builder', href: '#/' },
20+
FLOW_FRAMEWORK: { text: 'Flow Framework', href: '#/' },
2121
OVERVIEW: { text: 'Overview', href: `#${APP_PATH.OVERVIEW}` },
2222
WORKFLOWS: { text: 'Workflows', href: `#${APP_PATH.WORKFLOWS}` },
2323
});

server/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
*/
55

66
import { PluginInitializerContext } from '../../../src/core/server';
7-
import { AiFlowDashboardsPlugin } from './plugin';
7+
import { FlowFrameworkDashboardsPlugin } from './plugin';
88

99
// This exports static code and TypeScript types,
1010
// as well as, OpenSearch Dashboards Platform `plugin()` initializer.
1111

1212
export function plugin(initializerContext: PluginInitializerContext) {
13-
return new AiFlowDashboardsPlugin(initializerContext);
13+
return new FlowFrameworkDashboardsPlugin(initializerContext);
1414
}
1515

1616
export {
17-
AiFlowDashboardsPluginSetup,
18-
AiFlowDashboardsPluginStart,
17+
FlowFrameworkDashboardsPluginSetup,
18+
FlowFrameworkDashboardsPluginStart,
1919
} from './types';

server/plugin.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,25 @@ import {
1212
} from '../../../src/core/server';
1313

1414
import {
15-
AiFlowDashboardsPluginSetup,
16-
AiFlowDashboardsPluginStart,
15+
FlowFrameworkDashboardsPluginSetup,
16+
FlowFrameworkDashboardsPluginStart,
1717
} from './types';
1818
import { registerOpenSearchRoutes } from './routes';
1919

20-
export class AiFlowDashboardsPlugin
21-
implements Plugin<AiFlowDashboardsPluginSetup, AiFlowDashboardsPluginStart> {
20+
export class FlowFrameworkDashboardsPlugin
21+
implements
22+
Plugin<
23+
FlowFrameworkDashboardsPluginSetup,
24+
FlowFrameworkDashboardsPluginStart
25+
> {
2226
private readonly logger: Logger;
2327

2428
constructor(initializerContext: PluginInitializerContext) {
2529
this.logger = initializerContext.logger.get();
2630
}
2731

2832
public setup(core: CoreSetup) {
29-
this.logger.debug('ai-flow-dashboards: Setup');
33+
this.logger.debug('flow-framework-dashboards: Setup');
3034
const router = core.http.createRouter();
3135

3236
// Register server side APIs
@@ -36,7 +40,7 @@ export class AiFlowDashboardsPlugin
3640
}
3741

3842
public start(core: CoreStart) {
39-
this.logger.debug('ai-flow-dashboards: Started');
43+
this.logger.debug('flow-framework-dashboards: Started');
4044
return {};
4145
}
4246

server/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
export interface AiFlowDashboardsPluginSetup {}
7-
export interface AiFlowDashboardsPluginStart {}
6+
export interface FlowFrameworkDashboardsPluginSetup {}
7+
export interface FlowFrameworkDashboardsPluginStart {}

0 commit comments

Comments
 (0)