Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix[sdkCore][Symbols]: ENG-7640 Set preview to true only if its not a symbol call #3805

Merged
Changes from 1 commit
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
11 changes: 7 additions & 4 deletions packages/core/src/builder.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2630,16 +2630,19 @@ export class Builder {
}
}
}
if (this.preview) {
queryParams.preview = 'true';
}
const hasParams = Object.keys(queryParams).length > 0;

// TODO: option to force dev or qa api here
const host = this.host;

const keyNames = queue.map(item => encodeURIComponent(item.key!)).join(',');

const isSymbol = keyNames.includes('symbol');

if (this.preview && !isSymbol) {
anaghav2023 marked this conversation as resolved.
Show resolved Hide resolved
queryParams.preview = 'true';
}
const hasParams = Object.keys(queryParams).length > 0;

if (this.overrideParams) {
const params = omit(QueryString.parse(this.overrideParams), 'apiKey');
assign(queryParams, params);
Expand Down
Loading