Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/elastic/kibana into connect…
Browse files Browse the repository at this point in the history
…ors/servicenow-docs
  • Loading branch information
ymao1 committed May 12, 2022
2 parents c30c9bc + 1f91501 commit 28639da
Show file tree
Hide file tree
Showing 158 changed files with 5,273 additions and 1,369 deletions.
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
export DISABLE_BOOTSTRAP_VALIDATION=false
.buildkite/scripts/bootstrap.sh

.buildkite/scripts/steps/checks/commit/commit.sh
.buildkite/scripts/steps/checks/precommit_hook.sh
.buildkite/scripts/steps/checks/bazel_packages.sh
.buildkite/scripts/steps/checks/telemetry.sh
.buildkite/scripts/steps/checks/ts_projects.sh
Expand Down
14 changes: 0 additions & 14 deletions .buildkite/scripts/steps/checks/commit/commit.sh

This file was deleted.

13 changes: 0 additions & 13 deletions .buildkite/scripts/steps/checks/commit/commit_check_runner.sh

This file was deleted.

26 changes: 26 additions & 0 deletions .buildkite/scripts/steps/checks/precommit_hook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/scripts/common/util.sh

# Runs pre-commit hook script for the files touched in the last commit.
# That way we can ensure a set of quick commit checks earlier as we removed
# the pre-commit hook installation by default.
# If files are more than 200 we will skip it and just use
# the further ci steps that already check linting and file casing for the entire repo.
echo --- Run Precommit Hook

echo "!!!!!!!! ATTENTION !!!!!!!!
That check is intended to provide earlier CI feedback after we remove the automatic install for the local pre-commit hook.
If you want, you can still manually install the pre-commit hook locally by running 'node scripts/register_git_hook locally'
!!!!!!!!!!!!!!!!!!!!!!!!!!!"

node scripts/precommit_hook.js \
--ref HEAD~1..HEAD \
--max-files 200 \
--verbose \
--fix \
--no-stage # we have to disable staging or check_for_changed_files won't see the changes

check_for_changed_files 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' true
12 changes: 7 additions & 5 deletions .buildkite/scripts/steps/package_testing/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ trap "echoKibanaLogs" EXIT

vagrant provision "$TEST_PACKAGE"

# export TEST_BROWSER_HEADLESS=1
# export TEST_KIBANA_URL="http://elastic:changeme@$KIBANA_IP_ADDRESS:5601"
# export TEST_ES_URL=http://elastic:changeme@192.168.56.1:9200
export TEST_BROWSER_HEADLESS=1
export TEST_KIBANA_URL="http://elastic:changeme@$KIBANA_IP_ADDRESS:5601"
export TEST_ES_URL="http://elastic:changeme@192.168.56.1:9200"

# cd x-pack
# node scripts/functional_test_runner.js --include-tag=smoke
cd x-pack

echo "--- FTR - Reporting"
node scripts/functional_test_runner.js --config test/functional/apps/visualize/config.ts --include-tag=smoke --quiet
4 changes: 2 additions & 2 deletions docs/dev-tools/console/console.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To get started, open the main menu, click *Dev Tools*, then click *Console*.
[role="screenshot"]
image::dev-tools/console/images/console.png["Console"]

NOTE: You cannot to interact with the REST API of {kib} with the Console.
NOTE: **Console** supports only Elasticsearch APIs. You are unable to interact with the {kib} APIs with **Console** and must use curl or another HTTP tool instead.

[float]
[[console-api]]
Expand Down Expand Up @@ -137,4 +137,4 @@ shortcuts, click *Help*.
If you don’t want to use *Console*, you can disable it by setting `console.ui.enabled`
to `false` in your `kibana.yml` configuration file. Changing this setting
causes the server to regenerate assets on the next startup,
which might cause a delay before pages start being served.
which might cause a delay before pages start being served.
Loading

0 comments on commit 28639da

Please sign in to comment.