1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 01:12:41 +01:00
phorge-phorge/src/applications
epriestley 8f0c836063 Add question and answer transactions to Ponder
Summary: Ref T3373.

Test Plan:
Ran this script, saw valid inserts:

  <?php

  $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();

  id(new PonderQuestionTransaction())
    ->setAuthorPHID('herp')
    ->setObjectPHID('derp')
    ->setViewPolicy('blarp')
    ->setEditPolicy('goop')
    ->setTransactionType('beep')
    ->setContentSource(PhabricatorContentSource::newForSource('derp', array()))
    ->save();

  id(new PonderAnswerTransaction())
    ->setAuthorPHID('herp')
    ->setObjectPHID('derp')
    ->setViewPolicy('blarp')
    ->setEditPolicy('goop')
    ->setTransactionType('beep')
    ->setContentSource(PhabricatorContentSource::newForSource('derp', array()))
    ->save();

  id(new PonderQuestionTransactionComment())
    ->setCommentVersion(1)
    ->setAuthorPHID('bloop')
    ->setViewPolicy('blarp')
    ->setEditPolicy('goop')
    ->setContent('blip')
    ->setContentSource(PhabricatorContentSource::newForSource('derp', array()))
    ->save();

  id(new PonderAnswerTransactionComment())
    ->setCommentVersion(1)
    ->setAuthorPHID('bloop')
    ->setViewPolicy('blarp')
    ->setEditPolicy('goop')
    ->setContent('blip')
    ->setContentSource(PhabricatorContentSource::newForSource('derp', array()))
    ->save();

  unset($unguarded);

  echo "OK!\n";

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3373

Differential Revision: https://secure.phabricator.com/D6584
2013-07-28 15:08:36 -07:00
..
arcanist/conduit Move Conduit methods inside applications 2012-12-21 12:21:59 -08:00
audit Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
auth Use Application PHIDs for XUSR 2013-07-24 14:12:39 -07:00
base Provide contextual help on auth provider configuration 2013-06-20 11:18:48 -07:00
cache Provide 'bin/cache', for managing caches 2013-05-20 10:16:35 -07:00
calendar Conpherence calendar updates 2013-05-29 14:35:34 -07:00
chatlog Consolidate some datetime code and add unit tests 2013-06-03 12:58:11 -07:00
conduit Provide PhabricatorSavedQuery to renderResultsList() 2013-07-03 05:46:04 -07:00
config Improve usability of DarkConsole settings 2013-07-27 20:18:58 -07:00
conpherence Move Conpherence Threads to new phid stuff 2013-07-26 12:07:47 -07:00
countdown Modernize Countdown somewhat 2013-07-23 06:16:19 -07:00
daemon Surface task queue temporary failure rate in Daemon console 2013-07-23 16:58:22 -07:00
differential Don't publish Differential "create" action to Asana 2013-07-27 16:33:47 -07:00
diffusion Remove leading whitespace if no prefix is configured for Asana sync 2013-07-26 11:37:48 -07:00
directory/controller Minor, fix some margins on the homepage directory view. 2013-07-03 06:24:46 -07:00
diviner Diviner: improve links, book index, and atom view 2013-07-28 13:07:30 -07:00
doorkeeper Generalize Asana-publishable feed story objects 2013-07-26 08:56:35 -07:00
draft/storage Add draft support to ApplicationTransactions 2012-12-21 05:57:14 -08:00
drydock Make PhabricatorActionListView logged-out user savvy 2013-07-12 11:39:47 -07:00
fact Convert AphrontTableView to safe HTML 2013-02-09 15:11:38 -08:00
feed Add commits/audits to Asana bridge 2013-07-26 10:31:35 -07:00
files Use Application PHIDs in Files 2013-07-22 12:17:39 -07:00
flag Use ActionListView for all profile actions 2013-07-10 05:11:08 -07:00
harbormaster Add HarbormasterRunnerWorker, for running CI tests 2012-12-17 13:43:26 -08:00
help/controller Some help pht 2013-05-21 15:29:21 -07:00
herald PHUIList, PHUIDocument updates 2013-06-05 08:41:43 -07:00
legalpad Move LegalpadDocument to new phid stuff 2013-07-26 12:05:33 -07:00
lipsum Files Generating 2013-05-06 10:30:38 -07:00
macro Remove unnecessary empty checks from willFilterPage() 2013-07-24 15:30:26 -07:00
mailinglists Use application PHIDs for mailing lists 2013-07-22 12:17:33 -07:00
maniphest Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
meta Make PhabricatorActionListView logged-out user savvy 2013-07-12 11:39:47 -07:00
metamta Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
notification Fix weird "0" notification numbers 2013-05-21 15:44:44 -07:00
oauthserver Initialize used variable 2013-07-09 21:55:27 -07:00
owners Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
paste Remove unnecessary empty checks from willFilterPage() 2013-07-24 15:30:26 -07:00
people Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
phame Move PhamePost to new phid stuff 2013-07-26 13:15:08 -07:00
phid Use Application PHIDs for ANSW 2013-07-28 15:08:35 -07:00
phlux Use application PHIDs in Phlux 2013-07-24 14:06:50 -07:00
pholio Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
phortune Remove unnecessary empty checks from willFilterPage() 2013-07-24 15:30:26 -07:00
phpast Uninstall Conduit calls when uninstalling applications 2013-03-13 07:09:05 -07:00
phrequent Make PhabricatorActionListView logged-out user savvy 2013-07-12 11:39:47 -07:00
phriction Add breadcrumbs and ApplicationSearch to Phriction 2013-07-27 18:26:42 -07:00
policy Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
ponder Add question and answer transactions to Ponder 2013-07-28 15:08:36 -07:00
project Use Application PHIDs in Projects 2013-07-22 12:17:53 -07:00
releeph Use application PHIDs in Releeph, plus more 2013-07-22 12:17:32 -07:00
remarkup/conduit Convert Remarkup to safe HTML 2013-02-13 12:34:49 -08:00
repository move repository arcanist projects over to new phid stuff 2013-07-26 14:33:31 -07:00
search Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
settings Improve usability of DarkConsole settings 2013-07-27 20:18:58 -07:00
slowvote Remove unnecessary empty checks from willFilterPage() 2013-07-24 15:30:26 -07:00
subscriptions Make PhabricatorActionListView logged-out user savvy 2013-07-12 11:39:47 -07:00
system Add a user-accessible hook for dumping debug code into an install 2013-03-04 13:45:51 -08:00
tokens Remove unnecessary empty checks from willFilterPage() 2013-07-24 15:30:26 -07:00
transactions make transaction edits work 2013-07-25 17:40:33 -07:00
typeahead Use application PHIDs for mailing lists 2013-07-22 12:17:33 -07:00
uiexample Move PhabricatorUser to new phid stuff 2013-07-26 14:05:19 -07:00
xhprof Fix XHProf index page 2013-04-02 09:52:52 -07:00