Skip to content
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

Allow methodologies to configure the test name #1251

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tomrf1
Copy link
Member

@tomrf1 tomrf1 commented Nov 22, 2024

A previous PR introduced the ability to configure more than 1 methodology per message test. E.g. AB test vs Bandit test.
If more than one methodology is configured then the the audience is split evenly between the methodologies. Each methodology is tracked separately with a different test name.
We haven't used this yet as it's not quite ready and it's not available in the RRCP tools.

This PR modifies the logic a little.
Instead of SDC having to generate a test name for each methodology, we instead add a testName field to the methodology model, so that the RRCP can define the names for tracking.
This test name is used in two ways:

  1. for tracking views/acquisitions
  2. for fetching sample data for the bandit

@tomrf1 tomrf1 requested a review from a team as a code owner November 22, 2024 11:41
@@ -84,14 +84,6 @@ const selectVariantWithMethodology = <V extends Variant, T extends Test<V>>(
return selectVariantUsingMVT<V, T>(test, mvtId);
};

const addMethodologyToTestName = (testName: string, methodology: Methodology): string => {
Copy link
Member Author

Choose a reason for hiding this comment

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

no longer necessary as we can use the testName from the methodology

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.

1 participant