Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Remove dead a/b testing (sixpack) code #790

Merged
merged 4 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export default {
dirs: [{ path: '~/components', extensions: ['vue'], pathPrefix: false }],
},
plugins: [
{ src: '~/plugins/ab-test-init.js', mode: 'client' },
{ src: '~/plugins/ga.js', mode: 'client' },
{ src: '~/plugins/url-change.js' },
{ src: '~/plugins/migration-notice.js' },
Expand Down
9 changes: 0 additions & 9 deletions src/ab-tests/experiments/donation-language.js

This file was deleted.

47 changes: 0 additions & 47 deletions src/ab-tests/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/constants/action-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const FETCH_MEDIA = 'FETCH_MEDIA'
export const FETCH_SINGLE_MEDIA_TYPE = 'FETCH_SINGLE_MEDIA_TYPE'
export const COPY_ATTRIBUTION = 'COPY_ATTRIBUTION'
export const REPORT_BUG = 'REPORT_BUG'
export const CONVERT_AB_TEST_EXPERIMENT = 'CONVERT_AB_TEST_EXPERIMENT'
export const HANDLE_MEDIA_ERROR = 'HANDLE_MEDIA_ERROR'
export const TOGGLE_FILTER = 'TOGGLE_FILTER'
export const UPDATE_SEARCH_TYPE = 'UPDATE_SEARCH_TYPE'
Expand Down
1 change: 0 additions & 1 deletion src/constants/mutation-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const SET_MEDIA = 'SET_MEDIA'
export const REPORT_BUG_START = 'REPORT_BUG_START'
export const REPORT_BUG_END = 'REPORT_BUG_END'
export const REPORT_BUG_FAILED = 'REPORT_BUG_FAILED'
export const JOINED_AB_TEST_EXPERIMENT = 'JOINED_AB_TEST_EXPERIMENT'
export const SET_SHOW_NOTIFICATION = 'SET_SHOW_NOTIFICATION'
export const SET_EMBEDDED = 'SET_EMBEDDED'
export const SET_REFERRED = 'SET_REFERRED'
Expand Down
1 change: 0 additions & 1 deletion src/constants/store-modules.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const RELATED = 'related'
export const ABTEST = 'abtest'
export const ACTIVE = 'active'
export const ATTRIBUTION = 'attribution'
export const PROVIDER = 'provider'
Expand Down
11 changes: 0 additions & 11 deletions src/plugins/ab-test-init.js

This file was deleted.

38 changes: 0 additions & 38 deletions src/store/abtest.js

This file was deleted.

1 change: 0 additions & 1 deletion src/store/user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import SessionId from '~/utils/session-id'

export const state = () => ({
abSessionId: SessionId('abSessionId', true),
usageSessionId: SessionId('usageSessionId'),
})
2 changes: 1 addition & 1 deletion src/utils/session-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const COOKIE_PREFIX = 'openverse_'
const generateSessionId = () => uuidv4()

/**
* Store a session in in a cookie for a/b tests and usage analytics. By default
* Store a session in in a cookie for usage analytics. By default
* it expires when a user closes the browser. If hasExpirationDate is set to
* true, the cookie will last for 7 days, which is determined by
* `COOKIE_EXPIRY_DAYS`.
Expand Down
133 changes: 0 additions & 133 deletions src/utils/sixpack.js

This file was deleted.

31 changes: 0 additions & 31 deletions test/unit/specs/ab-tests.spec.js

This file was deleted.