mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 11:09:02 +01:00
Summary: Ref T10004. This restores "alice created this task." transactions, but in a generic way so we don't have to special case one of the other edits with an old `null` value. In most cases, creating an object now shows only an "alice created this thing." transaction, unless nonempty defaults (usually, policy or spaces) were adjusted. Test Plan: Created pastes, tasks, blogs, packages, and forms. Saw a single "alice created this thing." transaction. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10004 Differential Revision: https://secure.phabricator.com/D14820
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorTransactions extends Phobject {
|
|
|
|
const TYPE_COMMENT = 'core:comment';
|
|
const TYPE_SUBSCRIBERS = 'core:subscribers';
|
|
const TYPE_VIEW_POLICY = 'core:view-policy';
|
|
const TYPE_EDIT_POLICY = 'core:edit-policy';
|
|
const TYPE_JOIN_POLICY = 'core:join-policy';
|
|
const TYPE_EDGE = 'core:edge';
|
|
const TYPE_CUSTOMFIELD = 'core:customfield';
|
|
const TYPE_BUILDABLE = 'harbormaster:buildable';
|
|
const TYPE_TOKEN = 'token:give';
|
|
const TYPE_INLINESTATE = 'core:inlinestate';
|
|
const TYPE_SPACE = 'core:space';
|
|
const TYPE_CREATE = 'core:create';
|
|
|
|
const COLOR_RED = 'red';
|
|
const COLOR_ORANGE = 'orange';
|
|
const COLOR_YELLOW = 'yellow';
|
|
const COLOR_GREEN = 'green';
|
|
const COLOR_SKY = 'sky';
|
|
const COLOR_BLUE = 'blue';
|
|
const COLOR_INDIGO = 'indigo';
|
|
const COLOR_VIOLET = 'violet';
|
|
const COLOR_GREY = 'grey';
|
|
const COLOR_BLACK = 'black';
|
|
|
|
|
|
public static function getInlineStateMap() {
|
|
return array(
|
|
PhabricatorInlineCommentInterface::STATE_DRAFT =>
|
|
PhabricatorInlineCommentInterface::STATE_DONE,
|
|
PhabricatorInlineCommentInterface::STATE_UNDRAFT =>
|
|
PhabricatorInlineCommentInterface::STATE_UNDONE,
|
|
);
|
|
}
|
|
|
|
}
|