1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-26 13:39:08 +01:00
phorge-phorge/src/applications/people
epriestley 67482fd19d Continue modernizing application access to user preferences
Summary:
Ref T4103. This is just incremental cleanup:

  - Add "internal" settings, which aren't editable via the UI. They can still do validation and run through the normal pathway. Move a couple settings to use this.
  - Remove `getPreference()` on `PhabricatorUser`, which was a sort of prototype version of `getUserSetting()`.
  - Make `getUserSetting()` validate setting values before returning them, to improve robustness if we change allowable values later.
  - Add a user setting cache, since reading user settings was getting fairly expensive on Calendar.
  - Improve performance of setting validation for timezone setting (don't require building/computing all timezone offsets).
  - Since we have the cache anyway, make the timezone override a little more general in its approach.
  - Move editor stuff to use `getUserSetting()`.

Test Plan:
  - Changed search scopes.
  - Reconciled local and server timezone settings by ignoring and changing timezones.
  - Changed date/time settings, browsed Calendar, queried date ranges.
  - Verified editor links generate properly in Diffusion.
  - Browsed around with time/date settings looking at timestamps.
  - Grepped for `getPreference()`, nuked all the ones coming off `$user` or `$viewer` that I could find.
  - Changed accessiblity to high-contrast colors.
  - Ran all unit tests.
  - Grepped for removed constants.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4103

Differential Revision: https://secure.phabricator.com/D16015
2016-06-04 14:37:56 -07:00
..
application Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
cache Provide a general-purpose, modular user cache for settings and other similar data 2016-06-02 06:28:56 -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 Remove calendar panel in profile and make calendar box header a link to user's calendar 2016-05-23 11:32:56 -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 Begin modularizing main menu items 2016-01-04 06:57:09 -08: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 Add a modern user.search Conduit API method 2016-05-22 05:54:31 -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 Continue modernizing application access to user preferences 2016-06-04 14:37:56 -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