/** * Process the system event * * @return Boolean */ public function process() { try { $tracker_id = (int) $this->getRequiredParameter(0); $tracker = $this->tracker_factory->getTrackerById($tracker_id); $this->actions->reIndexTracker($tracker); $this->done('All Tracker artifacts re-indexed correctly'); return true; } catch (Exception $e) { $this->error($e->getMessage()); } return false; }
/** * Process the system event * * @return Boolean */ public function process() { try { $project_id = (int) $this->getRequiredParameter(0); if ($this->system_event_manager->isProjectReindexationAlreadyQueued($project_id)) { $this->done('Skipped duplicate event'); $this->logger->debug("Skipped duplicate event for project {$project_id} : " . self::NAME); return true; } $trackers = $this->tracker_factory->getTrackersByGroupId($project_id); $this->actions->reIndexProjectArtifacts($trackers); $this->done(); return true; } catch (Exception $e) { $this->error($e->getMessage()); } return false; }
private function action($artifact_id) { $this->actions->indexArtifactUpdate($this->artifact_factory->getArtifactById($artifact_id)); return true; }
private function action($tracker_id) { $this->actions->deleteTrackerIndex($tracker_id); return true; }
private function action($artifact_id, $tracker_id) { $this->actions->deleteArtifactIndex($artifact_id, $tracker_id); return true; }