Skip to content

Commit a61313e

Browse files
committed
Merge branch 'main' of https://github.com/shyamal2409/eui
2 parents 6180a50 + 13821d9 commit a61313e

8 files changed

Lines changed: 97 additions & 11 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 🏠/.buildkite/pipelines/pipeline_prune_staging_docs.yml
2+
3+
steps:
4+
- agents:
5+
provider: "gcp"
6+
command: .buildkite/scripts/pipelines/pipeline_prune_staging_docs.sh
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
set +x
5+
6+
# Expected env variables:
7+
# * GPROJECT - GCE project name, e.g. elastic-bekitzur
8+
# * GCE_ACCOUNT - credentials for the google service account (JSON blob)
9+
if [[ -z "${GCE_ACCOUNT}" ]]; then
10+
echo ":fire: GCP credentials not set." 1>&2
11+
exit 1
12+
fi
13+
if [[ -z "${GPROJECT}" ]]; then
14+
echo "GPROJECT is not set, e.g. 'GPROJECT=elastic-bekitzur'"
15+
exit 1
16+
fi
17+
18+
# Login to the cloud with the service account
19+
gcloud auth activate-service-account --key-file <(echo "${GCE_ACCOUNT}")
20+
unset GCE_ACCOUNT
21+
22+
EUI_DOCS_PROJECT=eui-docs-live
23+
BUCKET=${GPROJECT}-${EUI_DOCS_PROJECT}
24+
25+
# https://cloud.google.com/storage/docs/gsutil/commands/ls
26+
ls_options=(
27+
-d # only list directories
28+
-l # Print additional details about the subdir
29+
)
30+
echo "Listing all PR staging links"
31+
gsutil ls "${ls_options[@]}" "gs://${BUCKET}/pr_*" # | sort -k 2 # sort by the 2nd field returned by -l which is the 'created by' timestamp
32+
33+
# https://cloud.google.com/storage/docs/gsutil/commands/rm
34+
rm_options=(
35+
-r # recursive, delete everything inside subdir
36+
-m # enables multi-threading for large numbers of objects
37+
)
38+
# gsutil rm "${rm_options[@]}" "gs://${BUCKET}/pr_TODO"

catalog-info.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ spec:
205205
build_tags: false
206206
build_pull_requests: true
207207
filter_enabled: true
208-
# Start Buildkite jobs using the API only
209208
filter_condition: |
210209
(build.creator.name == 'elasticmachine' && build.pull_request.id != null)
211210
teams:
@@ -258,6 +257,48 @@ spec:
258257
everyone:
259258
access_level: READ_ONLY
260259

260+
---
261+
##
262+
# buildkite-pipeline-eui-prune-staging-docs
263+
# Run this pipeline manually in Buildkite's UI whenever we need to delete old PR staging servers
264+
##
265+
266+
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
267+
apiVersion: backstage.io/v1alpha1
268+
kind: Resource
269+
metadata:
270+
name: buildkite-pipeline-eui-prune-staging-docs
271+
description: EUI pipeline to prune old PR staging docs
272+
links: [
273+
{
274+
title: "EUI - prune-staging-docs",
275+
url: "https://buildkite.com/elastic/eui-prune-staging-docs",
276+
}
277+
]
278+
279+
spec:
280+
type: buildkite-pipeline
281+
owner: group:eui-team
282+
system: buildkite
283+
implementation:
284+
apiVersion: buildkite.elastic.dev/v1
285+
kind: Pipeline
286+
metadata:
287+
name: eui-prune-staging-docs
288+
spec:
289+
repository: elastic/eui
290+
pipeline_file: ".buildkite/pipelines/pipeline_prune_staging_docs.yml"
291+
provider_settings:
292+
# Start Buildkite jobs using the web UI only
293+
build_branches: false
294+
build_tags: false
295+
build_pull_requests: false
296+
teams:
297+
eui-team:
298+
access_level: MANAGE_BUILD_AND_READ
299+
everyone:
300+
access_level: READ_ONLY
301+
261302
---
262303
##
263304
# buildkite-pipeline-eui-release

changelogs/upcoming/7702.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Updated `EuiSearchBar` to allow the `@` special character in query string searches

changelogs/upcoming/7708.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**Bug fixes**
2+
3+
- Fixed a visual bug with `EuiSuperDatePicker`'s absolute tab on small mobile screens

src/components/date_picker/super_date_picker/date_popover/_date_popover_content.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
.euiDatePopoverContent .react-datepicker {
33
width: $euiFormMaxWidth;
44
max-width: 100%;
5+
6+
@include euiBreakpoint('xs') {
7+
width: $euiDatePickerCalendarWidth;
8+
}
59
}
610

711
.euiDatePopoverContent__padded {
@@ -11,10 +15,3 @@
1115
.euiDatePopoverContent__padded--large {
1216
padding: $euiSize;
1317
}
14-
15-
@include euiBreakpoint('xs') {
16-
.euiDatePopoverContent {
17-
// Small screens drop the time selector
18-
width: $euiDatePickerCalendarWidth;
19-
}
20-
}

src/components/search_bar/query/default_syntax.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,12 +871,12 @@ describe('defaultSyntax', () => {
871871
});
872872

873873
test('special characters', () => {
874-
const ast = defaultSyntax.parse('*_-:');
874+
const ast = defaultSyntax.parse('*_-:@');
875875
const clauses = ast.getTermClauses();
876876
expect(clauses).toEqual([
877877
{
878878
type: 'term',
879-
value: '*_-:',
879+
value: '*_-:@',
880880
match: 'must',
881881
},
882882
]);

src/components/search_bar/query/default_syntax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ word
169169
170170
wordChar
171171
= alnum
172-
/ [-_*:/]
172+
/ [-_*:/@]
173173
/ escapedChar
174174
/ extendedGlyph
175175

0 commit comments

Comments
 (0)