colorstackorg / oyster

Monorepo that houses ColorStack's core product software.
MIT License
241 stars 109 forks source link

Create job to send mass SMS notifications 👥 #472

Open tomas-salgado opened 2 weeks ago

tomas-salgado commented 2 weeks ago

Description

We want to create a job that takes all the existing phone numbers in the database and sends a text notification utilizing Twilio.

Acceptance Criteria

Additional Context

We will want to add this code within a new directory named twilio within the path packages/core/src/modules.

This will be the first integration of Twilio with Oyster(!) so this will require some research-here are the Twilio docs. Feel free to check out the Slack use-cases to see examples of Slack jobs.

Habeebah157 commented 2 weeks ago

I would like to do this one.

Habeebah157 commented 2 weeks ago

Hello, I am not sure if I am checking wrong but phone numbers would be under students right? Like the students numbers. I do it as one of the students fields. I also tried searching phone number in the codebase to give me a clue of what it could be but could not find it. There is nothing like phone number in the oyster channel on slack either.

tomas-salgado commented 2 weeks ago

Just left a comment about this in your Slack message, but basically PR is partly dependent on issue #477, since that issue will add the field phone_number to the database. While that is still in progress, you can add the field locally by adding the migration script here (which is from the PR that's up for issue #477).