mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
7b0b820be1
Summary: Ref T10538. Ref T10537. This creates PHIDs which represent GitHub users, and uses them as the actors for synchronized comments. I've just made them Doorkeeper objects. There are three major kinds of objects they //could// possibly be: - Nuance requestor objects. - External account objects. - Doorkeeper objects. I don't think we actually need distinct nuance requestor objects. These don't really do anything right now, and were originally created before Doorkeeper. I think Doorkeeper is a superset of nuance requestor functionality, and better developed and more flexible. Likewise, doorkeeper objects are much more flexible than external account objects, and it's nice to imagine that we can import from Twootfeed or whatever without needing to build full OAuth for it. I also like less stuff touching auth code, when possible. Making these separate from external accounts does make it a bit harder to reconcile external users with internal users, but I think that's OK, and that it's generally desirable to show the real source of a piece of content. That is, if I wrote a comment on GitHub but also have a Phabricator account, I think it's good to show "epriestley (GitHub)" (the GitHub user) as the author, not "epriestley" (the Phabricator user). I think this is generally less confusing overall, and we can add more linkage later to make it clearer. Test Plan: {F1194104} {F1194105} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10537, T10538 Differential Revision: https://secure.phabricator.com/D15541
16 lines
383 B
PHP
16 lines
383 B
PHP
<?php
|
|
|
|
final class PhabricatorPHIDConstants extends Phobject {
|
|
|
|
const PHID_TYPE_UNKNOWN = '????';
|
|
const PHID_TYPE_MAGIC = '!!!!';
|
|
const PHID_TYPE_STRY = 'STRY';
|
|
const PHID_TYPE_TOBJ = 'TOBJ';
|
|
const PHID_TYPE_LEGB = 'LEGB';
|
|
|
|
const PHID_TYPE_XCMT = 'XCMT';
|
|
|
|
const PHID_TYPE_VOID = 'VOID';
|
|
const PHID_VOID = 'PHID-VOID-00000000000000000000';
|
|
|
|
}
|