Page MenuHomePhabricator

Use initializeNewLog rather than instantiate the UserLog
ClosedPublic

Authored by garoevans on Apr 28 2014, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 1:54 PM
Unknown Object (File)
Sat, Apr 20, 6:48 PM
Unknown Object (File)
Thu, Apr 11, 9:09 AM
Unknown Object (File)
Tue, Apr 2, 11:58 PM
Unknown Object (File)
Feb 10 2024, 8:23 PM
Unknown Object (File)
Feb 8 2024, 2:19 PM
Unknown Object (File)
Feb 5 2024, 3:08 AM
Unknown Object (File)
Feb 5 2024, 3:07 AM
Subscribers
Tokens
"Doubloon" token, awarded by btrahan.

Details

Summary

Use initializeNewLog rather than instantiate the UserLog,
Closes T4912

Test Plan

Run install-certificate

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

garoevans retitled this revision from to Use initializeNewLog rather than instantiate the UserLog.
garoevans updated this object.
garoevans edited the test plan for this revision. (Show Details)
garoevans added a reviewer: btrahan.
garoevans set the repository for this revision to rP Phabricator.
garoevans added a subscriber: epriestley.
btrahan edited edge metadata.

LMK if making a diff is a pain and I can make one you can accept.

src/applications/conduit/method/ConduitAPI_conduit_getcertificate_Method.php
62–66

This is technically different from what's on the left - $request->getUser() and the user from $info->getUserPHID() can be different people - but I think its more correct as $request->getUser() is actually the actor.

82

can you pass in the ConduitAPI $request here so you can do the $request->getUser() bit again?
can you also pass in the PhabricatorConduitCertificateToken $info = null?

86

change to

$info ? $info->getUserPHID() : '-'
This revision now requires changes to proceed.Apr 28 2014, 10:25 PM

Will make other changes.

Made diff with git diff, not too bad :)

src/applications/conduit/method/ConduitAPI_conduit_getcertificate_Method.php
62–66

I thought the same Should have mentioned it in the commit. Probably the same person!

garoevans edited edge metadata.

Attempt to log more info on failure

Nice! I can't see the top bit though in this diff. :/

src/applications/conduit/method/ConduitAPI_conduit_getcertificate_Method.php
59

sorry, forgot to mention you have to update this to pass in $request and $info

Tested it properly

src/applications/conduit/method/ConduitAPI_conduit_getcertificate_Method.php
59

Ha, sorry. Being slow!

This revision is now accepted and ready to land.Apr 28 2014, 10:42 PM
btrahan updated this revision to Diff 21088.

Closed by commit rP08d9e5ec99ae (authored by @btrahan).

no problemo. I think I messed up authorship info / I have a task to make that work better. I appreciate the commit! :D