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
F14105393: D21835.diff
Wed, Nov 27, 2:20 AM
Unknown Object (File)
Tue, Nov 26, 1:08 PM
Unknown Object (File)
Sun, Nov 24, 3:40 AM
Unknown Object (File)
Sun, Nov 24, 1:12 AM
Unknown Object (File)
Sat, Nov 23, 4:40 PM
Unknown Object (File)
Sat, Nov 23, 5:50 AM
Unknown Object (File)
Tue, Nov 19, 7:52 AM
Unknown Object (File)
Fri, Nov 15, 3:06 AM
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.