Page MenuHomePhabricator

Remove all "ObjectHasFile" edge reads and writes
ClosedPublic

Authored by epriestley on May 12 2022, 10:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 10:14 PM
Unknown Object (File)
Sun, Nov 17, 9:16 PM
Unknown Object (File)
Sat, Nov 16, 8:35 PM
Unknown Object (File)
Fri, Nov 15, 8:44 PM
Unknown Object (File)
Tue, Nov 12, 11:17 AM
Unknown Object (File)
Fri, Nov 8, 5:49 AM
Unknown Object (File)
Thu, Oct 24, 6:02 PM
Unknown Object (File)
Oct 24 2024, 12:55 AM
Subscribers
Restricted Owners Package

Details

Reviewers
None
Maniphest Tasks
Restricted Maniphest Task
Commits
rPc25a8fabfc1e: Remove all "ObjectHasFile" edge reads and writes
Summary

Ref T13603. Migrate all code which interacts with the "ObjectHasFile" edge to use the "Attachments" table instead.

Test Plan
  • Edited a paste's view policy, confirmed associated file secret was scrambled.
  • Verified I could still view paste content as a user who could not naturally view the underlying file.

Diff Detail

Repository
rP Phabricator
Branch
file7
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25718
Build 35546: arc lint + arc unit

Unit TestsFailed

TimeTest
61 msPhabricatorFileTestCase::testFileIndirectScramble
Assertion failed, expected 'true' (at PhabricatorFileTestCase.php:135): Changing attached object view policy should scramble secret. ACTUAL VALUE
30 msPhabricatorFileTestCase::testFileVisibility
Assertion failed, expected values to be equal (at PhabricatorFileTestCase.php:200): Attached File Visibility Expected vs Actual Output Diff --- Old Value
206 msPhabricatorCelerityTestCase::testCelerityMaps
3 assertions passed.
9 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
82 msPhabricatorFileTestCase::testFileDirectScramble
2 assertions passed.
View Full Test Results (2 Failed · 15 Passed)

Event Timeline

Owners added a subscriber: Restricted Owners Package.May 12 2022, 10:15 PM
This revision was not accepted when it landed; it landed in state Needs Review.May 19 2022, 8:21 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.