gitea/models/fixtures
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
..
access_token.yml
access.yml
action.yml
attachment.yml MySQL, Postgres integration tests in drone (#1638) 2017-04-30 14:30:12 +08:00
collaboration.yml
comment.yml
commit_status.yml Status-API (#1332) 2017-04-21 19:32:31 +08:00
deleted_branch.yml
deploy_key.yml
email_address.yml
follow.yml Fix and test for delete user (#1713) 2017-05-20 16:48:22 +08:00
gpg_key_import.yml
gpg_key.yml
hook_task.yml
issue_assignees.yml
issue_label.yml
issue_user.yml
issue_watch.yml
issue.yml
label.yml Bug fixes and unit tests for models/issue_label (#802) 2017-02-01 09:31:35 +08:00
login_source.yml Add LDAP integration tests (#3897) 2018-05-11 15:55:32 +08:00
milestone.yml
notice.yml
notification.yml
oauth2_application.yml
oauth2_authorization_code.yml
oauth2_grant.yml
org_user.yml
protected_branch.yml
public_key.yml
pull_request.yml
reaction.yml
release.yml
repo_indexer_status.yml
repo_redirect.yml
repo_topic.yml feat(repo): support search repository by topic name (#4505) 2018-09-13 10:33:48 +08:00
repo_unit.yml
repository.yml
review.yml
star.yml
stopwatch.yml
team_repo.yml
team_unit.yml
team_user.yml
team.yml
topic.yml
tracked_time.yml
two_factor.yml
u2f_registration.yml
user_open_id.yml
user.yml
watch.yml
webhook.yml