-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/decode-uri-component…
…-0.2.2
- Loading branch information
Showing
49 changed files
with
1,027 additions
and
9,275 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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
.ackrc | ||
/.opensearch | ||
/.chromium | ||
/package.json.bak | ||
.DS_Store | ||
.node_binaries | ||
.native_modules | ||
|
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
49 changes: 49 additions & 0 deletions
49
release-notes/opensearch-dashboards.release-notes-1.3.7.md
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,49 @@ | ||
# Version 1.3.7 Release Notes | ||
|
||
### 📈 Features/Enhancements | ||
|
||
* [Windows] Facilitate building and running OSD and plugins on Windows platforms ([#2601](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2601)) | ||
* [Windows] Add helper functions to work around the differences of platforms ([#2681](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2681)) | ||
* [Windows] Add `@osd/cross-platform` package to standardize path handling across platforms ([#2703](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2703)) | ||
|
||
### 🛡 Security | ||
|
||
* [CVE-2022-0144] Bump shelljs from 0.8.4 to 0.8.5 ([#2511](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2511)) | ||
* [Legacy Maps Plugin] Prevent reverse-tabnabbing ([#2540](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2540)) | ||
* [CVE-2022-3517] Bump minimatch from 3.0.4 to 3.0.5 and [IBM X-Force ID: 220063] unset-value from 1.0.1 to 2.0.1 ([#2640](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2640)) | ||
* [CVE-2022-0155] Bump follow-redirects to 1.15.2 ([#2653](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2653)) | ||
* [CVE-2022-0536] Bump follow-redirects to 1.15.2 ([#2653](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2653)) | ||
* [CVE-2021-24033] Remove storybook package ([#2660](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2660)) | ||
* [CVE-2021-42740] Remove storybook package ([#2660](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2660)) | ||
* [CVE-2022-23647] Bump prismjs to 1.29.0 ([#2668](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2668)) | ||
* [CVE-2022-37599] Bump loader-utils to 2.0.4 ([#2995](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2995)) | ||
* [CVE-2022-37603] Bump loader-utils to 2.0.4 ([#2995](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2995)) | ||
|
||
### 📝 Documentation | ||
|
||
* Add the release runbook to RELEASING.md ([#2533](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2533)) | ||
* Security-CVEs fixes guidelines [#2674](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2674) | ||
* Correct README and help command of osd-plugin-helpers ([#2810](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2810)) | ||
|
||
### 🐛 Bug Fixes | ||
|
||
* [Chore] Visualize link fix [#2395](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2395) | ||
* [BUG] Fix suggestion list cutoff issue ([#2607](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2607)) | ||
* Remove Leftover X Pack references ([#2638](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2638)) | ||
* Bump `del` version to fix MacOS race condition ([#2847](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2873)) | ||
* Temporary workaround for task-kill exceptions on Windows when it is passed a pid for a process that is already dead ([#2842](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2842)) | ||
* [Build] Fixed "Last Access Time" not being set by `scanCopy` on Windows ([#2964](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2964)) | ||
* Update `leaflet-vega` and fix its usage ([#3005](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3005)) | ||
|
||
### 🚞 Infrastructure | ||
|
||
* Update backport custom branch name to utilize head template ([#2766](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2766)) | ||
|
||
### 🛠 Maintenance | ||
|
||
* Increment version to 1.3.7 [#2528](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2528) | ||
|
||
### 🔩 Tests | ||
|
||
* Bump `chromedriver` to 106 to fix function test fail issue [#2514](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2514) | ||
* Fix incorrect validation of time values in JUnit Reporter ([#2965](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2965)) |
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,9 @@ | ||
## Version 2.4.1 Release Notes | ||
|
||
### 🐛 Bug Fixes | ||
|
||
* Update `leaflet-vega` and fix its usage ([#3005](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3005)) | ||
|
||
### 🔩 Tests | ||
|
||
* Correct the linting logic for `no-restricted-path` to ignore trailing slashes ([#3020](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3020)) |
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,122 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/** | ||
* Upgrades the chromedriver dev-dependency to the one supported by the version of Google Chrome | ||
* installed on the machine. | ||
* | ||
* Usage: node scripts/upgrade_chromedriver.js [--install] | ||
*/ | ||
|
||
/* eslint no-restricted-syntax: 0 */ | ||
const { execSync, spawnSync } = require('child_process'); | ||
const { createReadStream, createWriteStream, unlinkSync, renameSync, existsSync } = require('fs'); | ||
const { createInterface } = require('readline'); | ||
|
||
if (!process.argv.includes(__filename)) { | ||
console.error('Usage: node scripts/upgrade_chromedriver.js [--install]'); | ||
process.exit(1); | ||
} | ||
|
||
const versionCheckCommands = []; | ||
|
||
switch (process.platform) { | ||
case 'win32': | ||
versionCheckCommands.push( | ||
'powershell "(Get-Item \\"$Env:Programfiles/Google/Chrome/Application/chrome.exe\\").VersionInfo.FileVersion"' | ||
); | ||
break; | ||
|
||
case 'darwin': | ||
versionCheckCommands.push( | ||
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --version' | ||
); | ||
break; | ||
|
||
default: | ||
versionCheckCommands.push( | ||
...[ | ||
'/usr/bin', | ||
'/usr/local/bin', | ||
'/usr/sbin', | ||
'/usr/local/sbin', | ||
'/opt/bin', | ||
'/usr/bin/X11', | ||
'/usr/X11R6/bin', | ||
].flatMap((loc) => | ||
[ | ||
'google-chrome --version', | ||
'google-chrome-stable --version', | ||
'chromium --version', | ||
'chromium-browser --version', | ||
].map((cmd) => `${loc}/${cmd}`) | ||
) | ||
); | ||
} | ||
|
||
let versionCheckOutput; | ||
versionCheckCommands.some((cmd) => { | ||
try { | ||
console.log(cmd); | ||
versionCheckOutput = execSync(cmd, { encoding: 'utf8' })?.trim?.(); | ||
return true; | ||
} catch (e) { | ||
console.log('Failed to get version using', cmd); | ||
} | ||
}); | ||
|
||
// Versions 90+ | ||
const majorVersion = versionCheckOutput?.match?.(/(?:^|\s)(9\d|\d{3})\./)?.[1]; | ||
|
||
if (majorVersion) { | ||
if (process.argv.includes('--install')) { | ||
console.log(`Installing chromedriver@^${majorVersion}`); | ||
|
||
spawnSync(`yarn add --dev chromedriver@^${majorVersion}`, { | ||
stdio: 'inherit', | ||
cwd: process.cwd(), | ||
shell: true, | ||
}); | ||
} else { | ||
console.log(`Upgrading to chromedriver@^${majorVersion}`); | ||
|
||
let upgraded = false; | ||
const writeStream = createWriteStream('package.json.upgrading-chromedriver', { flags: 'w' }); | ||
const rl = createInterface({ | ||
input: createReadStream('package.json'), | ||
crlfDelay: Infinity, | ||
}); | ||
rl.on('line', (line) => { | ||
if (line.includes('"chromedriver": "')) { | ||
line = line.replace( | ||
/"chromedriver":\s*"[~^]?\d[\d.]*\d"/, | ||
`"chromedriver": "^${majorVersion}"` | ||
); | ||
upgraded = true; | ||
} | ||
writeStream.write(line + '\n', 'utf8'); | ||
}); | ||
rl.on('close', () => { | ||
writeStream.end(); | ||
if (upgraded) { | ||
// Remove any previous backups | ||
if (existsSync('package.json.bak')) unlinkSync('package.json.bak'); | ||
|
||
renameSync('package.json', 'package.json.bak'); | ||
renameSync('package.json.upgrading-chromedriver', 'package.json'); | ||
|
||
console.log(`Backed up package.json and updated chromedriver to ${majorVersion}`); | ||
} else { | ||
unlinkSync('package.json.upgrading-chromedriver'); | ||
console.error( | ||
`Failed to update chromedriver to ${majorVersion}. Try adding the \`--install\` switch.` | ||
); | ||
} | ||
}); | ||
} | ||
} else { | ||
console.debug(versionCheckOutput); | ||
console.error(`Failed to extract the version of the installed Google Chrome.`); | ||
} |
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.