mirror of https://github.com/MISP/MISP
chg: [internal] Optimise loading event correlation graph
parent
e7076d1afc
commit
a6b76e70ae
|
@ -4285,9 +4285,10 @@ class EventsController extends AppController
|
|||
|
||||
public function viewGraph($id)
|
||||
{
|
||||
// Event data are fetched by 'updateGraph', here we need just metadata.
|
||||
$event = $this->Event->fetchEvent($this->Auth->user(), array(
|
||||
'eventid' => $id,
|
||||
'includeGranularCorrelations' => 1
|
||||
'metadata' => true,
|
||||
));
|
||||
if (empty($event)) {
|
||||
throw new MethodNotAllowedException(__('Invalid Event.'));
|
||||
|
|
|
@ -26,7 +26,15 @@
|
|||
|
||||
private function __expandEvent($id)
|
||||
{
|
||||
$event = $this->__eventModel->fetchEvent($this->__user, array('eventid' => $id, 'flatten' => 0, 'includeTagRelations' => 1, 'includeGalaxy' => 1, 'includeGranularCorrelations' => 1));
|
||||
$event = $this->__eventModel->fetchEvent($this->__user, array(
|
||||
'eventid' => $id,
|
||||
'flatten' => 0,
|
||||
'includeTagRelations' => 1,
|
||||
'includeGalaxy' => 1,
|
||||
'includeGranularCorrelations' => 1,
|
||||
'noSightings' => true,
|
||||
'sgReferenceOnly' => true,
|
||||
));
|
||||
if (empty($event)) {
|
||||
return $this->__json;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue