-
Notifications
You must be signed in to change notification settings - Fork 19
Unintended Donations AB Test #1921
Unintended Donations AB Test #1921
Conversation
c09518c
to
2d4faf2
Compare
This reverts commit 4b8e38e.
adding idMismatch to the FE data fixed ts types fixed spec fixed spec more specs fixes specs
2d4faf2
to
2e374c2
Compare
def id_mismatch | ||
return false if recognized_member.nil? | ||
|
||
Rails.logger.info("current is '#{current_member}' and recognized is '#{@recognized_member.id}'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this for debugging/testing purposes and I will remove it in a follow-up PR after I test this on staging.
@@ -0,0 +1,5 @@ | |||
export default { | |||
experimentId: 'wXDP1ynuTQKHs6vVvMEj1A', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the testing is done on staging, I will update the experiment id with the production Id
const variant = window.google_optimize.get( | ||
unintendedDonationsExperiment.experimentId | ||
); | ||
console.log('variant', variant); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this for debugging/testing purposes, and I will remove it in a follow-up PR after testing it on staging.
this.props.experiments.find( | ||
e => (e.experimentId = unintendedDonationsExperiment.experimentId) | ||
) || {}; | ||
console.log(this.props); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this for debugging/testing purposes, and I will remove it in a follow-up PR after testing it on staging.
adding experiments to the reducers config renamed store prop updated prop applying variant logic refactor - use const instead of magic string fixed spacing removed blank line if there is not recognized member then we don't have any mismatch broken build raise error for debugging added log removed console log
c7ddcfd
to
f730351
Compare
This reverts commit 420c106.
export const SET_VARIANT = 'set_variant'; | ||
|
||
const initialState = { | ||
experiments: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using an array in case we have several experiments running at the same time in the future
Overview
id_mismatch
that indicates if the current user's id differs from the recognized member of the AKID on the query string.Ticket
https://app.asana.com/0/1119304937718815/1202042895794628/f
Videos
Here's a video of variant one when there is data on the cookies about a member and then we have a link with a different AKID.
Loom.Message.-.21.April.2022.mp4
Here's variant 0 with the same scenario described above. Everything remains the same and we show the member's data from the AKID on the URL no matter what.
Loom.Message.-.21.April.2022.1.mp4