-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-50658-default-route-redirection
- Loading branch information
Showing
251 changed files
with
4,489 additions
and
2,779 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: 8.0 Breaking change | ||
about: Breaking changes from 7.x -> 8.0 | ||
title: "[Breaking change]" | ||
labels: Team:Elasticsearch UI, Feature:Upgrade Assistant | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Change description | ||
|
||
**Which release will ship the breaking change?** | ||
|
||
<!-- e.g., v7.6.2 --> | ||
|
||
**Describe the change. How will it manifest to users?** | ||
|
||
**What percentage of users will be affected?** | ||
|
||
<!-- e.g., Roughly 75% will need to make changes to x. --> | ||
|
||
**What can users to do to address the change manually?** | ||
|
||
<!-- If applicable, describe the manual workaround --> | ||
|
||
**How could we make migration easier with the Upgrade Assistant?** | ||
|
||
**Are there any edge cases?** | ||
|
||
## Test Data | ||
|
||
Provide test data. We can’t build a solution without data to test it against. | ||
|
||
## Cross links | ||
|
||
Cross-link to relevant [Elasticsearch breaking changes](https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-8.0.html). |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import util from 'util'; | ||
import { deleteAll, download, untar } from '../lib'; | ||
|
||
const BASE_URL = `https://storage.googleapis.com/native-modules`; | ||
const DOWNLOAD_DIRECTORY = '.native_modules'; | ||
|
||
const packages = [ | ||
{ | ||
name: 're2', | ||
version: '1.10.5', | ||
destinationPath: 'node_modules/re2/build/Release/', | ||
shas: { | ||
darwin: '066533b592094f91e00412499e44c338ce2466d63c9eaf0dc32be8214bde2099', | ||
linux: '0322cac3c2e106129b650a8eac509f598ed283791d6116984fec4c151b24e574', | ||
windows: '65b5bef7de2352f4787224c2c76a619b6683a868c8d4d71e0fdd500786fc422b', | ||
}, | ||
}, | ||
]; | ||
|
||
async function getInstalledVersion(config, packageName) { | ||
const packageJSONPath = config.resolveFromRepo( | ||
path.join('node_modules', packageName, 'package.json') | ||
); | ||
const buffer = await util.promisify(fs.readFile)(packageJSONPath); | ||
const packageJSON = JSON.parse(buffer); | ||
return packageJSON.version; | ||
} | ||
|
||
async function patchModule(config, log, build, platform, pkg) { | ||
const installedVersion = await getInstalledVersion(config, pkg.name); | ||
if (installedVersion !== pkg.version) { | ||
throw new Error( | ||
`Can't patch ${pkg.name}'s native module, we were expecting version ${pkg.version} and found ${installedVersion}` | ||
); | ||
} | ||
const platformName = platform.getName(); | ||
const archiveName = `${pkg.version}-${platformName}.tar.gz`; | ||
const downloadUrl = `${BASE_URL}/${pkg.name}/${archiveName}`; | ||
const downloadPath = config.resolveFromRepo(DOWNLOAD_DIRECTORY, archiveName); | ||
const extractedPath = build.resolvePathForPlatform(platform, pkg.destinationPath); | ||
log.debug(`Patching ${pkg.name} binaries from ${downloadUrl} to ${extractedPath}`); | ||
|
||
await deleteAll([extractedPath], log); | ||
await download({ | ||
log, | ||
url: downloadUrl, | ||
destination: downloadPath, | ||
sha256: pkg.shas[platformName], | ||
retries: 3, | ||
}); | ||
await untar(downloadPath, extractedPath); | ||
} | ||
|
||
export const PatchNativeModulesTask = { | ||
description: 'Patching platform-specific native modules', | ||
async run(config, log, build) { | ||
for (const pkg of packages) { | ||
await Promise.all( | ||
config.getTargetPlatforms().map(async platform => { | ||
await patchModule(config, log, build, platform, pkg); | ||
}) | ||
); | ||
} | ||
}, | ||
}; |
65 changes: 0 additions & 65 deletions
65
...egacy/core_plugins/kibana/public/discover/__tests__/query_parameters/action_add_filter.js
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
...plugins/kibana/public/discover/__tests__/query_parameters/action_set_predecessor_count.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.