From 4e3e54438837f6594538a47a69b6a840c57cb95a Mon Sep 17 00:00:00 2001 From: To-om Date: Tue, 5 Jan 2021 14:11:36 +0100 Subject: [PATCH] #1731 Wrap graph to include database instance --- ScalliGraph | 2 +- conf/logback.xml | 2 + .../resources/play/reference-overrides.conf | 4 +- .../controllers/v0/CortexQueryExecutor.scala | 7 +- .../connector/cortex/models/Action.scala | 7 +- .../cortex/models/SchemaUpdaterActor.scala | 76 ---------- .../models/SchemaUpdaterSerializer.scala | 25 ---- .../cortex/services/ActionOperationSrv.scala | 3 +- .../connector/cortex/services/ActionSrv.scala | 6 +- .../cortex/services/AnalyzerTemplateSrv.scala | 5 +- .../cortex/services/CortexAuditSrv.scala | 6 +- .../cortex/services/EntityHelper.scala | 2 +- .../connector/cortex/services/JobSrv.scala | 7 +- .../notification/notifiers/RunAnalyzer.scala | 2 +- .../notification/notifiers/RunResponder.scala | 3 +- .../thehive/migration/th4/NoAuditSrv.scala | 3 +- .../thp/thehive/migration/th4/Output.scala | 3 +- .../misp/services/MispExportSrv.scala | 3 +- .../misp/services/MispImportSrv.scala | 2 +- project/Dependencies.scala | 51 +++---- .../org/thp/thehive/controllers/dav/VFS.scala | 2 +- .../thehive/controllers/v0/AlertCtrl.scala | 9 +- .../controllers/v0/AuditRenderer.scala | 2 +- .../thp/thehive/controllers/v0/CaseCtrl.scala | 10 +- .../controllers/v0/CaseTemplateCtrl.scala | 6 +- .../thehive/controllers/v0/ConfigCtrl.scala | 2 +- .../controllers/v0/DashboardCtrl.scala | 8 +- .../thehive/controllers/v0/DescribeCtrl.scala | 2 +- .../thp/thehive/controllers/v0/ListCtrl.scala | 2 +- .../controllers/v0/ObservableCtrl.scala | 32 ++--- .../thehive/controllers/v0/QueryCtrl.scala | 6 +- .../thehive/controllers/v0/ShareCtrl.scala | 2 +- .../thp/thehive/controllers/v0/TaskCtrl.scala | 4 +- .../controllers/v0/TheHiveQueryExecutor.scala | 7 +- .../thp/thehive/controllers/v0/UserCtrl.scala | 8 +- .../thehive/controllers/v1/AlertCtrl.scala | 4 +- .../thp/thehive/controllers/v1/CaseCtrl.scala | 2 +- .../thehive/controllers/v1/Properties.scala | 116 ++++++---------- .../app/org/thp/thehive/models/Audit.scala | 9 +- .../thehive/models/SchemaUpdaterActor.scala | 130 ------------------ .../models/SchemaUpdaterSerializer.scala | 27 ---- .../models/TheHiveSchemaDefinition.scala | 3 +- .../org/thp/thehive/services/AlertSrv.scala | 3 +- .../thp/thehive/services/AttachmentSrv.scala | 3 +- .../org/thp/thehive/services/AuditSrv.scala | 6 +- .../org/thp/thehive/services/CaseSrv.scala | 7 +- .../thehive/services/CaseTemplateSrv.scala | 5 +- .../org/thp/thehive/services/ConfigSrv.scala | 3 +- .../thp/thehive/services/CustomFieldSrv.scala | 2 +- .../thp/thehive/services/DashboardSrv.scala | 4 +- .../org/thp/thehive/services/DataSrv.scala | 6 +- .../org/thp/thehive/services/FlowActor.scala | 7 +- .../thehive/services/ImpactStatusSrv.scala | 4 +- .../services/IntegrityCheckActor.scala | 19 +-- .../thp/thehive/services/KeyValueSrv.scala | 2 +- .../app/org/thp/thehive/services/LogSrv.scala | 3 +- .../thp/thehive/services/ObservableSrv.scala | 5 +- .../thehive/services/ObservableTypeSrv.scala | 4 +- .../thehive/services/OrganisationSrv.scala | 5 +- .../org/thp/thehive/services/PageSrv.scala | 3 +- .../org/thp/thehive/services/ProfileSrv.scala | 4 +- .../thp/thehive/services/ReportTagSrv.scala | 3 +- .../services/ResolutionStatusSrv.scala | 4 +- .../org/thp/thehive/services/RoleSrv.scala | 3 +- .../org/thp/thehive/services/ShareSrv.scala | 7 +- .../thp/thehive/services/TOTPAuthSrv.scala | 3 +- .../app/org/thp/thehive/services/TagSrv.scala | 5 +- .../org/thp/thehive/services/TaskSrv.scala | 3 +- .../org/thp/thehive/services/UserSrv.scala | 12 +- .../notification/NotificationActor.scala | 3 +- .../notification/notifiers/AppendToFile.scala | 7 +- .../notification/notifiers/Emailer.scala | 6 +- .../notification/notifiers/Mattermost.scala | 14 +- .../notification/notifiers/Notifier.scala | 6 +- .../notification/notifiers/Webhook.scala | 6 +- .../notification/triggers/CaseCreated.scala | 2 +- .../notification/triggers/FilteredEvent.scala | 3 +- .../notification/triggers/GlobalTrigger.scala | 2 +- .../notification/triggers/LogInMyTask.scala | 2 +- .../notification/triggers/TaskAssigned.scala | 2 +- .../notification/triggers/Trigger.scala | 6 +- .../thehive/services/th3/Aggregation.scala | 11 +- thehive/conf/play/reference-overrides.conf | 4 +- .../org/thp/thehive/DatabaseBuilder.scala | 3 +- thehive/test/org/thp/thehive/QueryTest.scala | 3 + .../thp/thehive/services/CaseSrvTest.scala | 2 +- 86 files changed, 257 insertions(+), 572 deletions(-) delete mode 100644 cortex/connector/src/main/scala/org/thp/thehive/connector/cortex/models/SchemaUpdaterActor.scala delete mode 100644 cortex/connector/src/main/scala/org/thp/thehive/connector/cortex/models/SchemaUpdaterSerializer.scala delete mode 100644 thehive/app/org/thp/thehive/models/SchemaUpdaterActor.scala delete mode 100644 thehive/app/org/thp/thehive/models/SchemaUpdaterSerializer.scala create mode 100644 thehive/test/org/thp/thehive/QueryTest.scala diff --git a/ScalliGraph b/ScalliGraph index 2426d2e5f1..a612bcd28d 160000 --- a/ScalliGraph +++ b/ScalliGraph @@ -1 +1 @@ -Subproject commit 2426d2e5f19ae24ed7c114d5ebd3c902027a6679 +Subproject commit a612bcd28dffd617d29ecfd5d0511e3d5ed3666d diff --git a/conf/logback.xml b/conf/logback.xml index 52ba1c47b9..94caf258db 100644 --- a/conf/logback.xml +++ b/conf/logback.xml @@ -36,6 +36,8 @@ + +