Revert "propagate --onlyChanged through UI"
This reverts commit bfe75e45f4bd7827788531e0756ed989b1d298f5.
This commit is contained in:
parent
8de68512c6
commit
91ba44c46f
|
|
@ -39,7 +39,6 @@ export type TraceViewerRedirectOptions = {
|
|||
args?: string[];
|
||||
grep?: string;
|
||||
grepInvert?: string;
|
||||
onlyChanged?: string;
|
||||
project?: string[];
|
||||
workers?: number | string;
|
||||
headed?: boolean;
|
||||
|
|
@ -124,8 +123,6 @@ export async function installRootRedirect(server: HttpServer, traceUrls: string[
|
|||
params.append('grep', options.grep);
|
||||
if (options.grepInvert)
|
||||
params.append('grepInvert', options.grepInvert);
|
||||
if (options.onlyChanged)
|
||||
params.append('onlyChanged', options.onlyChanged);
|
||||
for (const project of options.project || [])
|
||||
params.append('project', project);
|
||||
if (options.workers)
|
||||
|
|
|
|||
|
|
@ -88,7 +88,6 @@ export interface TestServerInterface {
|
|||
locations?: string[];
|
||||
grep?: string;
|
||||
grepInvert?: string;
|
||||
onlyChanged?: string;
|
||||
testIds?: string[];
|
||||
headed?: boolean;
|
||||
workers?: number | string;
|
||||
|
|
|
|||
|
|
@ -164,7 +164,6 @@ async function runTests(args: string[], opts: { [key: string]: any }) {
|
|||
args,
|
||||
grep: opts.grep as string | undefined,
|
||||
grepInvert: opts.grepInvert as string | undefined,
|
||||
onlyChanged: opts.onlyChanged === true ? 'HEAD' : opts.onlyChanged,
|
||||
project: opts.project || undefined,
|
||||
headed: opts.headed,
|
||||
reporter: Array.isArray(opts.reporter) ? opts.reporter : opts.reporter ? [opts.reporter] : undefined,
|
||||
|
|
@ -192,7 +191,7 @@ async function runTests(args: string[], opts: { [key: string]: any }) {
|
|||
|
||||
config.cliArgs = args;
|
||||
config.cliGrep = opts.grep as string | undefined;
|
||||
config.cliOnlyChanged = getOnlyChangedArg(opts.onlyChanged);
|
||||
config.cliOnlyChanged = opts.onlyChanged === true ? 'HEAD' : opts.onlyChanged;
|
||||
config.cliGrepInvert = opts.grepInvert as string | undefined;
|
||||
config.cliListOnly = !!opts.list;
|
||||
config.cliProjectFilter = opts.project || undefined;
|
||||
|
|
|
|||
|
|
@ -335,7 +335,6 @@ class TestServerDispatcher implements TestServerInterface {
|
|||
config.cliArgs = params.locations || [];
|
||||
config.cliGrep = params.grep;
|
||||
config.cliGrepInvert = params.grepInvert;
|
||||
config.cliOnlyChanged = params.onlyChanged;
|
||||
config.cliProjectFilter = params.projects?.length ? params.projects : undefined;
|
||||
config.testIdMatcher = testIdSet ? id => testIdSet.has(id) : undefined;
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ const queryParams = {
|
|||
args: searchParams.getAll('arg'),
|
||||
grep: searchParams.get('grep') || undefined,
|
||||
grepInvert: searchParams.get('grepInvert') || undefined,
|
||||
onlyChanged: searchParams.get('onlyChanged') || undefined,
|
||||
projects: searchParams.getAll('project'),
|
||||
workers: searchParams.get('workers') || undefined,
|
||||
timeout: searchParams.has('timeout') ? +searchParams.get('timeout')! : undefined,
|
||||
|
|
@ -283,7 +282,6 @@ export const UIModeView: React.FC<{}> = ({
|
|||
locations: queryParams.args,
|
||||
grep: queryParams.grep,
|
||||
grepInvert: queryParams.grepInvert,
|
||||
onlyChanged: queryParams.onlyChanged,
|
||||
testIds: [...testIds],
|
||||
projects: [...projectFilters].filter(([_, v]) => v).map(([p]) => p),
|
||||
workers: queryParams.workers,
|
||||
|
|
|
|||
Loading…
Reference in a new issue