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

Slack notifier: Alert the team when an AP testing session begins #165

Closed
5 of 6 tasks
alykat opened this issue Apr 9, 2024 · 0 comments
Closed
5 of 6 tasks

Slack notifier: Alert the team when an AP testing session begins #165

alykat opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request Priority: Normal
Milestone

Comments

@alykat
Copy link
Member

alykat commented Apr 9, 2024

AP makes its testing calendar available via spreadsheet on its customer service site. More helpfully, it also appears to be available in the API.

Documentation: https://developer.ap.org/ap-elections-api/docs/index.html#t=Customer_Testing_Schedule.htm&rhsearch=test&rhhlterm=test&rhsyns=%20

Endpoint: https://api.ap.org/v3/reports/Calendar-CustomerTesting2024-Live?format=json

Sample:

            {
                "testDate": "2024-04-08",
                "testDay": "Monday",
                "eventAndSystemDate": "2024-04-23",
                "electionEvents": "PA Presidential/State Primary",
                "activity": "Customer Testing",
                "testTimeET": "4:30 pm-5:30 pm"
            },
...
            {
                "testDate": "2024-04-28",
                "testDay": "Sunday",
                "eventAndSystemDate": "2024-04-28",
                "electionEvents": "PR Dem Presidential Primary",
                "activity": "Election Day"
            },

(with thanks to @brentajones for the references)

It would be useful to have a notifier that:

  • Runs on an interval to check the API for the latest testing calendar
  • At the start time for each testing session, notify the team election slack channel. Example messages:
    • AP: Customer Testing begins now — PA Presidential/State Primary (4:30pm-5:30pm)
    • AP: Election Day — PR Dem Presidential Primary

For future-proofing, we should set up the notifier using the team visualsdev account rather than one person's individual account.

Related: #16

All work happening in the https://github.com/nprapps/elections-bots repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: Normal
Projects
None yet
Development

No branches or pull requests

2 participants