-
Notifications
You must be signed in to change notification settings - Fork 25
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
[GH-103] Add event reminder subscriptions to settings panel #120
Conversation
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.
LGTM, mainly just a request to rename notification_setting
to something more specific
} | ||
|
||
func (s *notificationSetting) IsDisabled(foreignValue interface{}) bool { | ||
return foreignValue == "false" |
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.
Maybe reference these as constants like BOOL_STRING_FALSE
?
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.
I am making in parallel some changes on how to handle slack attachment context, and therefore how to pass this value here. Long story short, marshaling and unmarshaling the values as jsons. You can see some of that implementation here.
I will leave this as it is, and change it in the future when those changes are in place.
(not removing the Dev Review yet for @mickmister's feedback) |
…Cal, and return notification setting directly
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.
LGTM 👍
/update-branch |
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
==========================================
- Coverage 24.67% 23.96% -0.72%
==========================================
Files 65 66 +1
Lines 2545 2621 +76
==========================================
Hits 628 628
- Misses 1841 1917 +76
Partials 76 76
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
==========================================
- Coverage 25.01% 24.29% -0.73%
==========================================
Files 65 66 +1
Lines 2550 2626 +76
==========================================
Hits 638 638
- Misses 1832 1908 +76
Partials 80 80
Continue to review full report at Codecov.
|
Tested and passed
@larkox note that I did see an issue here but, it was not related to the settings panel. Created #148 to address. |
Summary
Add event reminder subscriptions to settings panel
Ticket Link
Fix #103