Page MenuHomePhabricator

Hide Audit comment table reads behind an API
ClosedPublic

Authored by epriestley on Jul 22 2014, 8:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 10:45 AM
Unknown Object (File)
Thu, Apr 11, 3:25 AM
Unknown Object (File)
Mon, Apr 1, 10:54 PM
Unknown Object (File)
Mon, Apr 1, 2:31 AM
Unknown Object (File)
Mar 10 2024, 9:28 AM
Unknown Object (File)
Mar 10 2024, 9:28 AM
Unknown Object (File)
Mar 10 2024, 9:27 AM
Unknown Object (File)
Mar 10 2024, 9:27 AM
Subscribers

Details

Summary

Ref T4896. Buries all direct access to the table so we can limit the surface area affected by the migration.

Test Plan
  • Grepped for PhabricatorAuditComment.
  • Grepped for audit_comment.
  • Viewed a bunch of comments.
  • Added a comment.
  • Reindexed a commit.
  • Searched for unique term in new comment.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Hide Audit comment table reads behind an API.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: joshuaspence, btrahan.
joshuaspence edited edge metadata.
joshuaspence added inline comments.
src/applications/audit/storage/PhabricatorAuditComment.php
19

Unused, possibly intentionally for consistency

This revision is now accepted and ready to land.Jul 23 2014, 1:37 PM
src/applications/audit/storage/PhabricatorAuditComment.php
19

Yeah -- this body may swap to a Query which needs $viewer, and passing it now means I don't have to go digging later.

epriestley edited edge metadata.
  • Rebase, this one doesn't have any PHIDType in it. Linting to double check.
epriestley updated this revision to Diff 24155.

Closed by commit rPdc5c87f74cda (authored by @epriestley).