Skip to content

Commit

Permalink
add project logical viewer for project or user function
Browse files Browse the repository at this point in the history
  • Loading branch information
goddenrich committed Oct 15, 2024
1 parent ac1eb66 commit 3d55843
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ should find them.
* We allow this page to be `frameable` so we can embed it in other dashboards
* *Change* to ProjectBoardTaskCard
* We display the current status on the task.
* Add project logical viewer for project or user function so we can do viewerprojects() in queries.
* Repository
* Pointing clone URIs to the Phabricator URI even if a repo is hosted elsewhere.
* added buildable interface for push log for harbormaster builds for refs
Expand Down
2 changes: 2 additions & 0 deletions src/__phutil_library_map__.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'PhabricatorDaemonsPrometheusMetric' => 'applications/daemon/metric/PhabricatorDaemonsPrometheusMetric.php',
'PhabricatorGoogleAuthProvider' => 'applications/auth/provider/PhabricatorGoogleAuthProvider.php',
'PhabricatorProjectBoardViewController' => 'applications/project/controller/PhabricatorProjectBoardViewController.php',
'PhabricatorProjectOrUserFunctionDatasource' => 'applications/project/typeahead/PhabricatorProjectOrUserFunctionDatasource.php',
'PhabricatorPrometheusApplication' => 'applications/prometheus/application/PhabricatorPrometheusApplication.php',
'PhabricatorPrometheusMetric' => 'applications/prometheus/metrics/PhabricatorPrometheusMetric.php',
'PhabricatorPrometheusMetricCounter' => 'applications/prometheus/metrics/PhabricatorPrometheusMetricCounter.php',
Expand Down Expand Up @@ -64,6 +65,7 @@
'PhabricatorDaemonsPrometheusMetric' => 'PhabricatorPrometheusMetricGauge',
'PhabricatorGoogleAuthProvider' => 'PhabricatorOAuth2AuthProvider',
'PhabricatorProjectBoardViewController' => 'PhabricatorProjectBoardController',
'PhabricatorProjectOrUserFunctionDatasource' => 'PhabricatorTypeaheadCompositeDatasource',
'PhabricatorPrometheusApplication' => 'PhabricatorApplication',
'PhabricatorPrometheusMetric' => 'Phobject',
'PhabricatorPrometheusMetricCounter' => 'PhabricatorPrometheusMetric',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

final class PhabricatorProjectOrUserFunctionDatasource
extends PhabricatorTypeaheadCompositeDatasource {

public function getBrowseTitle() {
return pht('Browse Users and Projects');
}

public function getPlaceholderText() {
return pht('Type a user, project name, or function...');
}

public function getComponentDatasources() {
return array(
new PhabricatorViewerDatasource(),
new PhabricatorPeopleDatasource(),
new PhabricatorProjectDatasource(),
new PhabricatorProjectMembersDatasource(),
// TM CHANGES
new PhabricatorProjectLogicalViewerDatasource(),
// TM CHANGES END
new PhabricatorProjectUserFunctionDatasource(),
);
}


}

0 comments on commit 3d55843

Please sign in to comment.