CSR-2179: remove unnecessary experiment logging from quote
This commit is contained in:
parent
070feb4115
commit
a4a25ad547
1 changed files with 0 additions and 30 deletions
|
|
@ -138,9 +138,6 @@ export default {
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||||
const experimentForLogging = store.getters.applicationUser.experiments.find(
|
|
||||||
(e) => e.universeName === experimentUniverses.RECAL_PRICE_REMOVAL
|
|
||||||
);
|
|
||||||
const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
storeActions.GET_WIPERS,
|
storeActions.GET_WIPERS,
|
||||||
{
|
{
|
||||||
|
|
@ -208,33 +205,6 @@ export default {
|
||||||
...servicePackageDiscountPart,
|
...servicePackageDiscountPart,
|
||||||
];
|
];
|
||||||
|
|
||||||
// If the recal experiment is found then log the experiment exposure.
|
|
||||||
const isRecalibrationOnOrder = containsLineItemWithPartType(
|
|
||||||
partTypeStrings.RECALIBRATION,
|
|
||||||
availableLineItems
|
|
||||||
);
|
|
||||||
const canSafeliteRecalibrate = nullSafeGlassParts.some((glassPart) => {
|
|
||||||
return glassPart.partType === "WINDSHIELD" && glassPart.canSafeliteRecalibrate;
|
|
||||||
});
|
|
||||||
if (
|
|
||||||
experimentForLogging !== undefined &&
|
|
||||||
isRecalibrationOnOrder &&
|
|
||||||
canSafeliteRecalibrate
|
|
||||||
) {
|
|
||||||
// Log experiment exposure
|
|
||||||
baseMixin.methods.dispatchStoreActionWithLogging(
|
|
||||||
storeActions.LOG_EXPERIMENT_EXPOSURE,
|
|
||||||
{
|
|
||||||
userId: getUserIdValue(),
|
|
||||||
sessionKey: getSessionKeyValue(),
|
|
||||||
pageName: to.query.fmgPage,
|
|
||||||
experiment: experimentForLogging,
|
|
||||||
},
|
|
||||||
"quote",
|
|
||||||
false
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// When calling pricing from the quote page, always use the cash parent account
|
// When calling pricing from the quote page, always use the cash parent account
|
||||||
baseMixin.methods.dispatchStoreAction(
|
baseMixin.methods.dispatchStoreAction(
|
||||||
storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
|
storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue