mirror of
1
Fork 0
forgejo/modules
Gary Kim f1c414882c Add Ability for User to Customize Email Notification Frequency (#7813)
* Add Backend Logic for Toggling Email Notification

This commit adds the backend logic for
allowing users to enable or disable email
notifications. The implementation ensures
that only issue notification emails get disabled
and important emails are still sent regardless
of the setting.

The UI to toggle this setting has not yet been
implemented.

* Add UI and complete user email notification enable

This commit completes the functionality to allow
users to disable their own email notifications.

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add Third Option for Only Email on Mention

Signed-off-by: Gary Kim <gary@garykim.dev>

* Readd NOT NULL to new preference string

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add Tests and Rewrite Comment

Signed-off-by: Gary Kim <gary@garykim.dev>

* Allow admin to set default email frequency

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add new config option to docs

Signed-off-by: Gary Kim <gary@garykim.dev>

* Fix a few mistakes

Signed-off-by: Gary Kim <gary@garykim.dev>

* Only update required columns

Signed-off-by: Gary Kim <gary@garykim.dev>

* Simplify an error check

Signed-off-by: Gary Kim <gary@garykim.dev>

* Make email_notification_preference column in DB be VARCHAR(20)

Signed-off-by: Gary Kim <gary@garykim.dev>

* Handle errors

Signed-off-by: Gary Kim <gary@garykim.dev>

* Update models/migrations/v93.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-08-29 17:05:42 +03:00
..
auth Abort syncrhonization from LDAP source if there is some error. (#7960) 2019-08-24 21:53:37 +03:00
avatar Improve handling of non-square avatars (#7025) 2019-05-25 14:46:14 +03:00
base Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cache Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
charset Convert files to utf-8 for indexing (#7814) 2019-08-15 20:07:28 +08:00
context Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cron Move status table to cron package (#7370) 2019-07-15 20:13:03 -04:00
generate Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
git Fixes #7945 - makes sure we are only getting tag refs (#7990) 2019-08-26 23:11:24 -04:00
gzip Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
highlight Add a lot of extension to language mappings for syntax highlights (#7741) 2019-08-05 23:48:31 +08:00
httplib Add golangci (#6418) 2019-06-12 15:41:28 -04:00
indexer Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
lfs Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
log Removed unnecessary conversions (#7557) 2019-07-23 19:50:39 +01:00
mailer Add golangci (#6418) 2019-06-12 15:41:28 -04:00
markup Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
metrics Prometheus endpoint (#5256) 2018-11-04 22:20:00 -05:00
migrations fix bug when migrating a private repository (#7917) 2019-08-20 21:21:07 +01:00
minwinsvc Fix Git hooks not being executed on Windows when running as a service (#1149) 2017-03-09 09:27:43 +08:00
notification Add golangci (#6418) 2019-06-12 15:41:28 -04:00
options Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
pprof Add golangci (#6418) 2019-06-12 15:41:28 -04:00
private Attempt to fix hook problem (#7854) 2019-08-14 12:25:05 +03:00
process Fix run command race (#1470) 2017-11-13 22:51:45 +08:00
public Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
pull Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
recaptcha Allow Recaptcha service url to be configured (#6820) 2019-05-02 16:09:39 +03:00
repofiles Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
search Global code search support (#3664) 2018-03-16 22:04:33 +08:00
secret Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
session Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
setting Add Ability for User to Customize Email Notification Frequency (#7813) 2019-08-29 17:05:42 +03:00
ssh Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
structs swagger/fix: []string are not enum by swagger definition (#7916) 2019-08-26 20:13:10 +02:00
sync Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
templates Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
test Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
timeutil Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
upload Fix upload file type check (#7890) 2019-08-17 13:10:17 +03:00
user Add golangci (#6418) 2019-06-12 15:41:28 -04:00
util Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
validation Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00