1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 17:58:47 +02:00
phorge-phorge/src/applications/people
epriestley 2e45021250 Fix several issues with email-related global preferences
Summary:
Ref T11098. Mixture of issues here:

  - Similar problem to D16112, where users with no settings at all could fail to fall back to the global defaults.
    - I made `UserPreferencesQuery` responsible for building defaults instead to simplify this, since we have 4 or 5 callsites which need to do it and they aren't easily reducible.
  - Handle cases where `metamta.one-mail-per-recipient` is off (and thus users can not have any custom settings) more explicitly.
  - When `metamta.one-mail-per-recipient` is off, remove the "Email Format" panel for users only -- administrators can still access it in global preferences.

Test Plan:
  - Deleted a user's preferences, changed globals, purged cache, made sure defaults reflected global defaults.
  - Changed global mail tags, sent mail to the user, verified it was dropped in accordinace with global settings.
  - Changed user's settings to get the mail instead, verified mail was sent.
  - Toggled user's Re / Vary settings, verified mail subject lines reflected user settings.
  - Disabled `metamta.one-mail-per-recipient`, verified user "Email Format" panel vanished.
  - Edited "Email Format" in single-mail-mode in global prefs as an administrator.
  - Sent more mail, verified mail respected new global settings.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11098

Differential Revision: https://secure.phabricator.com/D16118
2016-06-14 12:35:31 -07:00
..
application Fully modularize the "Quick Actions" menu 2016-06-05 10:32:01 -07:00
cache Fix several issues with email-related global preferences 2016-06-14 12:35:31 -07:00
capability People - refine permissions on creating new users 2015-02-05 16:47:09 -08:00
conduit Add a modern user.search Conduit API method 2016-05-22 05:54:31 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
controller Allow administrators to configure global default settings 2016-06-05 13:15:06 -07:00
customfield Fix object extraction from user profile blurbs 2016-02-01 09:46:45 -08:00
editor Use new modular temporary auth token constants in one-time login and password reset flows 2016-03-16 09:33:24 -07:00
engine Remove calendar panel in profile and make calendar box header a link to user's calendar 2016-05-23 11:32:56 -07:00
engineextension New People Hovercards 2016-02-11 15:41:55 -08:00
extension Convert user profile images into a standard cache 2016-06-05 08:52:15 -07:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
icon Add additional icons for User Profiles 2016-01-31 20:09:06 +00:00
lipsum Improve bin/lipsum UX 2015-12-24 09:06:35 -08:00
markup Improve some Phame custom domain remarkup and link behaviors 2016-06-02 06:28:06 -07:00
phid Always give users "fa-user" icons in tokenizers 2016-02-01 09:49:12 -08:00
policyrule Move some files around 2015-11-17 06:26:13 +11:00
profilepanel Fix spelling error 2016-04-11 09:26:08 -07:00
query Simplify user cache management of data forms 2016-06-05 08:53:27 -07:00
search Convert all "DocumentIndexers" into "FulltextEngines" 2015-12-21 17:25:23 -08:00
searchfield Add basic typechecking support to Conduit 2015-12-14 04:21:39 -08:00
storage Improve some settings-related performance 2016-06-05 10:32:23 -07:00
typeahead Add a basic remarkup typeahead for users and projects 2016-01-15 09:11:46 -08:00
view New People Hovercards 2016-02-11 15:41:55 -08:00