You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 years ago
..
auth Abort syncrhonization from LDAP source if there is some error. (#7960) 5 years ago
avatar Improve handling of non-square avatars (#7025) 5 years ago
base Use gitea forked macaron (#7933) 5 years ago
cache Use gitea forked macaron (#7933) 5 years ago
charset Convert files to utf-8 for indexing (#7814) 5 years ago
context Use gitea forked macaron (#7933) 5 years ago
cron Move status table to cron package (#7370) 5 years ago
generate Integrate OAuth2 Provider (#5378) 5 years ago
git Fixes #7945 - makes sure we are only getting tag refs (#7990) 5 years ago
gzip Use gitea forked macaron (#7933) 5 years ago
highlight Add a lot of extension to language mappings for syntax highlights (#7741) 5 years ago
httplib Add golangci (#6418) 5 years ago
indexer Use gitea forked macaron (#7933) 5 years ago
lfs Use gitea forked macaron (#7933) 5 years ago
log Removed unnecessary conversions (#7557) 5 years ago
mailer Add golangci (#6418) 5 years ago
markup Use gitea forked macaron (#7933) 5 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations fix bug when migrating a private repository (#7917) 5 years ago
minwinsvc Fix Git hooks not being executed on Windows when running as a service (#1149) 7 years ago
notification Add golangci (#6418) 5 years ago
options Use gitea forked macaron (#7933) 5 years ago
pprof Add golangci (#6418) 5 years ago
private Attempt to fix hook problem (#7854) 5 years ago
process Fix run command race (#1470) 7 years ago
public Use gitea forked macaron (#7933) 5 years ago
pull Display ui time with customize time location (#7792) 5 years ago
recaptcha Allow Recaptcha service url to be configured (#6820) 5 years ago
repofiles Use gitea forked macaron (#7933) 5 years ago
search Global code search support (#3664) 6 years ago
secret Integrate OAuth2 Provider (#5378) 5 years ago
session Use gitea forked macaron (#7933) 5 years ago
setting Add Ability for User to Customize Email Notification Frequency (#7813) 5 years ago
ssh Use gitea forked macaron (#7933) 5 years ago
structs swagger/fix: []string are not enum by swagger definition (#7916) 5 years ago
sync Use gitea forked macaron (#7933) 5 years ago
templates Use gitea forked macaron (#7933) 5 years ago
test Use gitea forked macaron (#7933) 5 years ago
timeutil Use gitea forked macaron (#7933) 5 years ago
upload Fix upload file type check (#7890) 5 years ago
user Add golangci (#6418) 5 years ago
util Display ui time with customize time location (#7792) 5 years ago
validation Use gitea forked macaron (#7933) 5 years ago