1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 04:32:43 +01:00
phorge-phorge/src/applications/diffusion/controller
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
..
DiffusionBlameController.php Colorize lines in blame under DocumentEngine, to show relative age of changes 2018-04-09 06:11:47 -07:00
DiffusionBranchTableController.php Mobile layouts for Diffusion 2017-08-30 12:28:00 -07:00
DiffusionBrowseController.php Mostly make blame work with DocumentEngine 2018-04-09 04:48:21 -07:00
DiffusionChangeController.php Update Diffusion UI 2016-03-17 12:05:14 -07:00
DiffusionCloneController.php Move Clone Repository to Dialog 2017-07-11 13:16:47 -07:00
DiffusionCommitBranchesController.php Show first 10 branches, then "More Branches" for commits on huge numbers of branches 2016-02-16 15:10:01 -08:00
DiffusionCommitController.php Make the filetree view width sticky across show/hide and reload 2018-02-22 13:47:41 -08:00
DiffusionCommitEditController.php Replace old commit edit controller with new EditEngine controller 2017-01-11 10:37:53 -08:00
DiffusionCommitListController.php Merge "Audit" more completely into "Diffusion" 2017-01-11 16:28:42 -08:00
DiffusionCommitTagsController.php Show first 10 branches, then "More Branches" for commits on huge numbers of branches 2016-02-16 15:10:01 -08:00
DiffusionCompareController.php Mobile layouts for Diffusion 2017-08-30 12:28:00 -07:00
DiffusionController.php Fix broken suggestion/validation for Owners paths in repositories with short names 2018-03-07 18:31:25 -08:00
DiffusionDiffController.php Modernize most somewhat-weird Diffusion controllers 2016-01-05 14:00:57 -08:00
DiffusionDocumentController.php Move Diffusion browse rendering to DocumentEngine, breaking almost all features 2018-04-09 04:46:26 -07:00
DiffusionExternalController.php Fix two issues with callsign-free repositories 2016-02-26 06:13:46 -08:00
DiffusionGraphController.php Mobile layouts for Diffusion 2017-08-30 12:28:00 -07:00
DiffusionHistoryController.php Add branch, tag info to Diffusion Headers 2017-08-16 12:16:15 -07:00
DiffusionInlineCommentController.php Correctly clear draft markers when deleting an inline comment 2015-07-21 11:36:46 -07:00
DiffusionInlineCommentPreviewController.php Touch up PHP/JS interactions for inline comments 2015-03-27 17:08:31 -07:00
DiffusionLastModifiedController.php Simplify Diffusion Browse Table 2017-07-09 09:43:57 -07:00
DiffusionLintController.php Set border on crumbs on Lint page 2017-08-16 12:19:35 -07:00
DiffusionLogController.php Add a basic view for repository pull logs 2018-01-23 14:10:10 -08:00
DiffusionPathCompleteController.php Modernize most somewhat-weird Diffusion controllers 2016-01-05 14:00:57 -08:00
DiffusionPathTreeController.php Modernize most somewhat-weird Diffusion controllers 2016-01-05 14:00:57 -08:00
DiffusionPathValidateController.php Use a tokenizer, not a gigantic poorly-ordered "<select />", to choose repositories in Owners 2018-03-07 20:57:24 -08:00
DiffusionPullLogListController.php Make push log "flags", "reject code" human readable; add crumbs to pull/push logs 2018-01-30 15:45:58 -08:00
DiffusionPushEventViewController.php Add a basic view for repository pull logs 2018-01-23 14:10:10 -08:00
DiffusionPushLogListController.php Make push log "flags", "reject code" human readable; add crumbs to pull/push logs 2018-01-30 15:45:58 -08:00
DiffusionRefTableController.php Modernize more Diffusion controllers 2016-01-05 14:00:20 -08:00
DiffusionRepositoryController.php Add a basic view for repository pull logs 2018-01-23 14:10:10 -08:00
DiffusionRepositoryDefaultController.php Redirect /source/x (no slash) to /source/x/ (canonical) when viewer is logged out and "x" is public 2016-12-20 07:48:20 -08:00
DiffusionRepositoryEditActivateController.php Provide more UI guidance when creating repositories 2016-05-11 06:35:35 -07:00
DiffusionRepositoryEditController.php Simplify Create Repository page 2017-08-15 11:05:50 -07:00
DiffusionRepositoryEditDangerousController.php Provide basic support for Subversion revprops 2016-06-24 13:43:32 -07:00
DiffusionRepositoryEditDeleteController.php Sort out EditController / ManageController / EditproController Diffusion hierarchy 2016-05-10 05:14:09 -07:00
DiffusionRepositoryEditEnormousController.php Prevent enormous changes from being pushed to repositoires by default 2018-01-04 10:02:29 -08:00
DiffusionRepositoryEditUpdateController.php Update Repository Management pages to new fixed UI 2017-09-05 19:01:27 -07:00
DiffusionRepositoryListController.php Fix two strings with missing pht() 2017-04-07 10:07:01 -07:00
DiffusionRepositoryManageController.php Update Repository Management pages to new fixed UI 2017-09-05 19:01:27 -07:00
DiffusionRepositoryManagePanelsController.php Update Repository Management pages to new fixed UI 2017-09-05 19:01:27 -07:00
DiffusionRepositoryProfilePictureController.php Add more repo images 2017-08-08 17:51:15 -07:00
DiffusionRepositoryTestAutomationController.php Sort out EditController / ManageController / EditproController Diffusion hierarchy 2016-05-10 05:14:09 -07:00
DiffusionRepositoryURICredentialController.php Fill in new URI credential edit web UI interfaces 2016-05-02 04:26:13 -07:00
DiffusionRepositoryURIDisableController.php Prevent users from disabling repository builtin URIs 2016-05-12 12:09:23 -07:00
DiffusionRepositoryURIEditController.php Flesh out more web UI actions for new URI interface 2016-04-29 17:16:15 -07:00
DiffusionRepositoryURIViewController.php Remove completely pointless load of every repository when viewing a repository URI 2018-02-08 12:47:48 -08:00
DiffusionServeController.php Allow repository cluster bindings to be marked as not "writable", making them read-only 2018-04-12 16:10:36 -07:00
DiffusionSymbolController.php Provide character position information to symbol queries 2018-01-26 13:01:57 -08:00
DiffusionTagListController.php Add branch, tag info to Diffusion Headers 2017-08-16 12:16:15 -07:00