Differential D10585 Diff 25583 src/applications/differential/conduit/DifferentialFinishPostponedLintersConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialFinishPostponedLintersConduitAPIMethod.php
| Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
| // Use setdiffproperty to update the postponed linters and messages, | // Use setdiffproperty to update the postponed linters and messages, | ||||
| // as these will also update the lint status correctly. | // as these will also update the lint status correctly. | ||||
| $call = new ConduitCall( | $call = new ConduitCall( | ||||
| 'differential.setdiffproperty', | 'differential.setdiffproperty', | ||||
| array( | array( | ||||
| 'diff_id' => $diff_id, | 'diff_id' => $diff_id, | ||||
| 'name' => 'arc:lint', | 'name' => 'arc:lint', | ||||
| 'data' => json_encode($messages))); | 'data' => json_encode($messages), | ||||
| )); | |||||
| $call->setForceLocal(true); | $call->setForceLocal(true); | ||||
| $call->setUser($request->getUser()); | $call->setUser($request->getUser()); | ||||
| $call->execute(); | $call->execute(); | ||||
| $call = new ConduitCall( | $call = new ConduitCall( | ||||
| 'differential.setdiffproperty', | 'differential.setdiffproperty', | ||||
| array( | array( | ||||
| 'diff_id' => $diff_id, | 'diff_id' => $diff_id, | ||||
| 'name' => 'arc:lint-postponed', | 'name' => 'arc:lint-postponed', | ||||
| 'data' => json_encode($postponed_linters))); | 'data' => json_encode($postponed_linters), | ||||
| )); | |||||
| $call->setForceLocal(true); | $call->setForceLocal(true); | ||||
| $call->setUser($request->getUser()); | $call->setUser($request->getUser()); | ||||
| $call->execute(); | $call->execute(); | ||||
| } | } | ||||
| } | } | ||||