1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 16:00:59 +01:00
phorge-phorge/src/applications/settings
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
..
action Add semi-generic rate limiting infrastructure 2014-04-03 11:22:38 -07:00
application Redirect older "/panel/" settings URIs to modern location 2016-06-05 13:41:23 -07:00
controller Fix several issues with email-related global preferences 2016-06-14 12:35:31 -07:00
editor Allow users to unset "Editor", tailor short error messages properly on settings forms 2016-06-05 14:03:02 -07:00
extension Begin modularizing main menu items 2016-01-04 06:57:09 -08:00
panel Fix several issues with email-related global preferences 2016-06-14 12:35:31 -07:00
panelgroup Formalize and fully modularize settings panel groups 2016-06-04 14:39:11 -07:00
phid Make Settings modular and allow them to be EditEngine'd 2016-05-31 15:32:02 -07:00
query Fix several issues with email-related global preferences 2016-06-14 12:35:31 -07:00
quickmenu Fully modularize the "Quick Actions" menu 2016-06-05 10:32:01 -07:00
setting Fix several issues with email-related global preferences 2016-06-14 12:35:31 -07:00
storage Fix several issues with email-related global preferences 2016-06-14 12:35:31 -07:00