gerrit/gerrit-reviewdb
Dave Borowitz 0a741dd21c Store preferred download scheme as arbitrary strings
Although plugins can register download schemes with arbitrary names,
the getter/setter in AccountGeneralPreferences were allowing only a
specific enum type corresponding to the core download schemes. Get rid
of that enum type, and store arbitrary strings in the database. To
avoid a schema upgrade (which would be an annoying multi-step process
for a zero-downtime upgrade), convert to/from the old enum-string
values in AccountGeneralPreferences. Everywhere else, use the key from
the scheme map, e.g. "anonymous http" instead of "ANON_HTTP". This
eliminates the special-case code when sending RPCs from the client,
and avoids weird undocumented behavior in the set preferences REST API
call.

Change-Id: I3e2397d8dfa15d20329cc83e1e3fe069c8e021c4
2015-09-08 08:44:55 -04:00
..
src Store preferred download scheme as arbitrary strings 2015-09-08 08:44:55 -04:00
BUCK Add Documentation:js_licenses.txt for JavaScript 2015-06-25 14:26:07 -07:00