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

Commit

Permalink
Adds support for Kibana 7.9 (#118)
Browse files Browse the repository at this point in the history
* Adds support for Kibana 7.9

* Update release notes naming syntax
  • Loading branch information
dbbaughe authored Aug 21, 2020
1 parent 8b944a3 commit 565844c
Show file tree
Hide file tree
Showing 26 changed files with 105 additions and 86 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "opendistro_index_management_kibana",
"version": "1.9.0.0",
"version": "1.10.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.8.0",
"version": "7.9.0",
"templateVersion": "1.0.0"
},
"repository": {
Expand Down
7 changes: 3 additions & 4 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,21 @@ import chrome from "ui/chrome";
import { render, unmountComponentAtNode } from "react-dom";
import { HashRouter as Router, Route } from "react-router-dom";

import "ui/autoload/styles";
import Main from "./pages/Main";
import { ServicesContext, IndexService, ManagedIndexService } from "./services";
import PolicyService from "./services/PolicyService";
import { DarkModeContext } from "./components/DarkMode";

const app = uiModules.get("apps/indexManagementKibana");

app.config($locationProvider => {
app.config(($locationProvider) => {
$locationProvider.html5Mode({
enabled: false,
requireBase: false,
rewriteLinks: false,
});
});
app.config(stateManagementConfigProvider => stateManagementConfigProvider.disable());
app.config((stateManagementConfigProvider) => stateManagementConfigProvider.disable());

function RootController($scope, $element, $http) {
const domNode = $element[0];
Expand All @@ -50,7 +49,7 @@ function RootController($scope, $element, $http) {
render(
<Router>
<Route
render={props => (
render={(props) => (
<DarkModeContext.Provider value={isDarkMode}>
<ServicesContext.Provider value={services}>
<Main {...props} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<ConfirmationModal /> spec renders the component 1`] = `
<div
class="euiOverlayMask"
class="euiOverlayMask euiOverlayMask--aboveHeader"
>
<div
data-focus-guard="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<PolicyModal /> spec renders the component 1`] = `
<div
class="euiOverlayMask"
class="euiOverlayMask euiOverlayMask--aboveHeader"
>
<div
data-focus-guard="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
aria-invalid="false"
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
Managed indices
</label>
Expand All @@ -50,7 +50,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
class="euiFormRow__fieldWrapper"
>
<div
aria-describedby="some_make_id-help"
aria-describedby="some_html_id-help"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox"
Expand All @@ -74,7 +74,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
<input
aria-controls=""
data-test-subj="comboBoxSearchInput"
id="some_make_id"
id="some_html_id"
role="textbox"
style="box-sizing: content-box; width: 2px;"
value=""
Expand All @@ -101,22 +101,22 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
</div>
<div
class="euiFormHelpText euiFormRow__text"
id="some_make_id-help"
id="some_html_id-help"
>
You can use * as wildcards to form index patterns.
</div>
</div>
</div>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
State filters
</label>
Expand All @@ -125,7 +125,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
class="euiFormRow__fieldWrapper"
>
<div
aria-describedby="some_make_id-help"
aria-describedby="some_html_id-help"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox-isDisabled"
Expand Down Expand Up @@ -155,7 +155,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
aria-controls=""
data-test-subj="comboBoxSearchInput"
disabled=""
id="some_make_id"
id="some_html_id"
role="textbox"
style="box-sizing: content-box; width: 2px;"
value=""
Expand Down Expand Up @@ -183,7 +183,7 @@ exports[`<ChangeManagedIndices /> spec renders the component 1`] = `
</div>
<div
class="euiFormHelpText euiFormRow__text"
id="some_make_id-help"
id="some_html_id-help"
>
Apply new policy only on managed indices in these states.
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
aria-invalid="false"
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
New policy
</label>
Expand Down Expand Up @@ -90,7 +90,7 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
<input
aria-controls=""
data-test-subj="comboBoxSearchInput"
id="some_make_id"
id="some_html_id"
role="textbox"
style="box-sizing: content-box; width: 2px;"
value=""
Expand Down Expand Up @@ -167,7 +167,7 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__fieldWrapper"
Expand All @@ -182,7 +182,7 @@ exports[`<NewPolicy /> spec renders the component 1`] = `
aria-label="Start state for new policy"
class="euiSelect"
disabled=""
id="some_make_id"
id="some_html_id"
/>
<div
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
aria-invalid="false"
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
Managed indices
</label>
Expand All @@ -61,7 +61,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
class="euiFormRow__fieldWrapper"
>
<div
aria-describedby="some_make_id-help"
aria-describedby="some_html_id-help"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox"
Expand All @@ -85,7 +85,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
<input
aria-controls=""
data-test-subj="comboBoxSearchInput"
id="some_make_id"
id="some_html_id"
role="textbox"
style="box-sizing: content-box; width: 2px;"
value=""
Expand All @@ -112,22 +112,22 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
</div>
<div
class="euiFormHelpText euiFormRow__text"
id="some_make_id-help"
id="some_html_id-help"
>
You can use * as wildcards to form index patterns.
</div>
</div>
</div>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
State filters
</label>
Expand All @@ -136,7 +136,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
class="euiFormRow__fieldWrapper"
>
<div
aria-describedby="some_make_id-help"
aria-describedby="some_html_id-help"
aria-expanded="false"
aria-haspopup="listbox"
class="euiComboBox euiComboBox-isDisabled"
Expand Down Expand Up @@ -166,7 +166,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
aria-controls=""
data-test-subj="comboBoxSearchInput"
disabled=""
id="some_make_id"
id="some_html_id"
role="textbox"
style="box-sizing: content-box; width: 2px;"
value=""
Expand Down Expand Up @@ -194,7 +194,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
</div>
<div
class="euiFormHelpText euiFormRow__text"
id="some_make_id-help"
id="some_html_id-help"
>
Apply new policy only on managed indices in these states.
</div>
Expand Down Expand Up @@ -255,15 +255,15 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
aria-invalid="false"
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
New policy
</label>
Expand Down Expand Up @@ -295,7 +295,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
<input
aria-controls=""
data-test-subj="comboBoxSearchInput"
id="some_make_id"
id="some_html_id"
role="textbox"
style="box-sizing: content-box; width: 2px;"
value=""
Expand Down Expand Up @@ -372,7 +372,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__fieldWrapper"
Expand All @@ -387,7 +387,7 @@ exports[`<ChangePolicy /> spec renders the component 1`] = `
aria-label="Start state for new policy"
class="euiSelect"
disabled=""
id="some_make_id"
id="some_html_id"
/>
<div
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ exports[`<ConfigurePolicy /> spec renders the component 1`] = `
/>
<div
class="euiFormRow"
id="some_make_id-row"
id="some_html_id-row"
>
<div
class="euiFormRow__labelWrapper"
>
<label
aria-invalid="false"
class="euiFormLabel euiFormRow__label"
for="some_make_id"
for="some_html_id"
>
Policy ID
</label>
Expand All @@ -63,9 +63,9 @@ exports[`<ConfigurePolicy /> spec renders the component 1`] = `
class="euiFormControlLayout__childrenWrapper"
>
<input
aria-describedby="some_make_id-help"
aria-describedby="some_html_id-help"
class="euiFieldText"
id="some_make_id"
id="some_html_id"
placeholder="hot_cold_workflow"
type="text"
value="some_id"
Expand All @@ -74,7 +74,7 @@ exports[`<ConfigurePolicy /> spec renders the component 1`] = `
</div>
<div
class="euiFormHelpText euiFormRow__text"
id="some_make_id-help"
id="some_html_id-help"
>
Specify a unique ID that is easy to recognize and remember.
</div>
Expand Down
Loading

0 comments on commit 565844c

Please sign in to comment.