Page MenuHomePhabricator

Set reasonable defaults when displaying remote repository URIs.
ClosedPublic

Authored by frgtn on Nov 22 2013, 6:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 1:09 AM
Unknown Object (File)
Sun, Dec 29, 8:21 PM
Unknown Object (File)
Dec 5 2024, 1:09 AM
Unknown Object (File)
Nov 28 2024, 5:26 PM
Unknown Object (File)
Nov 26 2024, 10:00 AM
Unknown Object (File)
Nov 26 2024, 10:00 AM
Unknown Object (File)
Nov 26 2024, 10:00 AM
Unknown Object (File)
Nov 26 2024, 10:00 AM

Details

Summary

Show SSH user on git-over-ssh repositories and hide both username and password for other repos.

Test Plan

View repository details page in diffusion, Clone URI should appear with a username (taken from repo config) and any http(s) repos should be without usernames.

Diff Detail

Branch
remote_repo_uri_defaults
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/applications/auth/controller/PhabricatorEmailTokenController.php:54PHL1Unknown Symbol
Errorsrc/applications/calendar/view/AphrontCalendarMonthView.php:90PHL1Unknown Symbol
Errorsrc/applications/conpherence/controller/ConpherenceNotificationPanelController.php:75PHL1Unknown Symbol
Errorsrc/applications/differential/landing/DifferentialLandingToGitHub.php:85PHL1Unknown Symbol
Errorsrc/applications/differential/render/DifferentialChangesetHTMLRenderer.php:253PHL1Unknown Symbol
Errorsrc/applications/differential/view/DifferentialAddCommentView.php:189PHL1Unknown Symbol
Errorsrc/applications/differential/view/DifferentialInlineCommentView.php:233PHL1Unknown Symbol
Errorsrc/applications/differential/view/DifferentialLocalCommitsView.php:131PHL1Unknown Symbol
Errorsrc/applications/differential/view/DifferentialRevisionCommentView.php:90PHL1Unknown Symbol
Errorsrc/applications/differential/view/DifferentialRevisionUpdateHistoryView.php:205PHL1Unknown Symbol
Errorsrc/applications/diffusion/controller/DiffusionCommitController.php:747PHL1Unknown Symbol
Errorsrc/applications/diffusion/view/DiffusionCommentView.php:142PHL1Unknown Symbol
Errorsrc/applications/feed/builder/PhabricatorFeedBuilder.php:51PHL1Unknown Symbol
Errorsrc/applications/feed/controller/PhabricatorFeedDetailController.php:30PHL1Unknown Symbol
Errorsrc/applications/feed/controller/PhabricatorFeedListController.php:35PHL1Unknown Symbol
Errorsrc/applications/feed/controller/PhabricatorFeedPublicStreamController.php:28PHL1Unknown Symbol
Errorsrc/applications/herald/controller/HeraldTranscriptController.php:371PHL1Unknown Symbol
Errorsrc/applications/maniphest/controller/ManiphestTaskDescriptionPreviewController.php:21PHL1Unknown Symbol
Errorsrc/applications/maniphest/controller/ManiphestTaskDetailController.php:352PHL1Unknown Symbol
Errorsrc/applications/notification/controller/PhabricatorNotificationListController.php:48PHL1Unknown Symbol
Errorsrc/applications/notification/controller/PhabricatorNotificationPanelController.php:23PHL1Unknown Symbol
Errorsrc/applications/people/controller/PhabricatorPeopleProfileController.php:130PHL1Unknown Symbol
Errorsrc/applications/phame/controller/post/PhamePostEditController.php:146PHL1Unknown Symbol
Errorsrc/applications/phame/controller/post/PhamePostPreviewController.php:26PHL1Unknown Symbol
Errorsrc/applications/phriction/storage/PhrictionContent.php:78PHL1Unknown Symbol
Unit
Tests Passed

Event Timeline

Update libphutil to clear that lint.

src/applications/repository/storage/PhabricatorRepository.php
584

I think $this->shouldUseSSH() is a better check. We want to show username data for explicit SSH Git, too, e.g.:

ssh://git@github.com/blah/blah
frgtn updated this revision to Unknown Object (????).Nov 22 2013, 6:58 PM
  • Remove lint.
frgtn updated this revision to Unknown Object (????).Nov 22 2013, 7:21 PM
  • Use shouldUseSSH to check for ssh uris.
epriestley closed this revision.

Closed by commit rP4910a36563a6 (authored by @frgtn, committed by @epriestley).