CodeTriage
CodeTriage copied to clipboard
Extract EmailFrequency Value Object
Represents the frequency with which email should be sent. Goal is to simplify the logic for "should we send an email now?", which compares user preference with user actions
In trying to understand the logic and tests in https://github.com/codetriage/codetriage/pull/591, I started moving some code around and ended up with this value object extraction. Not sure if it's wanted, but figured I'd share it nonetheless.
👍 just wanted an extra comment in there re: "WAIT" and why it's special