diff --git a/.lycheeignore b/.lycheeignore index 82348e6f047c..839c7454eb5d 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -91,3 +91,4 @@ https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi http:/adomas.org/javascript-mouse-wheel/ site.com http://sites.google.com/site/murmurhash/ +helpmenow.com diff --git a/changelogs/fragments/8352.yml b/changelogs/fragments/8352.yml new file mode 100644 index 000000000000..048f8a94a22a --- /dev/null +++ b/changelogs/fragments/8352.yml @@ -0,0 +1,2 @@ +fix: +- Add discover summary error info and button click logic enhancement ([#8352](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8352)) diff --git a/changelogs/fragments/8504.yml b/changelogs/fragments/8504.yml new file mode 100644 index 000000000000..3ccc6590581d --- /dev/null +++ b/changelogs/fragments/8504.yml @@ -0,0 +1,6 @@ +feat: +- Allow hiding the TSVB axis for time series visualizations ([#8504](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8504)) +- Allow setting scale of each axis for TSVB time series ([#8504](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8504)) + +fix: +- Compress non-OUI input fields in TSVB visualizations ([#8504](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8504)) \ No newline at end of file diff --git a/changelogs/fragments/8520.yml b/changelogs/fragments/8520.yml new file mode 100644 index 000000000000..f0883088331f --- /dev/null +++ b/changelogs/fragments/8520.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace]Remove collaborators in workspace creation page ([#8520](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8520)) \ No newline at end of file diff --git a/changelogs/fragments/8531.yml b/changelogs/fragments/8531.yml new file mode 100644 index 000000000000..e23c5eba1faa --- /dev/null +++ b/changelogs/fragments/8531.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace]Display duplicate collaborators error in add collaborators modal ([#8531](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8531)) \ No newline at end of file diff --git a/changelogs/fragments/8538.yml b/changelogs/fragments/8538.yml new file mode 100644 index 000000000000..31ccc192392d --- /dev/null +++ b/changelogs/fragments/8538.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace] Add global search bar into left nav ([#8538](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8538)) \ No newline at end of file diff --git a/changelogs/fragments/8540.yml b/changelogs/fragments/8540.yml new file mode 100644 index 000000000000..c0008c804319 --- /dev/null +++ b/changelogs/fragments/8540.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace]Replace connections copy with data sources ([#8540](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8540)) \ No newline at end of file diff --git a/changelogs/fragments/8541.yml b/changelogs/fragments/8541.yml new file mode 100644 index 000000000000..5b1b2457bc34 --- /dev/null +++ b/changelogs/fragments/8541.yml @@ -0,0 +1,2 @@ +fix: +- The workspace selector jump that occurs when hovering and clicking. ([#8541](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8541)) \ No newline at end of file diff --git a/changelogs/fragments/8544.yml b/changelogs/fragments/8544.yml new file mode 100644 index 000000000000..71d1d815e6dc --- /dev/null +++ b/changelogs/fragments/8544.yml @@ -0,0 +1,2 @@ +fix: +- Direct query connections fit and finish fixes ([#8544](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8544)) \ No newline at end of file diff --git a/changelogs/fragments/8545.yml b/changelogs/fragments/8545.yml new file mode 100644 index 000000000000..ba972ec51e7c --- /dev/null +++ b/changelogs/fragments/8545.yml @@ -0,0 +1,2 @@ +feat: +- Refactor data source list page to include data source association features for workspace ([#8545](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8545)) \ No newline at end of file diff --git a/changelogs/fragments/8554.yml b/changelogs/fragments/8554.yml new file mode 100644 index 000000000000..3c72872e1c0f --- /dev/null +++ b/changelogs/fragments/8554.yml @@ -0,0 +1,2 @@ +fix: +- Fix new home page small screen display issues ([#8554](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8554)) \ No newline at end of file diff --git a/changelogs/fragments/8557.yml b/changelogs/fragments/8557.yml new file mode 100644 index 000000000000..7a9fb57b7f60 --- /dev/null +++ b/changelogs/fragments/8557.yml @@ -0,0 +1,2 @@ +feat: +- Add ACL auditor ([#8557](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8557)) \ No newline at end of file diff --git a/changelogs/fragments/8564.yml b/changelogs/fragments/8564.yml new file mode 100644 index 000000000000..bc745037679c --- /dev/null +++ b/changelogs/fragments/8564.yml @@ -0,0 +1,2 @@ +chore: +- Update oui to 1.16 ([#8564](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8564)) \ No newline at end of file diff --git a/changelogs/fragments/8570.yml b/changelogs/fragments/8570.yml new file mode 100644 index 000000000000..e967ac10c560 --- /dev/null +++ b/changelogs/fragments/8570.yml @@ -0,0 +1,2 @@ +fix: +- Fix workspace update issue ([#8570](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8570)) \ No newline at end of file diff --git a/changelogs/fragments/8574.yml b/changelogs/fragments/8574.yml new file mode 100644 index 000000000000..72c73d09947a --- /dev/null +++ b/changelogs/fragments/8574.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace]Show add collaborators modal until collaborators added ([#8574](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8574)) \ No newline at end of file diff --git a/changelogs/fragments/8581.yml b/changelogs/fragments/8581.yml new file mode 100644 index 000000000000..5b352fc31fca --- /dev/null +++ b/changelogs/fragments/8581.yml @@ -0,0 +1,2 @@ +fix: +- Disable cope all button when there is no saved objects in assets page ([#8581](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8581)) \ No newline at end of file diff --git a/package.json b/package.json index c741677d90b7..c14548afd48d 100644 --- a/package.json +++ b/package.json @@ -151,7 +151,7 @@ "dependencies": { "@aws-crypto/client-node": "^3.1.1", "@elastic/datemath": "5.0.3", - "@elastic/eui": "npm:@opensearch-project/oui@1.15.0", + "@elastic/eui": "npm:@opensearch-project/oui@1.16.0", "@elastic/good": "^9.0.1-kibana3", "@elastic/numeral": "npm:@amoo-miki/numeral@2.6.0", "@elastic/request-crypto": "2.0.0", diff --git a/packages/osd-i18n/src/core/i18n.test.ts b/packages/osd-i18n/src/core/i18n.test.ts index ebfd546f8561..ad5ed920fd01 100644 --- a/packages/osd-i18n/src/core/i18n.test.ts +++ b/packages/osd-i18n/src/core/i18n.test.ts @@ -178,7 +178,7 @@ describe('I18n engine', () => { 'en-us' ); - expect(i18n.getLocale()).toBe('en-us'); + expect(i18n.getLocale()).toBe('en-US'); expect(i18n.getTranslation()).toEqual({ messages: { ['a.b.c']: 'bar', @@ -246,9 +246,19 @@ describe('I18n engine', () => { expect(i18n.getLocale()).toBe('foo'); }); - test('should normalize passed locale', () => { - i18n.setLocale('en-US'); - expect(i18n.getLocale()).toBe('en-us'); + test('should normalize basic locale', () => { + i18n.setLocale('It-iT'); + expect(i18n.getLocale()).toBe('it-IT'); + }); + + test('should normalize simple locale', () => { + i18n.setLocale('en-LATN-us_PRIVATE-variant'); + expect(i18n.getLocale()).toBe('en-Latn-US'); + }); + + test('should normalize complex locale', () => { + i18n.setLocale('FR-CA-X-FALLBACK-und-u@keyword=calendarKey'); + expect(i18n.getLocale()).toBe('fr-CA'); }); }); @@ -280,8 +290,8 @@ describe('I18n engine', () => { }); test('should normalize passed locale', () => { - i18n.setDefaultLocale('en-US'); - expect(i18n.getDefaultLocale()).toBe('en-us'); + i18n.setDefaultLocale('eN-uS'); + expect(i18n.getDefaultLocale()).toBe('en-US'); }); test('should set "en" locale as default for IntlMessageFormat and IntlRelativeFormat', () => { diff --git a/packages/osd-i18n/src/core/i18n.ts b/packages/osd-i18n/src/core/i18n.ts index 65da4931ef13..fc040bb834e6 100644 --- a/packages/osd-i18n/src/core/i18n.ts +++ b/packages/osd-i18n/src/core/i18n.ts @@ -44,6 +44,16 @@ const EN_LOCALE = 'en'; const translationsForLocale: Record = {}; const getMessageFormat = memoizeIntlConstructor(IntlMessageFormat); +/* A locale code is made of several components: + * * lang: The two- and three-letter lower-case language code follows the ISO 639-1 and ISO 639-2/3 standards, respectively. + * * script: The optional four-letter title-case code follows the ISO 15924 standard for representing writing systems. + * * region: The two-letter upper-case region code follows the ISO 3166-1 alpha-2 standard. + * + * Ref: https://www.rfc-editor.org/rfc/rfc5646.txt + * Note: While case carries no distinction with locale codes, proper formatting is recommended. + */ +const localeParser = /^(?[a-z]{2,3})(?:-(?