CSR-514 Cleanup

This commit is contained in:
Katie 2022-08-09 13:27:46 -04:00
parent 2167c240bb
commit fdf17ce4bc
3 changed files with 3 additions and 12 deletions

View file

@ -36,14 +36,6 @@ export async function loadOrderIfPresent() {
update the cookie.
*/
export async function saveOrder() {
// TODO DELETE THIS, TEMP FOR TESTING
baseMixin.methods.dispatchStoreAction(storeActions.RUN_EXPERIMENTS_FOR_TRIGGER, {
userId: "test",
triggerEvent: "test",
triggerValue: "test"
})
// END DELETE
var saveOrderPromise;
if (store.getters.applicationUser.saveOrderPromise) {
// queue newest request after current saveOrderPromise resolves

View file

@ -37,14 +37,13 @@ const routes = [
return next(false);
}
// TODO CSR-514 UNCOMMENT CONDITION
// if (!store.getters.applicationUser.triggeredSiteEntry) {
if (!store.getters.applicationUser.triggeredSiteEntry) {
baseMixin.methods.dispatchStoreAction(storeActions.RUN_EXPERIMENTS_FOR_TRIGGER, {
userId: getDeviceIdValue(),
triggerEvent: experimentTriggers.SITE_ENTRY,
triggerValue: applicationConfig.SITE_ENTRY_TRIGGER_VALUE
})
// }
}
// If the saved session has timed out, clear the session, execute 404 logic.
if (getFunnelCookie() !== null && !isSavedSessionStillActive()) {

View file

@ -639,7 +639,7 @@ export const actions = {
experimentOrder: context.getters.experimentOrder
};
return globalMethods.callHttpClient({
globalMethods.callHttpClient({
method: endpoints.RunExperimentsForTrigger.method,
endpoint: endpoints.RunExperimentsForTrigger.url,
payload: payload,