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

Add params to campaign memberships #50

Open
joshuap opened this issue Feb 27, 2020 · 0 comments
Open

Add params to campaign memberships #50

joshuap opened this issue Feb 27, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@joshuap
Copy link
Member

joshuap commented Feb 27, 2020

Given a campaign TrialConversionCampaign, I want to be able to specify a trial end date when adding users to campaigns, so that I can reference the date in campaign emails (i.e. "Your trial is ending on 2020-02-26"). These values are unique to each user in the campaign, but may not be persisted on the user object--in this case, the value is part of an event that is triggering the campaign for the user. It would be nice to be able to add/override params like this:

TrialConversionCampaign.add(user, params: {
  ending_on: "2020-02-26"
})

I think this could be accomplished by adding a params jsonb/hstore/etc. column to the heya_campaign_memberships table. A nice extra would be to transparently support Global IDs for referencing objects.

@joshuap joshuap added the enhancement New feature or request label Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant