Differential D12680 Diff 30510 src/applications/differential/conduit/DifferentialSetDiffPropertyConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialSetDiffPropertyConduitAPIMethod.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | if ($has_error) { | ||||
$diff->setLintStatus(DifferentialLintStatus::LINT_OKAY); | $diff->setLintStatus(DifferentialLintStatus::LINT_OKAY); | ||||
} | } | ||||
$diff->save(); | $diff->save(); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$diff_id = $request->getValue('diff_id'); | $diff_id = $request->getValue('diff_id'); | ||||
$name = $request->getValue('name'); | $name = $request->getValue('name'); | ||||
$data = json_decode($request->getValue('data'), true); | $data = phutil_json_decode($request->getValue('data')); | ||||
self::updateDiffProperty($diff_id, $name, $data); | self::updateDiffProperty($diff_id, $name, $data); | ||||
if ($name === 'arc:lint' || $name == 'arc:lint-postponed') { | if ($name === 'arc:lint' || $name == 'arc:lint-postponed') { | ||||
self::updateLintStatus($diff_id); | self::updateLintStatus($diff_id); | ||||
} | } | ||||
return; | return; | ||||
Show All 18 Lines |