Some scripts might find it easier to work with PHIDs instead of user names.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- Restricted Diffusion Commit
rP203d82083a98: Allow prefilling a task's assignee by his PHID
Use ?assign=<username> and ?assign=<PHID-USER> with the create task URI.
See assignee input being filled correctly.
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
I could fetch possible user with one query (username = %s or phid = %s) but this seems cleaner. Your call.
Comment Actions
Let's switch to PhabricatorPeopleQuery, too -- you can use:
$assign_user = id(new PhabricatorPeopleQuery()) ->setViewer($user) ->withUsernames(array($assign)) ->executeOne()
...to get similar semantics to loadOneWhere(). This looks great to me otherwise.
Comment Actions
(PhabricatorPeopleQuery might make more sense as PhabricatorUserQuery, but for random historical reasons the application is called "People" so we've ended up with awkardly mixed terminology. It loads PhabricatorUser objects, though.)
Comment Actions
Closed by commit rP203d82083a98 (authored by @erik.fercak, committed by @epriestley).