1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/modules/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
..
cache.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cors.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
cron.go Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
database_sqlite.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database_test.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
git.go Support git.PATH entry in app.ini (#6772) 2019-07-07 03:26:56 -04:00
indexer.go Issue indexer queue redis support (#6218) 2019-04-08 12:05:15 +03:00
log.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
mailer.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
markup.go split setting.go to multiple files (#6154) 2019-03-16 11:12:44 +08:00
repository.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
service.go Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669) 2019-08-24 15:28:59 +03:00
session.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
setting.go Add Ability for User to Customize Email Notification Frequency (#7813) 2019-08-29 17:05:42 +03:00
webhook.go Add support for MS Teams webhooks (#6632) 2019-04-19 10:18:06 -04:00