1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-06 04:41:01 +01:00
phorge-phorge/src/applications/almanac
epriestley 6556536d06 Allow repository cluster bindings to be marked as not "writable", making them read-only
Summary:
Depends on D19356. Fixes T10883. Ref T13120.

  - Add a "writable" property to the bindings, defaulting to "true" with a nice dropdown.
  - When selecting hosts, allow callers to request a writable host.
  - If the caller wants a writable host, only return hosts if they're writable.
  - In SVN and Mercurial, we sometimes return only writable hosts when we //could// return read-only hosts, but figuring out if these request are read-only or read-write is currently tricky. Since these repositories can't really cluster yet, this shouldn't matter too much today.

Test Plan:
  - Without any config changes, viewed repositories via web UI and pushed/pulled via SSH and HTTP.
  - Made all nodes in the cluster read-only by disabling "writable", pulled and hit the web UI (worked), tried to push via SSH and HTTP (got errors about read-only).
  - Put everything back, pulled and pushed.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13120, T10883

Differential Revision: https://secure.phabricator.com/D19357
2018-04-12 16:10:36 -07:00
..
application Clean up some old cluster-ish documentation 2016-04-12 19:14:08 -07:00
capability Simplify locking of Almanac cluster services 2016-02-25 03:38:39 -08:00
conduit Provide "almanac.binding.search" and "almanac.binding.edit" 2018-04-11 10:37:38 -07:00
controller Make various small quality-of-life improvements for Almanac properties 2018-04-11 10:38:41 -07:00
editor Allow Almanac properties to be set and deleted via Conduit 2018-04-11 10:42:10 -07:00
engineextension Allow Almanac properties to be set and deleted via Conduit 2018-04-11 10:42:10 -07:00
management Remove dead "Service Lock" code from Almanac 2018-04-09 11:38:04 -07:00
phid Rough-in Almanac namespaces 2016-02-22 04:58:35 -08:00
property Modularize Almanac property transactions 2018-04-11 10:33:18 -07:00
query Make various small quality-of-life improvements for Almanac properties 2018-04-11 10:38:41 -07:00
servicetype Allow repository cluster bindings to be marked as not "writable", making them read-only 2018-04-12 16:10:36 -07:00
storage Make various small quality-of-life improvements for Almanac properties 2018-04-11 10:38:41 -07:00
typeahead Store Almanac "service types" instead of "service classes" 2016-02-26 06:21:50 -08:00
util Make repository daemon locks more granular and forgiving 2016-05-13 05:17:27 -07:00
view Separate button CSS classes 2017-06-05 20:14:34 +00:00
xaction Provide "almanac.binding.search" and "almanac.binding.edit" 2018-04-11 10:37:38 -07:00