Page MenuHomePhabricator

Give "FileAttachment" policy support and a query object
ClosedPublic

Authored by epriestley on May 23 2022, 5:24 PM.
Tags
None
Referenced Files
F14086761: D21835.id52037.diff
Sat, Nov 23, 4:40 PM
F14083881: D21835.id52038.diff
Sat, Nov 23, 5:50 AM
Unknown Object (File)
Tue, Nov 19, 7:52 AM
Unknown Object (File)
Fri, Nov 15, 3:06 AM
Unknown Object (File)
Tue, Nov 12, 12:04 AM
Unknown Object (File)
Sun, Nov 10, 4:48 PM
Unknown Object (File)
Fri, Nov 8, 6:31 PM
Unknown Object (File)
Thu, Nov 7, 12:38 PM
Subscribers
None

Details

Summary

Ref T13682. This supports an "Attached Files" curtain UI element.

Test Plan

See next change.

Diff Detail

Repository
rP Phabricator
Branch
file4
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25739
Build 35567: arc lint + arc unit

Unit TestsFailed

TimeTest
45 msPhabricatorFileTestCase::testFileIndirectScramble
Assertion failed, expected 'true' (at PhabricatorFileTestCase.php:140): Changing attached object view policy should scramble secret. ACTUAL VALUE
213 msPhabricatorCelerityTestCase::testCelerityMaps
3 assertions passed.
9 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
34 msPhabricatorFileTestCase::testFileDirectScramble
2 assertions passed.
10 msPhabricatorFileTestCase::testFileStorageDelete
1 assertion passed.
View Full Test Results (1 Failed · 16 Passed)

Event Timeline

epriestley created this revision.
  • Also fix indirect reference attachment/scrambling test.
  • Further improve unit test coverage and test "reference doesn't grant view permission".
This revision was not accepted when it landed; it landed in state Needs Review.May 23 2022, 9:08 PM
This revision was automatically updated to reflect the committed changes.