From bc974035ca9ef971b12c009a391c7e07ed3ff899 Mon Sep 17 00:00:00 2001 From: Sam Sneddon Date: Fri, 14 Oct 2022 14:02:21 +0100 Subject: [PATCH] Add a flag allowing interop view to be viewed everywhere --- webapp/components/test-runs-query.js | 7 ++++--- webapp/components/wpt-flags.js | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/webapp/components/test-runs-query.js b/webapp/components/test-runs-query.js index dcbf0276490..91283424149 100644 --- a/webapp/components/test-runs-query.js +++ b/webapp/components/test-runs-query.js @@ -6,13 +6,14 @@ import { pluralize } from './pluralize.js'; import { Channels, DefaultProductSpecs, ProductInfo } from './product-info.js'; import { QueryBuilder } from './results-navigation.js'; +import { WPTFlags } from './wpt-flags.js'; const testRunsQueryComputer = 'computeTestRunQueryParams(shas, aligned, master, labels, productSpecs, to, from, maxCount, offset, view)'; -const TestRunsQuery = (superClass, opt_queryCompute) => class extends QueryBuilder( +const TestRunsQuery = (superClass, opt_queryCompute) => class extends WPTFlags(QueryBuilder( ProductInfo(superClass), - opt_queryCompute || testRunsQueryComputer) { + opt_queryCompute || testRunsQueryComputer)) { static get properties() { return { @@ -172,7 +173,7 @@ const TestRunsQuery = (superClass, opt_queryCompute) => class extends QueryBuild } showDefaultView(view, q) { - return !view || !q || !q.includes('interop-202'); + return !this.anyInteropView && (!view || !q || !q.includes('interop-202')); } parseQuery(query) { diff --git a/webapp/components/wpt-flags.js b/webapp/components/wpt-flags.js index 6263f5f00ce..225ce6b56df 100644 --- a/webapp/components/wpt-flags.js +++ b/webapp/components/wpt-flags.js @@ -50,6 +50,7 @@ Object.defineProperty(wpt, 'ClientSideFeatures', { 'structuredQueries', 'triageMetadataUI', 'webPlatformTestsLive', + 'anyInteropView', ]; } }); @@ -258,6 +259,11 @@ class WPTFlagsEditor extends FlagsEditorClass(/*environmentFlags*/ false) { Enable Browser Specific Failures graph + + + Allow Interop View to be selected for any result set. + + `; }