Pass computeDefaultStrings to query server when compiling queries

This commit is contained in:
Andrew Eisenberg
2020-11-30 13:42:46 -08:00
parent f4624f3dbf
commit bfe4aa386c
4 changed files with 8 additions and 0 deletions

View File

@@ -150,6 +150,11 @@ export interface CompilationOptions {
* Whether to disable toString values in the results.
*/
noComputeToString: boolean;
/**
* Whether to ensure that elements that do not have a displayString
* get reported anyway. Useful for universal compilation options.
*/
computeDefaultStrings: boolean;
}
/**

View File

@@ -138,6 +138,7 @@ export class QueryInfo {
localChecking: false,
noComputeGetUrl: false,
noComputeToString: false,
computeDefaultStrings: true
},
extraOptions: {
timeoutSecs: qs.config.timeoutSecs

View File

@@ -168,6 +168,7 @@ describe('using the query server', function() {
localChecking: false,
noComputeGetUrl: false,
noComputeToString: false,
computeDefaultStrings: true
},
queryToCheck: qlProgram,
resultPath: COMPILED_QUERY_PATH,

View File

@@ -52,6 +52,7 @@ describe('run-queries', () => {
localChecking: false,
noComputeGetUrl: false,
noComputeToString: false,
computeDefaultStrings: true
},
extraOptions: {
timeoutSecs: 5