Skip to content

Commit

Permalink
clients(proto): don't filter channel from configSettings (#9554)
Browse files Browse the repository at this point in the history
  • Loading branch information
exterkamp authored and brendankenny committed Aug 15, 2019
1 parent 6861412 commit f552253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/lib/proto-preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ function processForProto(lhr) {
// 'ignore unknown fields' in the language of conversion.
if (reportJson.configSettings) {
// The settings that are in both proto and LHR
const {emulatedFormFactor, locale, onlyCategories} = reportJson.configSettings;
const {emulatedFormFactor, locale, onlyCategories, channel} = reportJson.configSettings;

// @ts-ignore - intentionally only a subset of settings.
reportJson.configSettings = {emulatedFormFactor, locale, onlyCategories};
reportJson.configSettings = {emulatedFormFactor, locale, onlyCategories, channel};
}

// Remove runtimeError if it is NO_ERROR
Expand Down
1 change: 1 addition & 0 deletions proto/sample_v2_round_trip.json
Original file line number Diff line number Diff line change
Expand Up @@ -3947,6 +3947,7 @@
}
},
"configSettings": {
"channel": "cli",
"emulatedFormFactor": "mobile",
"locale": "en-US",
"onlyCategories": null
Expand Down

0 comments on commit f552253

Please sign in to comment.