public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_UPDATE: // Older versions of this transaction have an ID for the new value, // and/or do not record the old value. Only hide the transaction if // the new value is a PHID, indicating that this is a newer style // transaction. if ($old === null) { if (phid_get_type($new) == DifferentialDiffPHIDType::TYPECONST) { return true; } } break; case PhabricatorTransactions::TYPE_EDGE: $add = array_diff_key($new, $old); $rem = array_diff_key($old, $new); // Hide metadata-only edge transactions. These correspond to users // accepting or rejecting revisions, but the change is always explicit // because of the TYPE_ACTION transaction. Rendering these transactions // just creates clutter. if (!$add && !$rem) { return true; } break; } return parent::shouldHide(); }
public final function shouldHide() { if ($this->getTransactionImplementation()->shouldHide()) { return true; } return parent::shouldHide(); }
public function shouldHide() { switch ($this->getTransactionType()) { case self::TYPE_QUESTION_ID: return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: return $old === null; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case PhabricatorMacroTransactionType::TYPE_NAME: return $old === null; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_PHAME_TITLE: case self::TYPE_BODY: return $old === null; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_LAYOUT_MODE: return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_TITLE: case self::TYPE_TEXT: return $old === null; case self::TYPE_SIGNATURE_TYPE: return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: case self::TYPE_CONTACTINFO: case self::TYPE_INVOICEEMAIL: case self::TYPE_INVOICEFOOTER: return $old === null; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: case self::TYPE_RESPONSES: case self::TYPE_SHUFFLE: case self::TYPE_CLOSE: return $old === null; } return parent::shouldHide(); }
public function shouldHide() { switch ($this->getTransactionType()) { case self::TYPE_CONTENT: if ($this->getOldValue() === null) { return true; } else { return false; } break; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_TITLE: case self::TYPE_LANGUAGE: if ($old === null) { return true; } break; } return parent::shouldHide(); }
public function shouldHide() { switch ($this->getTransactionType()) { case PhabricatorTransactions::TYPE_EDGE: $edge_type = $this->getMetadataValue('edge:type'); switch ($edge_type) { case PhabricatorProjectSilencedEdgeType::EDGECONST: return true; default: break; } } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: return $old === null; case self::TYPE_LOCK: return $old === null; case self::TYPE_USERNAME: return !strlen($old); case self::TYPE_LOOKEDATSECRET: return false; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: if ($old === null) { return true; } break; case self::TYPE_PRIMARY: // TODO: Eventually, remove these transactions entirely. return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: return $old === null; case self::TYPE_IMAGE_NAME: case self::TYPE_IMAGE_DESCRIPTION: return $old === array(null => null); // this is boring / silly to surface; changing sequence is NBD // this is boring / silly to surface; changing sequence is NBD case self::TYPE_IMAGE_SEQUENCE: return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_PARTICIPANTS: return $old === null; case self::TYPE_TITLE: case self::TYPE_TOPIC: case self::TYPE_PICTURE: case self::TYPE_DATE_MARKER: return false; case self::TYPE_PICTURE_CROP: return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case ConpherenceTransactionType::TYPE_PARTICIPANTS: return $old === null; case ConpherenceTransactionType::TYPE_TITLE: case ConpherenceTransactionType::TYPE_DATE_MARKER: return false; case ConpherenceTransactionType::TYPE_FILES: return true; // we used to have them so just always hide // we used to have them so just always hide case ConpherenceTransactionType::TYPE_PICTURE: case ConpherenceTransactionType::TYPE_PICTURE_CROP: return true; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); switch ($this->getTransactionType()) { case self::TYPE_START_DATE: case self::TYPE_END_DATE: case self::TYPE_DESCRIPTION: case self::TYPE_CANCEL: case self::TYPE_ALL_DAY: case self::TYPE_INVITE: case self::TYPE_RECURRING: case self::TYPE_FREQUENCY: case self::TYPE_RECURRENCE_END_DATE: case self::TYPE_INSTANCE_OF_EVENT: case self::TYPE_SEQUENCE_INDEX: return $old === null; } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: return $old === null; case self::TYPE_LOCK: return $old === null; case self::TYPE_USERNAME: return !strlen($old); case self::TYPE_LOOKEDATSECRET: return false; case self::TYPE_DESTROY: // Don't show "undestroy" transactions because they're a bit confusing // and redundant with restoring a secret. if (!$new) { return true; } } return parent::shouldHide(); }
public function shouldHide() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_REMOTE_URI: case self::TYPE_SSH_LOGIN: case self::TYPE_SSH_KEY: case self::TYPE_SSH_KEYFILE: case self::TYPE_HTTP_LOGIN: case self::TYPE_HTTP_PASS: // Hide null vs empty string changes. return !strlen($old) && !strlen($new); case self::TYPE_LOCAL_PATH: case self::TYPE_NAME: // Hide these on create, they aren't interesting and we have an // explicit "create" transaction. if (!strlen($old)) { return true; } break; } return parent::shouldHide(); }
public function shouldHide() { switch ($this->getTransactionType()) { case PhabricatorTransactions::TYPE_EDGE: $commit_phid = $this->getMetadataValue('commitPHID'); $edge_type = $this->getMetadataValue('edge:type'); if ($edge_type == ManiphestTaskHasCommitEdgeType::EDGECONST) { if ($commit_phid) { return true; } } break; case self::TYPE_DESCRIPTION: case self::TYPE_PRIORITY: case self::TYPE_STATUS: if ($this->getOldValue() === null) { return true; } else { return false; } break; case self::TYPE_SUBPRIORITY: case self::TYPE_PARENT: return true; case self::TYPE_COVER_IMAGE: // At least for now, don't show these. return true; case self::TYPE_POINTS: if (!ManiphestTaskPoints::getIsEnabled()) { return true; } } return parent::shouldHide(); }
public function shouldHide() { $type = $this->getTransactionType(); if ($type === self::TYPE_USER_INTENT && $this->getMetadataValue('isRQCreate')) { return true; } if ($this->isBoringPickStatus()) { return true; } // ReleephSummaryFieldSpecification is usually blank when an RQ is created, // creating a transaction change from null to "". Hide these! if ($type === self::TYPE_EDIT_FIELD) { if ($this->getOldValue() === null && $this->getNewValue() === '') { return true; } } return parent::shouldHide(); }
public function shouldHide() { switch ($this->getTransactionType()) { case self::TYPE_DESCRIPTION: case self::TYPE_PRIORITY: case self::TYPE_STATUS: if ($this->getOldValue() === null) { return true; } else { return false; } break; case self::TYPE_SUBPRIORITY: return true; case self::TYPE_PROJECT_COLUMN: $old_cols = idx($this->getOldValue(), 'columnPHIDs'); $new_cols = idx($this->getNewValue(), 'columnPHIDs'); $old_cols = array_values($old_cols); $new_cols = array_values($new_cols); sort($old_cols); sort($new_cols); return $old_cols === $new_cols; } return parent::shouldHide(); }
public function shouldHide() { switch ($this->getTransactionType()) { case PhabricatorTransactions::TYPE_EDGE: $commit_phid = $this->getMetadataValue('commitPHID'); $edge_type = $this->getMetadataValue('edge:type'); if ($edge_type == ManiphestTaskHasCommitEdgeType::EDGECONST) { if ($commit_phid) { return true; } } break; case self::TYPE_DESCRIPTION: case self::TYPE_PRIORITY: case self::TYPE_STATUS: if ($this->getOldValue() === null) { return true; } else { return false; } break; case self::TYPE_SUBPRIORITY: return true; case self::TYPE_PROJECT_COLUMN: $old_cols = idx($this->getOldValue(), 'columnPHIDs'); $new_cols = idx($this->getNewValue(), 'columnPHIDs'); $old_cols = array_values($old_cols); $new_cols = array_values($new_cols); sort($old_cols); sort($new_cols); return $old_cols === $new_cols; } return parent::shouldHide(); }
public function shouldHide() { return parent::shouldHide(); }