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 default template campaigns #1361

Open
ajohn25 opened this issue Aug 23, 2022 · 6 comments · May be fixed by #1662
Open

Add default template campaigns #1361

ajohn25 opened this issue Aug 23, 2022 · 6 comments · May be fixed by #1662
Labels
additions: feature 🆕 New feature or request platform: node 🔅 Related to Node backend platform: react ⚛️ Related to React client application

Comments

@ajohn25
Copy link
Contributor

ajohn25 commented Aug 23, 2022

Is your feature request related to a problem? Please describe.
Template campaigns are intended to be distributed widely to Spoke users. However, adding them to instances currently requires manual work to copy scripts and campaign variables separately.

Describe the solution you'd like
A set of template campaigns that are automatically added to instances without requiring manual work to transfer them from instance to instance.

Describe alternatives you've considered
A "copy template" button that could make copying templates between instances easier.

Additional context
These default templates should also be locked for editing to avoid conflicts between user edits and any updates made to the original scripts.

@ajohn25 ajohn25 added additions: feature 🆕 New feature or request platform: react ⚛️ Related to React client application platform: node 🔅 Related to Node backend labels Aug 23, 2022
@ajohn25
Copy link
Contributor Author

ajohn25 commented Aug 23, 2022

2 implementations we've discussed:

  1. Create a migration to add default templates to all_campaign. If changes need to be made to these templates, updates will require a new migration to be written as well as a new Spoke release.
  2. Maintain a JSON document that contains the set of default templates in a public S3 bucket. A daily running graphile-worker job can upsert these templates into the DB. If changes need to be made to these templates, they can be synced to all instances by edits to the document.

@bchrobot
Copy link
Member

A variation on 2 is to have the JSON (or YAML) manifest publicly accessible (GCS bucket or GitHub pages for this repo) and then have a "Create from Library" option that lets the user pick from the list. Rather than loading everything into Spoke ahead of time.

@bchrobot
Copy link
Member

bchrobot commented Sep 8, 2022

A variation on 2 is to have the JSON (or YAML) manifest publicly accessible (GCS bucket or GitHub pages for this repo) and then have a "Create from Library" option that lets the user pick from the list. Rather than loading everything into Spoke ahead of time.

@politics-rewired/organizing thoughts on the above?

@kohlee
Copy link

kohlee commented Sep 8, 2022

@bchrobot We like that!
There could be a third option from the create campaign + with "Create from Library" or "Create from Spoke Rewired Library"

@henryk1229 henryk1229 self-assigned this Jul 27, 2023
@henryk1229 henryk1229 linked a pull request Aug 11, 2023 that will close this issue
2 tasks
@henryk1229
Copy link
Contributor

@kohlkenn @politics-rewired/client-success I'm starting implementation of the Campaign Library mentioned above - I'd love to have some examples of potential "default campaigns" to use for testing; specifically the title, interaction steps and campaign variables for campaigns that might be included in the library.

@henryk1229
Copy link
Contributor

pinging @ajohn25 about the above as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
additions: feature 🆕 New feature or request platform: node 🔅 Related to Node backend platform: react ⚛️ Related to React client application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants