Skip to content

Commit 31fc5ec

Browse files
Merge branch '7.x' into backport/7.x/pr-91638
2 parents 26f362e + 3989bf3 commit 31fc5ec

22 files changed

Lines changed: 783 additions & 287 deletions

File tree

src/dev/ci_setup/setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ cp "src/dev/ci_setup/.bazelrc-ci" "$HOME/.bazelrc";
2121
echo "# Appended by src/dev/ci_setup/setup.sh" >> "$HOME/.bazelrc"
2222
echo "build --remote_header=x-buildbuddy-api-key=$KIBANA_BUILDBUDDY_CI_API_KEY" >> "$HOME/.bazelrc"
2323

24+
if [[ "$BUILD_TS_REFS_CACHE_ENABLE" != "true" ]]; then
25+
export BUILD_TS_REFS_CACHE_ENABLE=false
26+
fi
27+
2428
###
2529
### install dependencies
2630
###

src/dev/typescript/build_ts_refs_cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function runBuildRefsCli() {
2323
async ({ log, flags }) => {
2424
const outDirs = getOutputsDeep(REF_CONFIG_PATHS);
2525

26-
const cacheEnabled = process.env.BUILD_TS_REFS_CACHE_ENABLE === 'true' || !!flags.cache;
26+
const cacheEnabled = process.env.BUILD_TS_REFS_CACHE_ENABLE !== 'false' && !!flags.cache;
2727
const doCapture = process.env.BUILD_TS_REFS_CACHE_CAPTURE === 'true';
2828
const doClean = !!flags.clean || doCapture;
2929
const doInitCache = cacheEnabled && !doClean;
@@ -62,6 +62,9 @@ export async function runBuildRefsCli() {
6262
description: 'Build TypeScript projects',
6363
flags: {
6464
boolean: ['clean', 'cache'],
65+
default: {
66+
cache: true,
67+
},
6568
},
6669
log: {
6770
defaultLevel: 'debug',

src/dev/typescript/ref_output_cache/ref_output_cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class RefOutputCache {
132132
this.log.debug(`[${relative}] clearing outDir and replacing with cache`);
133133
await del(outDir);
134134
await unzip(Path.resolve(tmpDir, cacheName), outDir);
135-
await Fs.writeFile(Path.resolve(outDir, OUTDIR_MERGE_BASE_FILENAME), archive.sha);
135+
await Fs.writeFile(Path.resolve(outDir, OUTDIR_MERGE_BASE_FILENAME), this.mergeBase);
136136
});
137137
}
138138

x-pack/plugins/apm/public/context/url_params_context/url_params_context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function useUiFilters(params: IUrlParams): UIFilters {
3737
) as Partial<Record<LocalUIFilterName, string[]>>;
3838

3939
return useDeepObjectIdentity({
40-
kuery,
40+
environment: params.environment,
4141
...localUiFilters,
4242
});
4343
}

0 commit comments

Comments
 (0)