forgejo-federation/routers/user/setting
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
..
account.go Add Ability for User to Customize Email Notification Frequency (#7813) 2019-08-29 17:05:42 +03:00
account_test.go Splitted the user settings code into several files to be more maintainable (#3968) 2018-05-17 12:05:00 +08:00
applications.go Hash App token (#6724) 2019-05-04 11:45:34 -04:00
keys.go fix missing data on redirects (#3975) 2018-06-18 14:24:45 -04:00
main_test.go Splitted the user settings code into several files to be more maintainable (#3968) 2018-05-17 12:05:00 +08:00
oauth2.go OAuth2 Grant UI (#6625) 2019-04-17 16:18:16 +08:00
profile.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
security.go fix bug when deleting a linked account will removed all (#5989) 2019-02-07 01:51:23 -05:00
security_openid.go fix missing data on redirects (#3975) 2018-06-18 14:24:45 -04:00
security_twofa.go Fixed ineffectual assignments (#7555) 2019-07-22 17:35:53 +08:00
security_u2f.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00