Page MenuHomePhabricator

Audit - fix erroneous mentions of tasks, etc via commit message
ClosedPublic

Authored by btrahan on Oct 16 2014, 11:49 PM.
Tags
None
Referenced Files
F14027129: D10721.id25736.diff
Fri, Nov 8, 5:17 AM
F14023196: D10721.diff
Wed, Nov 6, 11:52 PM
F13992290: D10721.id25735.diff
Tue, Oct 22, 3:39 PM
F13974777: D10721.diff
Fri, Oct 18, 7:22 AM
F13971734: D10721.id25736.diff
Thu, Oct 17, 3:02 PM
F13958126: D10721.id25736.diff
Mon, Oct 14, 1:04 PM
F13954868: D10721.id.diff
Sun, Oct 13, 11:22 PM
Unknown Object (File)
Oct 1 2024, 5:20 AM

Details

Summary

we don't want to mention these phids... when expanding transactions, build the unmnentionable map and make it so. slightly hairy due to how the editor framework works, but overall i think this is the right place to put these hooks. Fixes T6331.

Test Plan

made a commit with a commit message that had fixes, refs, depends on, and auditors and saw no erroneous mentions

Diff Detail

Repository
rP Phabricator
Branch
T6331
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2858
Build 2862: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Audit - fix erroneous mentions of tasks, etc via commit message.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
btrahan added a subscriber: chad.
epriestley edited edge metadata.

Yeah, this is a little hairy but seems reasonable.

src/applications/audit/editor/PhabricatorAuditEditor.php
501–520

You could possibly simplify/future-proof this by using ObjectQuery (which should be able to look up "Dxxx" and "Txxx") instead of TaskQuery + RevisionQuery.

This revision is now accepted and ready to land.Oct 16 2014, 11:57 PM
btrahan edited edge metadata.

simplify with an object query

(re-tested by running re-parse. saw the "commit" transaction get recorded again and still no erroneous mentions.)

This revision was automatically updated to reflect the committed changes.