Closed ashkan18 closed 7 years ago
Great stuff. Need to update help
as well I believe and rebase.
Merged. Note that this doesn't allow you to say "do a sup on Monday once a month, then ask about it two weeks later", but I am not sure we want to support that prematurely.
👍 Do we need migration for existing teams
? or Mongoid default
does it for us?
I am pretty sure default
does it.
FYI this was deployed to https://sup.playplay.io/
awesome! thanks! 🙌
This broke something and fixed in https://github.com/dblock/slack-sup/commit/d463ffa79a2789f954d2d9c65909b60870c8340f.
You should generally also run the bot locally, the contributing doc tells you how to set it up (or should), catches paths like these.
good point! sorry about that, sure i was wondering how can i do end-to-end test locally. Will try it next time.
Instructions in https://github.com/dblock/slack-sup/blob/master/DEV.md
Problem
Currently follow up message is hardcoded to be sent on every Thursday, we need to make it configurable.
fixes https://github.com/dblock/slack-sup/issues/44
Solution
Followed the same pattern as
sup_wday
, added a newsup_followup_wday
field toTeam
which by default is set to 4 (Thursdays). Added newset followup
command which can setsup_followup_wday
for the team by admin.Question
wasn't sure if we want any type of validation on
sup_followup_wday
originally i thought it should be aftersup_wday
but that doesn't make sense if we want to send sup message on Thursday and followup on Monday for example. Let me know what you think.