1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-07 13:21:02 +01:00
phorge-phorge/src/applications/diffusion/query
Fabian Stelzer f33e2de092 make repo callsigns optional
Summary:
Ref T4245 Make repo callsigns optional
This is far from done and still very ugly. I'm just submitting it to check if i'm solving this in the right places.
Right now there's three places with duplicate code and building the identifierMap in the CommitQuery is very ugly.
If we only want to support this in the user frontend then i could hack it into the Markup rule itself and not touch the CommitQuery. Even uglier but more limited in scope...

Generally this approach will need a lot of "check this first and then try the other" in a few places.
I could move the Repository queries into a specialised PhabricatorRepositoryQuery method (withCallsignOrID) but i'm not sure about that.

Test Plan:
 - phid.lookup works with R1 and rTEST (which is the same repo)
 - R1 and rTEST euqally work in remarkup (tested in comments).
 - Reviewed the following syntax also all works:
rTEST
rTESTd773137a7cb9
rTEST:d773137a7cb9
R1
R1:d773137a7cb9
d773137a7cb9
{rTEST}
{rTESTd773137a7cb9}
{rTEST:d773137a7cb9}
{R1}
{R1:d773137a7cb9}
{d773137a7cb9}

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T4245

Differential Revision: https://secure.phabricator.com/D11050
2015-01-01 08:07:26 -08:00
..
__tests__ Allow parenthesis in author name 2014-03-06 11:28:46 -08:00
filecontent Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
lowlevel Use new FutureIterator instead of Futures 2014-12-30 23:13:38 +11:00
pathchange Don't show changes for commits which affect more than 1,000 files 2013-01-30 12:01:49 -08:00
pathid Various linter fixes. 2014-02-26 12:44:58 -08:00
rawdiff Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
DiffusionCommitQuery.php make repo callsigns optional 2015-01-01 08:07:26 -08:00
DiffusionLintCountQuery.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
DiffusionPathQuery.php Delete license headers from files 2012-11-05 11:16:51 -08:00
DiffusionQuery.php Give AlmanacServices a service type 2014-12-17 11:10:27 -08:00
DiffusionRenameHistoryQuery.php Fix an issue with pulling Subversion blame data 2013-11-07 12:10:43 -08:00
DiffusionResolveUserQuery.php Provide a standalone query for resolution of commit author/committer into Phabricator users 2013-12-19 11:05:17 -08:00
DiffusionSymbolQuery.php Remove @group annotations 2014-07-10 08:12:48 +10:00