1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/doorkeeper
epriestley 7b0b820be1 Bridge GitHub users into Phabricator and attribute actions to them
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
2016-03-28 13:10:32 -07:00
..
application Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
bridge Bridge GitHub users into Phabricator and attribute actions to them 2016-03-28 13:10:32 -07:00
controller Update Doorkeeper for handleRequest 2015-08-10 09:08:04 -07:00
edge Modernize remaining edge types 2015-01-03 10:58:20 +11:00
engine Begin bridging GitHub objects through Doorkeeper 2016-03-09 09:29:21 -08:00
engineextension When an object has been imported from an external source, show a curtain panel 2016-03-25 14:05:27 -07:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
option Update to use PHUIRemarkupView everywhere possible 2016-02-16 14:05:53 -08:00
phid Bridge GitHub users into Phabricator and attribute actions to them 2016-03-28 13:10:32 -07:00
query Bridge GitHub users into Phabricator and attribute actions to them 2016-03-28 13:10:32 -07:00
remarkup Rename some remarkup classes 2015-06-08 11:27:20 +10:00
storage Bridge GitHub users into Phabricator and attribute actions to them 2016-03-28 13:10:32 -07:00
view Use PhutilInvalidStateException 2015-05-14 07:53:52 +10:00
worker JIRA Integration: Link and/or Comment 2015-11-12 19:30:43 +00:00