Skip to content

Commit

Permalink
feat: tip rate optimization test code removed (#5077)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva authored Nov 20, 2023
1 parent 249e2c6 commit d609987
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/pages/Checkout/CheckoutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ import KvButton from '~/@kiva/kv-components/vue/KvButton';
const ASYNC_CHECKOUT_EXP = 'async_checkout_rollout';
const CHECKOUT_LOGIN_CTA_EXP = 'checkout_login_cta';
const GUEST_CHECKOUT_CTA_EXP = 'guest_checkout_cta';
const TIP_RATE_OPTIMIZATION_EXP = 'tip_rate_optimization';
// Query to gather user Teams
const myTeamsQuery = gql`query myTeamsQuery {
Expand Down Expand Up @@ -402,7 +401,6 @@ export default {
currentTime: Date.now(),
currentTimeInterval: null,
loginButtonExperimentVersion: null,
tipRateOptimizationExperimentVersion: null,
isGuestCheckoutEnabled: false,
guestCheckoutCTAExpActive: false,
checkingOutAsGuest: false,
Expand Down Expand Up @@ -461,10 +459,6 @@ export default {
client.query({ query: experimentAssignmentQuery, variables: { id: CHECKOUT_LOGIN_CTA_EXP } }),
client.query({ query: experimentAssignmentQuery, variables: { id: GUEST_CHECKOUT_CTA_EXP } }),
client.query({ query: experimentAssignmentQuery, variables: { id: FIVE_DOLLARS_NOTES_EXP } }),
client.query({
query: experimentAssignmentQuery,
variables: { id: TIP_RATE_OPTIMIZATION_EXP }
}),
]);
});
},
Expand Down Expand Up @@ -564,23 +558,6 @@ export default {
);
}
// MARS-452 tip rate optimization experiment
if (this.myId !== null && this.myId !== undefined) {
const tipRateOptimizationExperiment = this.apollo.readFragment({
id: `Experiment:${TIP_RATE_OPTIMIZATION_EXP}`,
fragment: experimentVersionFragment,
}) || {};
this.tipRateOptimizationExperimentVersion = tipRateOptimizationExperiment.version;
if (this.tipRateOptimizationExperimentVersion) {
this.$kvTrackEvent(
'Checkout',
'EXP-MARS-452-JUL2023',
this.tipRateOptimizationExperimentVersion,
);
}
}
if (this.eligibleForGuestCheckout) {
const guestCheckoutCTAExperiment = this.apollo.readFragment({
id: `Experiment:${GUEST_CHECKOUT_CTA_EXP}`,
Expand Down

0 comments on commit d609987

Please sign in to comment.