Page MenuHomePhabricator

Support Spaces in Pholio
ClosedPublic

Authored by epriestley on Jun 9 2015, 11:56 PM.
Tags
None
Referenced Files
F14020536: D13231.id32011.diff
Wed, Nov 6, 12:41 AM
F13996715: D13231.id.diff
Wed, Oct 23, 11:26 PM
F13992305: D13231.id31979.diff
Tue, Oct 22, 3:41 PM
F13978890: D13231.diff
Oct 19 2024, 1:30 AM
F13977609: D13231.diff
Oct 18 2024, 7:19 PM
F13967553: D13231.id32011.diff
Oct 16 2024, 2:26 PM
Unknown Object (File)
Sep 27 2024, 5:02 PM
Unknown Object (File)
Sep 27 2024, 4:58 PM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
T8493: Integrate Spaces into more applications
Commits
Restricted Diffusion Commit
rPde0e0d995baa: Support Spaces in Pholio
Summary

Ref T8493. Add Spaces support to Pholio.

This is straightforward; Pholio has no clone/copy/fork or weird parent/child stuff going on.

Test Plan

Created a mock, put it in a space, looked at it as another user, searched for stuff in spaces, viewed Macros.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Support Spaces in Pholio.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.

Just double checking the images that comprise a mock are also "space'd" properly by this change.

src/applications/pholio/storage/PholioMock.php
32

do these images end up being in the space as well?

e.g.

user makes a mock with N images
user moves the mock to a space

...the N images are also in the space with respect to viewability?

This revision is now accepted and ready to land.Jun 10 2015, 10:42 PM

the N images are also in the space with respect to viewability

Yeah, we generally get this automatically: when you load an image, we also load and attach the mock. If you can't see the mock, we filter out the image. So moving a mock to a space you can't see is sufficient to hide the image, as well, for the same reason that setting the mock to "visible to: only me" is also sufficient to hide the image.

(If some future diff let you interact directly with images that a different viewer might have loaded [for example, we let you write Herald rules directly against Images or something], we'd need to implement PhabricatorExtendedPolicyInterface to avoid T7703, but there's no way to hit that currently and I don't anticipate adding one any time soon / ever.)

This revision was automatically updated to reflect the committed changes.