Support Spaces transactions

Summary:
Ref T8424. This adds crude integration with Paste's edit/view workflows: you can change the space a Paste appears in, see transactions, and get a policy callout.

Lots of rough edges and non-obviousness but it pretty much works.

Test Plan:
  - Created and updated Pastes.
  - Moved them between spaces, saw policy effects.
  - Read transactions.
  - Looked at feed.
  - Faked query to return no spaces, saw control and other stuff vanish.
  - Faked query to return no spaces, created pastes.
  - Tried to submit bad values and got errors.

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8424

Differential Revision: https://secure.phabricator.com/D13159
This commit is contained in:
epriestley
2015-06-05 10:42:49 -07:00
parent 5deaeec668
commit ef90007a21
13 changed files with 306 additions and 79 deletions

View File

@@ -15,7 +15,7 @@ final class PhabricatorSpacesApplication extends PhabricatorApplication {
}
public function getFontIcon() {
return 'fa-compass';
return 'fa-th-large';
}
public function getTitleGlyph() {