Skip to content

Commit 3330fc4

Browse files
authored
Merge branch 'main' into main
2 parents c5b2164 + 6b82c47 commit 3330fc4

26 files changed

Lines changed: 1479 additions & 183 deletions

File tree

.github/workflows/add-untriaged.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
issues:
55
types: [opened, reopened, transferred]
66

7+
permissions:
8+
issues: write
9+
710
jobs:
811
apply-label:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: actions/github-script@v6
14+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
1215
with:
1316
script: |
1417
github.rest.issues.addLabels({

MAINTAINERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
1212
| Vikas Bansal | [vikasvb90](https://github.com/vikasvb90) | Amazon |
1313
| Zhou Su | [SuZhou-Joe](https://github.com/SuZhou-Joe) | Amazon |
1414
| Kshitij Tandon | [tandonks](https://github.com/tandonks) | Amazon |
15-
| Shivansh Arora | [shiv0408](https://github.com/shiv0408) | Amazon |
15+
| Shivansh Arora | [shiv0408](https://github.com/shiv0408) | Apple |
1616
| Sooraj Sinha | [soosinha](https://github.com/soosinha) | Amazon |
1717

1818
## Emeritus

cypress/e2e/plugins/index-management-dashboards-plugin/managed_indices_spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("Managed indexes", () => {
2929
// Common text to wait for to confirm page loaded, give up to 60 seconds for initial load
3030
cy.contains("Edit rollover alias", { timeout: 60000 });
3131

32-
cy.get('[data-test-subj="toastCloseButton"]').click({ force: true });
32+
cy.dismissToast();
3333
});
3434

3535
describe("can have policies removed", () => {
@@ -90,7 +90,7 @@ describe("Managed indexes", () => {
9090
// Wait up to 5 seconds for the managed index to execute
9191
// eslint-disable-next-line cypress/no-unnecessary-waiting
9292
cy.wait(5000).reload();
93-
cy.get('[data-test-subj="toastCloseButton"]').click({ force: true });
93+
cy.dismissToast();
9494

9595
// Confirm managed index successfully initialized the policy
9696
cy.contains("Successfully initialized", { timeout: 20000 });
@@ -100,7 +100,7 @@ describe("Managed indexes", () => {
100100
// Wait up to 5 seconds for managed index to execute
101101
// eslint-disable-next-line cypress/no-unnecessary-waiting
102102
cy.wait(5000).reload();
103-
cy.get('[data-test-subj="toastCloseButton"]').click({ force: true });
103+
cy.dismissToast();
104104

105105
// Confirm we have a Failed execution, wait up to 20 seconds as OSD takes a while to load
106106
cy.contains("Failed", { timeout: 20000 });
@@ -125,7 +125,7 @@ describe("Managed indexes", () => {
125125

126126
// Reload the page
127127
cy.reload();
128-
cy.get('[data-test-subj="toastCloseButton"]').click({ force: true });
128+
cy.dismissToast();
129129

130130
// Confirm we see managed index attempting to retry, give 20 seconds for OSD load
131131
cy.contains("Pending retry of failed managed index", { timeout: 20000 });
@@ -136,7 +136,7 @@ describe("Managed indexes", () => {
136136
// Wait up to 5 seconds for managed index to execute
137137
// eslint-disable-next-line cypress/no-unnecessary-waiting
138138
cy.wait(5000).reload();
139-
cy.get('[data-test-subj="toastCloseButton"]').click({ force: true });
139+
cy.dismissToast();
140140

141141
// Confirm managed index successfully rolled over
142142
cy.contains("Successfully rolled over", { timeout: 20000 });

cypress/e2e/plugins/index-management-dashboards-plugin/policies_spec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ describe("Policies", () => {
7373
add: ["alias1", "alias2"],
7474
remove: ["alias3", "alias5", "alias6"],
7575
};
76+
const testIndexPattern = "test-index-pattern";
7677

7778
// Route us to create policy page
7879
cy.contains("Create policy").click({ force: true });
@@ -89,6 +90,12 @@ describe("Policies", () => {
8990
// Type in the policy description
9091
cy.get(`[data-test-subj="create-policy-description"]`).type("{selectall}{backspace}" + sampleAliasPolicy.policy.description);
9192

93+
// Add an ISM template
94+
cy.get("button").contains("Add template").click({ force: true });
95+
96+
// Enter an index pattern
97+
cy.get(`[data-test-subj="comboBoxInput"]`).type(testIndexPattern);
98+
9299
// Add a state
93100
cy.get("button").contains("Add state").click({ force: true });
94101

@@ -114,7 +121,7 @@ describe("Policies", () => {
114121
cy.get(`[data-test-subj="remove-alias-toggle"]`).click({ force: true });
115122

116123
// Enter aliases to remove
117-
cy.get(`[data-test-subj="remove-alias-combo-box"]`).click({ force: true }).type(testInputs.remove.join("{enter}"));
124+
cy.get(`[data-test-subj="remove-alias-combo-box"]`).click({ force: true }).type(testInputs.remove.join("{enter}").concat("{enter}"));
118125

119126
// Click the 'Add action' button
120127
cy.get(`[data-test-subj="flyout-footer-action-button"]`).click({ force: true });

opensearch_dashboards.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "indexManagementDashboards",
3-
"version": "3.3.0.0",
4-
"opensearchDashboardsVersion": "3.3.0",
3+
"version": "3.7.0.0",
4+
"opensearchDashboardsVersion": "3.7.0",
55
"configPath": [
66
"opensearch_index_management"
77
],

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensearch_index_management_dashboards",
3-
"version": "3.3.0.0",
3+
"version": "3.7.0.0",
44
"description": "Opensearch Dashboards plugin for Index Management",
55
"main": "index.js",
66
"license": "Apache-2.0",
@@ -29,7 +29,7 @@
2929
}
3030
},
3131
"resolutions": {
32-
"@types/react": "^16.9.8",
32+
"@types/react": "^18.2.0",
3333
"semver": "^7.5.3",
3434
"@cypress/request": "^3.0.0",
3535
"**/ansi-regex": "^5.0.1",
@@ -45,19 +45,21 @@
4545
"pbkdf2": "^3.1.3",
4646
"form-data": "4.0.4",
4747
"cipher-base": "^1.0.7",
48-
"sha.js": "^2.4.12"
48+
"sha.js": "^2.4.12",
49+
"qs": "^6.14.1",
50+
"lodash": "^4.18.0",
51+
"bn.js": "^4.12.3"
4952
},
5053
"devDependencies": {
5154
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
5255
"@elastic/elastic-eslint-config-kibana": "link:../../packages/opensearch-eslint-config-opensearch-dashboards",
5356
"@elastic/eslint-import-resolver-kibana": "link:../../packages/osd-eslint-import-resolver-opensearch-dashboards",
5457
"@testing-library/dom": "^8.11.3",
55-
"@testing-library/react-hooks": "^7.0.2",
5658
"@testing-library/user-event": "^14.4.3",
5759
"@types/diff": "^5.0.2",
5860
"@types/flat": "^5.0.2",
5961
"@types/json-schema": "^7.0.11",
60-
"@types/react-dom": "^16.9.8",
62+
"@types/react-dom": "^18.2.0",
6163
"@types/react-router-dom": "^5.3.2",
6264
"cypress": "^13.6.0",
6365
"diff": "^4.0.1",
@@ -72,4 +74,4 @@
7274
"engines": {
7375
"yarn": "^1.21.1"
7476
}
75-
}
77+
}

public/components/FormGenerator/FormGenerator.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
*/
55

66
import React, { forwardRef, useRef } from "react";
7-
import { act, fireEvent, render, waitFor } from "@testing-library/react";
8-
import { renderHook } from "@testing-library/react-hooks";
7+
import { act, fireEvent, render, waitFor, renderHook } from "@testing-library/react";
98
import userEventModule from "@testing-library/user-event";
109
import { EuiButton } from "@elastic/eui";
1110
import FormGenerator, { IFormGeneratorProps, IFormGeneratorRef } from "./index";

public/components/IndexDetail/IndexDetail.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
*/
55

66
import React, { useRef, forwardRef, useState } from "react";
7-
import { render, waitFor } from "@testing-library/react";
8-
import { renderHook } from "@testing-library/react-hooks";
7+
import { render, waitFor, renderHook } from "@testing-library/react";
98
import IndexDetail, { IIndexDetailRef, IndexDetailProps } from "./IndexDetail";
109
import userEventModule from "@testing-library/user-event";
1110

public/components/IndexMapping/IndexMapping.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
*/
55

66
import React, { forwardRef, Ref, useRef, useState } from "react";
7-
import { render, fireEvent, waitFor, act } from "@testing-library/react";
7+
import { render, fireEvent, waitFor, act, renderHook } from "@testing-library/react";
88
import userEventModule from "@testing-library/user-event";
99
import IndexMapping, { IIndexMappingsRef, IndexMappingProps, transformObjectToArray } from "./IndexMapping";
1010
import { MappingsProperties } from "../../../models/interfaces";
11-
import { renderHook } from "@testing-library/react-hooks";
1211

1312
const IndexMappingOnChangeWrapper = forwardRef((props: Partial<IndexMappingProps>, ref: Ref<IIndexMappingsRef>) => {
1413
const [value, setValue] = useState(props.value as any);

0 commit comments

Comments
 (0)