Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboard.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | final class PhabricatorDashboard extends PhabricatorDashboardDAO | ||||
public function getLayoutConfigObject() { | public function getLayoutConfigObject() { | ||||
return PhabricatorDashboardLayoutConfig::newFromDictionary( | return PhabricatorDashboardLayoutConfig::newFromDictionary( | ||||
$this->getLayoutConfig()); | $this->getLayoutConfig()); | ||||
} | } | ||||
public function setLayoutConfigFromObject( | public function setLayoutConfigFromObject( | ||||
PhabricatorDashboardLayoutConfig $object) { | PhabricatorDashboardLayoutConfig $object) { | ||||
$this->setLayoutConfig($object->toDictionary()); | $this->setLayoutConfig($object->toDictionary()); | ||||
// See PHI385. Dashboard panel mutations rely on changes to the Dashboard | |||||
// object persisting when transactions are applied, but this assumption is | |||||
// no longer valid after T13054. For now, just save the dashboard | |||||
// explicitly. | |||||
$this->save(); | |||||
return $this; | return $this; | ||||
} | } | ||||
public function getProjectPHIDs() { | public function getProjectPHIDs() { | ||||
return $this->assertAttached($this->edgeProjectPHIDs); | return $this->assertAttached($this->edgeProjectPHIDs); | ||||
} | } | ||||
public function attachProjectPHIDs(array $phids) { | public function attachProjectPHIDs(array $phids) { | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |