-
Notifications
You must be signed in to change notification settings - Fork 844
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' of https://github.com/shyamal2409/eui
- Loading branch information
Showing
8 changed files
with
97 additions
and
11 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,6 @@ | ||
## 🏠/.buildkite/pipelines/pipeline_prune_staging_docs.yml | ||
|
||
steps: | ||
- agents: | ||
provider: "gcp" | ||
command: .buildkite/scripts/pipelines/pipeline_prune_staging_docs.sh |
38 changes: 38 additions & 0 deletions
38
.buildkite/scripts/pipelines/pipeline_prune_staging_docs.sh
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,38 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
set +x | ||
|
||
# Expected env variables: | ||
# * GPROJECT - GCE project name, e.g. elastic-bekitzur | ||
# * GCE_ACCOUNT - credentials for the google service account (JSON blob) | ||
if [[ -z "${GCE_ACCOUNT}" ]]; then | ||
echo ":fire: GCP credentials not set." 1>&2 | ||
exit 1 | ||
fi | ||
if [[ -z "${GPROJECT}" ]]; then | ||
echo "GPROJECT is not set, e.g. 'GPROJECT=elastic-bekitzur'" | ||
exit 1 | ||
fi | ||
|
||
# Login to the cloud with the service account | ||
gcloud auth activate-service-account --key-file <(echo "${GCE_ACCOUNT}") | ||
unset GCE_ACCOUNT | ||
|
||
EUI_DOCS_PROJECT=eui-docs-live | ||
BUCKET=${GPROJECT}-${EUI_DOCS_PROJECT} | ||
|
||
# https://cloud.google.com/storage/docs/gsutil/commands/ls | ||
ls_options=( | ||
-d # only list directories | ||
-l # Print additional details about the subdir | ||
) | ||
echo "Listing all PR staging links" | ||
gsutil ls "${ls_options[@]}" "gs://${BUCKET}/pr_*" # | sort -k 2 # sort by the 2nd field returned by -l which is the 'created by' timestamp | ||
|
||
# https://cloud.google.com/storage/docs/gsutil/commands/rm | ||
rm_options=( | ||
-r # recursive, delete everything inside subdir | ||
-m # enables multi-threading for large numbers of objects | ||
) | ||
# gsutil rm "${rm_options[@]}" "gs://${BUCKET}/pr_TODO" |
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 @@ | ||
- Updated `EuiSearchBar` to allow the `@` special character in query string searches |
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,3 @@ | ||
**Bug fixes** | ||
|
||
- Fixed a visual bug with `EuiSuperDatePicker`'s absolute tab on small mobile screens |
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 |
---|---|---|
|
@@ -169,7 +169,7 @@ word | |
wordChar | ||
= alnum | ||
/ [-_*:/] | ||
/ [-_*:/@] | ||
/ escapedChar | ||
/ extendedGlyph | ||
|