Skip to content

fix(track): Send decisions for all experiments using an event when using track #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 28, 2018

Conversation

rashidsp
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Aug 27, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 4d38bb2 on rashid/fix_conversion_params into 29a511b on master.

@mikeproeng37
Copy link
Contributor

build

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes mostly look good. Just need to clean up the unit tests

@@ -253,6 +253,18 @@
expect(conversion_event.http_verb).to eq(:post)
end

it 'should create_conversion_event when Event is used in multiple experiments' do
@expected_conversion_params[:visitors][0][:snapshots][0][:decisions].push(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setup of this test is not very clear from just looking at this. Can you split this out into its own scenario with its own setup? Specifically, the scenario testing event tracking with multiple experiments.


conversion_event_params.push(single_snapshot)
event_object[:tags] = event_tags
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a check if event_tags has any item in it.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mikeproeng37 mikeproeng37 merged commit cc2ccb8 into master Aug 28, 2018
@mikeproeng37 mikeproeng37 deleted the rashid/fix_conversion_params branch September 7, 2018 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants