Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions webapp/components/test-runs-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions webapp/components/wpt-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Object.defineProperty(wpt, 'ClientSideFeatures', {
'structuredQueries',
'triageMetadataUI',
'webPlatformTestsLive',
'anyInteropView',
];
}
});
Expand Down Expand Up @@ -258,6 +259,11 @@ class WPTFlagsEditor extends FlagsEditorClass(/*environmentFlags*/ false) {
Enable Browser Specific Failures graph
</paper-checkbox>
</paper-item>
<paper-item>
<paper-checkbox checked="{{anyInteropView}}">
Allow Interop View to be selected for any result set.
</paper-checkbox>
</paper-item>
`;
}

Expand Down