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 broadcasts #127

Open
stympy opened this issue Feb 26, 2021 · 2 comments
Open

Add broadcasts #127

stympy opened this issue Feb 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@stympy
Copy link
Member

stympy commented Feb 26, 2021

We have some code that we use at Honeybadger for sending broadcasts with Heya:

https://gist.github.com/stympy/3d76041365a61085ddcf01a3461f65f1

We should bring that into Heya, and also have a web UI for sending broadcasts... perhaps a mountable app like sidekiq has. Maybe a basic V1 could just have a text box for taking the markdown content of the email, and then some way to specify a list of recipients. An ActiveRecord query to run via eval? A list of user ids? Suggestions are welcome. :)

@stympy stympy added enhancement New feature or request help wanted Extra attention is needed labels Feb 26, 2021
@joshuap
Copy link
Member

joshuap commented Feb 26, 2021

I kind of like the list of user ids option as a temporary UI. We'll want some kind of query builder eventually (with the ability to save named queries/segments). 🤔

I had considered adding "saved segments" which would let you define segments using a similar method to campaign segments, but the problem with that is if you allow arbitrary Ruby segments, you need to maintain the members in a separate table (e.g. users would need to be added/removed automatically via callbacks)— assuming we wouldn't want to iterate over every user in the database when displaying the segment or sending a broadcast. ;)

@joshuap joshuap removed the help wanted Extra attention is needed label May 24, 2021
@johnknapp
Copy link

Ahoy @stympy and @joshuap, super excited and impressed with heya! We're looking at using it to roll our own emailer and this gist looks handy! We're just breaking ground so I suspect you'll be hearing more from us in future issues and PRs. Cheers, JK

@joshuap joshuap mentioned this issue Oct 18, 2022
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

3 participants