Skip to content

Commit

Permalink
Merge branch 'feature/indexFix' into develop-th4
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 9, 2021
2 parents 53c022d + b685b77 commit 7140dde
Show file tree
Hide file tree
Showing 46 changed files with 961 additions and 772 deletions.
17 changes: 5 additions & 12 deletions conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,12 @@
<appender-ref ref="STDOUT"/>
</appender>

<logger name="org.thp.scalligraph.models" level="TRACE"/>
<logger name="org.thp.scalligraph.traversal" level="TRACE"/>
<logger name="org.thp.thehive.services.StreamSrv" level="INFO"/>
<logger name="org.thp.thehive.services.StreamActor" level="INFO"/>
<!-- do not set the following logger to TRACE -->
<logger name="org.thp.scalligraph.traversal" level="INFO"/>
<logger name="org.reflections8.Reflections" level="ERROR" />
<!--
<logger name="org.janusgraph.graphdb" level="INFO" />
<logger name="org.thp.thehive.client" level="DEBUG" />
<logger name="org.thp.thehive.services.LocalAuthSrv" level="TRACE" />
<logger name="org.thp.scalligraph.graphql" level="TRACE" />
<logger name="org.janusgraph.graphdb.transaction.StandardJanusGraphTx" level="ERROR" />
-->
<logger name="org.thp.thehive" level="TRACE"/>

<logger name="org.thp.scalligraph.models" level="DEBUG"/>
<logger name="org.thp" level="INFO"/>

<root level="INFO">
<appender-ref ref="ASYNCFILE"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.thp.scalligraph.auth.AuthContext
import org.thp.scalligraph.controllers.FieldsParser
import org.thp.scalligraph.models._
import org.thp.scalligraph.query._
import org.thp.scalligraph.services.config.{ApplicationConfig, ConfigItem}
import org.thp.scalligraph.traversal.Traversal
import org.thp.scalligraph.traversal.TraversalOps._
import org.thp.scalligraph.{BadRequestError, EntityIdOrName}
Expand All @@ -18,7 +19,8 @@ import javax.inject.{Inject, Singleton}
import scala.reflect.runtime.{universe => ru}

@Singleton
class CortexQueryExecutor @Inject() (implicit
class CortexQueryExecutor @Inject() (
appConfig: ApplicationConfig,
override val db: Database,
job: PublicJob,
report: PublicAnalyzerTemplate,
Expand All @@ -27,6 +29,9 @@ class CortexQueryExecutor @Inject() (implicit
) extends QueryExecutor {
lazy val controllers: List[PublicData] = action :: report :: job :: analyzerTemplate :: Nil

val limitedCountThresholdConfig: ConfigItem[Long, Long] = appConfig.item[Long]("query.limitedCountThreshold", "Maximum number returned by a count")
override val limitedCountThreshold: Long = limitedCountThresholdConfig.get

override lazy val publicProperties: PublicProperties = controllers.map(_.publicProperties).reduce(_ ++ _)

override lazy val queries: Seq[ParamQuery[_]] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
pageSize: self.filtering.context.pageSize,
filter: this.filtering.buildQuery(),
operations: [
{
'_name': 'listTag'
},
{
'_name': 'freetags'
}
Expand Down
Loading

0 comments on commit 7140dde

Please sign in to comment.