-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up files and use helper functions
Some clean up to reduce file count
- Loading branch information
Showing
30 changed files
with
495 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const PLUGIN_ID = 'queryEnhancements'; | ||
export const PLUGIN_NAME = 'queryEnhancements'; | ||
|
||
export const BASE_API = '/api/enhancements'; | ||
|
||
export const SEARCH_STRATEGY = { | ||
PPL: 'ppl', | ||
SQL: 'sql', | ||
}; | ||
|
||
export const API = { | ||
SEARCH: `${BASE_API}/search`, | ||
PPL_SEARCH: `${BASE_API}/search/${SEARCH_STRATEGY.PPL}`, | ||
SQL_SEARCH: `${BASE_API}/search/${SEARCH_STRATEGY.SQL}`, | ||
}; | ||
|
||
export const URI = { | ||
PPL: '/_plugins/_ppl', | ||
SQL: '/_plugins/_sql', | ||
ASYNC_QUERY: '/_plugins/_async_query', | ||
ML: '/_plugins/_ml', | ||
OBSERVABILITY: '/_plugins/_observability', | ||
DATA_CONNECTIONS: '/_plugins/_query/_datasources', | ||
}; | ||
|
||
export const OPENSEARCH_API = { | ||
PANELS: `${URI.OBSERVABILITY}/object`, | ||
DATA_CONNECTIONS: URI.DATA_CONNECTIONS, | ||
}; | ||
|
||
export const UI_SETTINGS = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
{ | ||
"name": "queryEnhancements", | ||
"version": "0.0.0", | ||
"private": true, | ||
"license": "Apache-2.0", | ||
"version": "3.0.0.0", | ||
"main": "index.ts", | ||
"scripts": { | ||
"build": "yarn plugin-helpers build", | ||
"plugin-helpers": "../../scripts/use_node ../../scripts/plugin_helpers", | ||
"osd": "../../scripts/use_node ../../scripts/osd" | ||
} | ||
"plugin-helpers": "node ../../scripts/plugin_helpers", | ||
"osd": "node ../../scripts/osd" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import './index.scss'; | ||
|
||
import { QueryEnhancementsPlugin } from './plugin'; | ||
|
||
// This exports static code and TypeScript types, | ||
// as well as, OpenSearch Dashboards Platform `plugin()` initializer. | ||
export function plugin() { | ||
return new QueryEnhancementsPlugin(); | ||
} | ||
|
||
export { QueryEnhancementsPluginSetup, QueryEnhancementsPluginStart } from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export { PPLSearchInterceptor } from './ppl_search_interceptor'; | ||
export { SQLSearchInterceptor } from './sql_search_interceptor'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.