Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add support for Kibana 7.10.0 #144

Merged
merged 45 commits into from
Dec 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6658ea9
Migration- routing working
zengyan-amazon Jun 10, 2020
f1a750e
change position of index-management in kibana side bar (#140)
zhyuanqi Nov 26, 2020
7175358
Fix services query and response type
Nov 30, 2020
8e9b18f
Update policies.ts
Nov 30, 2020
127fb5d
Update IndexService.ts
Nov 30, 2020
0edfa80
Clean up code
Nov 30, 2020
542e37e
Clean up code
Nov 30, 2020
1cef08a
Update tests
Nov 30, 2020
0dd4a26
Update on tests
Dec 1, 2020
52f92fb
fix some unit tests about core services
Dec 1, 2020
3047aad
Initial commit for upgrade with rollup
Dec 1, 2020
7e11bd2
Merge branch 'kibana-migration' of https://github.com/opendistro-for-…
Dec 1, 2020
52dd0d4
Kibana migration (#142)
zhyuanqi Dec 1, 2020
8465cf6
Add core to rollup and modify server side code
Dec 1, 2020
4792dd2
Merge branch 'master' into kibana-migration
Dec 1, 2020
f979a4c
Code fix on breadcrumbs
Dec 1, 2020
4303c94
Fixes dependencies, scripts, configs
dbbaughe Dec 1, 2020
c9453ff
Updates package json and kibana json
dbbaughe Dec 1, 2020
c687dbd
Fix routing
Dec 1, 2020
f83b8bd
Change id to opendistro_index_management_kibana
Dec 2, 2020
82139b4
Update server routes validation
Dec 2, 2020
98f21fa
Update RollupService.ts
Dec 2, 2020
328ec49
Update to tests
Dec 2, 2020
591817d
Fix getMappings function
Dec 2, 2020
92da41f
Update EditRollup.tsx
Dec 2, 2020
f5c0082
Add copyright for new files
Dec 3, 2020
6e4a6ea
Update tests
Dec 3, 2020
4d289cf
Update query string imports
Dec 3, 2020
c2b17a1
Update tests and snapshots
Dec 3, 2020
fd07056
Add copyright license to files
Dec 3, 2020
f7904eb
Update .kibana-plugin-helpers.json
Dec 3, 2020
b70ebee
Remove kibana version from package.json
Dec 3, 2020
4e455c0
Update Policies.tsx
Dec 3, 2020
5db134a
Update RollupService.ts
Dec 3, 2020
64e7b4d
Update rollups.ts
Dec 3, 2020
1b80563
Update RollupService.ts
Dec 3, 2020
d9007d6
Update components to use useContext instead of passing props to get core
Dec 4, 2020
d82ec65
Update CoreServicesContext usage
Dec 4, 2020
599d65f
Update tests
Dec 4, 2020
a3a939a
Remove unused import
Dec 4, 2020
842cb61
Update helpers.ts
Dec 4, 2020
d42d036
Update helpers.ts
Dec 4, 2020
de156b3
Update rollup API validation
Dec 4, 2020
4433c15
Update README.md
Dec 4, 2020
c23cd8a
Add external link to aggragation doc
Dec 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ yarn-error.log
.DS_Store
/cypress/screenshots/
/cypress/videos/
target
4 changes: 1 addition & 3 deletions .kibana-plugin-helpers.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"styleSheetToCompile": "public/app.scss",
"buildSourcePatterns": [
"serverSourcePatterns": [
annie3431 marked this conversation as resolved.
Show resolved Hide resolved
"package.json",
"tsconfig.json",
"yarn.lock",
".yarnrc",
"index.js",
"{lib,public,server,webpackShims,translations,utils,models,test}/**/*",
"!__tests__"
]
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ Ultimately, your directory structure should look like this:

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

Example output: `./build/opendistro_index_management_kibana-1.3.0.0.zip`
Example output: `./build/opendistroIndexManagementKibana-1.12.0.0.zip`


## Run

- `yarn start`

- Starts Kibana and includes this plugin. Kibana will be available on `localhost:5601`.
- Please run in the Kibana root directory
- You must have Elasticsearch running with the Index Management plugin

## Test
Expand All @@ -66,7 +67,7 @@ If you are running cypress tests with Kibana development server use the `--no-ba
## Contributing to Open Distro for Elasticsearch Index Management Kibana

- Refer to [CONTRIBUTING.md](./CONTRIBUTING.md).
- Since this is a Kibana plugin, it can be useful to review the [Kibana contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) alongside the documentation around [Kibana plugins](https://www.elastic.co/guide/en/kibana/master/kibana-plugins.html) and [plugin development](https://www.elastic.co/guide/en/kibana/master/plugin-development.html).
- Since this is a Kibana plugin, it can be useful to review the [Kibana contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) alongside the documentation around [Kibana plugins](https://www.elastic.co/guide/en/kibana/master/kibana-plugins.html) and [plugin development](https://www.elastic.co/guide/en/kibana/master/external-plugin-development.html).

## Get Started and Contribute!

Expand Down
68 changes: 0 additions & 68 deletions index.js

This file was deleted.

9 changes: 9 additions & 0 deletions kibana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "opendistroIndexManagementKibana",
"version": "1.12.0.0",
"kibanaVersion": "7.10.0",
"configPath": ["opendistro_index_management"],
"requiredPlugins": ["navigation"],
"server": true,
"ui": true
}
50 changes: 9 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
{
"name": "opendistro_index_management_kibana",
"version": "1.11.0.0",
"version": "1.12.0.0",
"description": "Kibana plugin for Index Management",
"main": "index.js",
"license": "Apache-2.0",
"homepage": "https://github.com/opendistro-for-elasticsearch/index-management-kibana-plugin",
"kibana": {
"version": "7.9.1",
"templateVersion": "1.0.0"
"config": {
"id": "opendistroIndexManagementKibana"
},
"repository": {
"type": "git",
"url": "https://github.com/opendistro-for-elasticsearch/index-management-kibana-plugin"
},
"scripts": {
annie3431 marked this conversation as resolved.
Show resolved Hide resolved
"cypress:open": "cypress open",
"preinstall": "node ../../preinstall_check",
"kbn": "node ../../scripts/kbn",
"es": "node ../../scripts/es",
"lint": "eslint .",
"start": "plugin-helpers start",
"test:server": "plugin-helpers test:server",
"test:browser": "plugin-helpers test:browser",
"plugin-helpers": "node ../../scripts/plugin_helpers",
"test:jest": "NODE_PATH=../../node_modules ../../node_modules/.bin/jest --config ./test/jest.config.js",
"build": "plugin-helpers build"
"build": "yarn plugin-helpers build",
"postbuild": "echo Renaming build artifact to [$npm_package_config_id-$npm_package_version.zip] && mv build/$npm_package_config_id*.zip build/$npm_package_config_id-$npm_package_version.zip"
},
"husky": {
"hooks": {
Expand All @@ -39,49 +36,20 @@
"**/@types/react-router-dom": "^4.3.1",
"eslint-utils": "^1.4.2"
},
"dependencies": {
"@babel/runtime": "^7.8.4",
"brace": "^0.11.1",
"query-string": "^6.8.1"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.7.6",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.3.3",
"@elastic/elasticsearch": "^7.2.0",
"@elastic/eslint-config-kibana": "link:../../packages/eslint-config-kibana",
"@elastic/elastic-eslint-config-kibana": "link:../../packages/elastic-eslint-config-kibana",
"@elastic/eslint-import-resolver-kibana": "link:../../packages/kbn-eslint-import-resolver-kibana",
"@kbn/expect": "link:../../packages/kbn-expect",
"@kbn/plugin-helpers": "link:../../packages/kbn-plugin-helpers",
"@testing-library/jest-dom": "^4.0.0",
"@testing-library/react": "^8.0.5",
"@testing-library/user-event": "^4.1.0",
"@types/angular": "1.6.50",
"@types/node": "^10.12.27",
"@types/react": "16.9.8",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
"babel-eslint": "^9.0.0",
"cypress": "4.3.0",
"eslint-plugin-babel": "^5.2.0",
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^21.26.2",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-mocha": "^5.2.0",
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-react": "^7.11.1",
"husky": "^3.0.0",
"lint-staged": "^9.2.0",
"ts-loader": "^6.2.1",
"typescript": "3.7.2"
"ts-loader": "^6.2.1"
},
"engines": {
"node": "10.22.0",
"node": "10.22.1",
"yarn": "^1.21.1"
}
}
71 changes: 0 additions & 71 deletions public/app.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ exports[`<ConfirmationModal /> spec renders the component 1`] = `
class="euiOverlayMask euiOverlayMask--aboveHeader"
>
<div
aria-hidden="true"
data-aria-hidden="true"
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
/>
<div
aria-hidden="true"
data-aria-hidden="true"
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="1"
Expand Down Expand Up @@ -59,7 +63,7 @@ exports[`<ConfirmationModal /> spec renders the component 1`] = `
type="button"
>
<span
class="euiButtonEmpty__content"
class="euiButtonContent euiButtonEmpty__content"
>
<span
class="euiButtonEmpty__text"
Expand All @@ -74,7 +78,7 @@ exports[`<ConfirmationModal /> spec renders the component 1`] = `
type="button"
>
<span
class="euiButton__content"
class="euiButtonContent euiButton__content"
>
<span
class="euiButton__text"
Expand All @@ -88,6 +92,8 @@ exports[`<ConfirmationModal /> spec renders the component 1`] = `
</div>
</div>
<div
aria-hidden="true"
data-aria-hidden="true"
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`<ContentPanelActions /> spec renders the component 1`] = `
type="button"
>
<span
class="euiButton__content"
class="euiButtonContent euiButton__content"
>
<span
class="euiButton__text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ exports[`<PolicyModal /> spec renders the component 1`] = `
class="euiOverlayMask euiOverlayMask--aboveHeader"
>
<div
aria-hidden="true"
data-aria-hidden="true"
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
/>
<div
aria-hidden="true"
data-aria-hidden="true"
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="1"
Expand Down Expand Up @@ -103,7 +107,7 @@ exports[`<PolicyModal /> spec renders the component 1`] = `
type="button"
>
<span
class="euiButtonEmpty__content"
class="euiButtonContent euiButtonEmpty__content"
>
EuiIconMock
<span
Expand All @@ -124,7 +128,7 @@ exports[`<PolicyModal /> spec renders the component 1`] = `
type="button"
>
<span
class="euiButtonEmpty__content"
class="euiButtonContent euiButtonEmpty__content"
>
<span
class="euiButtonEmpty__text"
Expand All @@ -143,7 +147,7 @@ exports[`<PolicyModal /> spec renders the component 1`] = `
type="button"
>
<span
class="euiButton__content"
class="euiButtonContent euiButton__content"
>
<span
class="euiButton__text"
Expand All @@ -159,6 +163,8 @@ exports[`<PolicyModal /> spec renders the component 1`] = `
</div>
</div>
<div
aria-hidden="true"
data-aria-hidden="true"
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
Expand Down
Loading