-
Notifications
You must be signed in to change notification settings - Fork 4
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
Switch to Consuming New Events API #50
Switch to Consuming New Events API #50
Conversation
Is / should this be an environment / configuration value instead of being hard coded? |
It's not, but it definitely can be! |
82607de
to
01bb64e
Compare
I've posted a couple of minor issues I've found with the Slack Bot + new Events API on Slack here. I'll post them here also:
The date range params aren't currently used by the Slack bot so really the only issue is the extra HTML tags popping up in posts. Since work has already been started in #19 to fix HTML tags in descriptions in whole I am wondering what the next steps are to get that work ready for launch. 🚀 Overall I feel good about the prospect of this PR being merged, but I wanted to make sure I'm being transparent with potential concerns so that whomever reviews this piece can make an informed decision. |
c044bfb
to
4734218
Compare
@ThorntonMatthewD we don't currently have a .env or .envrc on the live system. Should one of these be setup in advance of the next merge, or are these variables somehow securely sourced from inside the container using a key store? |
@allella How is the Slack token and signing secret currently stored? I can make sure the Events API URL is set up to pull from the same source for consistency. |
The environment are in docker-compose.yml
|
Okay, perfect! If you include this line in your local copy then that should take care of most of it. I'm not sure if watchtower will pick up on a change made in that manner, so a manual pull of the new image and a rebooting of the container may be in order (a It'll fall back to using the existing URL if for whatever reason the env var isn't able to be obtained. |
Alright, the new - EVENTS_API_URL=https://stage.hackgreenville.com/api/v0/events has been added to the production. Should we wait until this is merged to do the pull / down / up commands? |
Perfect! Thank you! Yes, once this PR is merged and the workflow completes with uploading the new Docker image then it will be all set to cycle the container. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
4734218
to
bfa1962
Compare
Summary
Sets the Slack bot to pull events data from the new Events API that is/will be hosted at https://stage.hackgreenville.com/api/v0/events.
This updated implementation is brought about by hackgvl/hackgreenville-com#186 and the incredible work of @bogdankharchenko.
Please do not merge this PR until the changes are live at the aforementioned address.