| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
39
|
6779
|
1429
-
1458
|
Select
|
org.make.api.idea.IdeaProducerBehavior.topicKey
|
|
IdeaProducerBehavior.topicKey
|
|
40
|
5962
|
1501
-
1502
|
Literal
|
<nosymbol>
|
|
5
|
|
40
|
6904
|
1493
-
1511
|
Apply
|
akka.util.Timeout.apply
|
|
akka.util.Timeout.apply(scala.concurrent.duration.`package`.DurationInt(5).seconds)
|
|
40
|
7451
|
1501
-
1510
|
Select
|
scala.concurrent.duration.DurationConversions.seconds
|
|
scala.concurrent.duration.`package`.DurationInt(5).seconds
|
|
43
|
6069
|
1612
-
1625
|
Select
|
org.make.api.idea.IdeaEventWrapper.event
|
|
message.event
|
|
44
|
7488
|
1672
-
1695
|
Apply
|
org.make.api.idea.IdeaConsumerBehavior.onCreateOrUpdate
|
|
IdeaConsumerBehavior.this.onCreateOrUpdate(event)
|
|
45
|
6695
|
1734
-
1757
|
Apply
|
org.make.api.idea.IdeaConsumerBehavior.onCreateOrUpdate
|
|
IdeaConsumerBehavior.this.onCreateOrUpdate(event)
|
|
50
|
6310
|
1853
-
1865
|
Select
|
org.make.api.idea.IdeaEvent.ideaId
|
|
event.ideaId
|
|
50
|
6767
|
1874
-
1874
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
50
|
7597
|
1875
-
1888
|
Apply
|
org.make.api.idea.IdeaConsumerBehavior.indexOrUpdate
|
|
IdeaConsumerBehavior.this.indexOrUpdate(idea)
|
|
50
|
5967
|
1832
-
1889
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
IdeaConsumerBehavior.this.retrieveAndShapeIdea(event.ideaId).flatMap[akka.Done](((idea: org.make.core.idea.indexed.IndexedIdea) => IdeaConsumerBehavior.this.indexOrUpdate(idea)))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
54
|
7459
|
1956
-
1980
|
Apply
|
grizzled.slf4j.Logging.debug
|
|
IdeaConsumerBehavior.this.debug(("Indexing ".+(idea): String))
|
|
56
|
7004
|
2026
-
2037
|
Select
|
org.make.core.idea.indexed.IndexedIdea.ideaId
|
|
idea.ideaId
|
|
57
|
7629
|
2054
-
2054
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
57
|
6854
|
1985
-
2238
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
IdeaConsumerBehavior.this.elasticsearchIdeaAPI.findIdeaById(idea.ideaId).flatMap[akka.Done](((x0$1: Option[org.make.core.idea.indexed.IndexedIdea]) => x0$1 match {
case scala.None => IdeaConsumerBehavior.this.elasticsearchIdeaAPI.indexIdea(idea, IdeaConsumerBehavior.this.elasticsearchIdeaAPI.indexIdea$default$2)
case (value: org.make.core.idea.indexed.IndexedIdea): Some[org.make.core.idea.indexed.IndexedIdea]((found @ _)) => IdeaConsumerBehavior.this.elasticsearchIdeaAPI.updateIdea({
<artifact> val x$1: Int = found.proposalsCount;
<artifact> val x$2: org.make.core.idea.IdeaId = idea.copy$default$1;
<artifact> val x$3: String = idea.copy$default$2;
<artifact> val x$4: Option[org.make.core.question.QuestionId] @scala.reflect.internal.annotations.uncheckedBounds = idea.copy$default$3;
<artifact> val x$5: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = idea.copy$default$4;
<artifact> val x$6: org.make.core.idea.IdeaStatus = idea.copy$default$5;
<artifact> val x$7: java.time.ZonedDateTime = idea.copy$default$6;
<artifact> val x$8: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = idea.copy$default$7;
idea.copy(x$2, x$3, x$4, x$5, x$6, x$7, x$8, x$1)
}, IdeaConsumerBehavior.this.elasticsearchIdeaAPI.updateIdea$default$2)
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
58
|
7464
|
2084
-
2120
|
Apply
|
org.make.api.idea.IdeaSearchEngine.indexIdea
|
|
IdeaConsumerBehavior.this.elasticsearchIdeaAPI.indexIdea(idea, IdeaConsumerBehavior.this.elasticsearchIdeaAPI.indexIdea$default$2)
|
|
58
|
6135
|
2105
-
2105
|
Select
|
org.make.api.idea.IdeaSearchEngine.indexIdea$default$2
|
|
IdeaConsumerBehavior.this.elasticsearchIdeaAPI.indexIdea$default$2
|
|
59
|
7557
|
2181
-
2229
|
Apply
|
org.make.core.idea.indexed.IndexedIdea.copy
|
|
idea.copy(x$2, x$3, x$4, x$5, x$6, x$7, x$8, x$1)
|
|
59
|
7416
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$5
|
|
idea.copy$default$5
|
|
59
|
6734
|
2170
-
2170
|
Select
|
org.make.api.idea.IdeaSearchEngine.updateIdea$default$2
|
|
IdeaConsumerBehavior.this.elasticsearchIdeaAPI.updateIdea$default$2
|
|
59
|
6097
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$7
|
|
idea.copy$default$7
|
|
59
|
6728
|
2208
-
2228
|
Select
|
org.make.core.idea.indexed.IndexedIdea.proposalsCount
|
|
found.proposalsCount
|
|
59
|
5974
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$4
|
|
idea.copy$default$4
|
|
59
|
5791
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$1
|
|
idea.copy$default$1
|
|
59
|
6849
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$3
|
|
idea.copy$default$3
|
|
59
|
7010
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$6
|
|
idea.copy$default$6
|
|
59
|
7626
|
2186
-
2186
|
Select
|
org.make.core.idea.indexed.IndexedIdea.copy$default$2
|
|
idea.copy$default$2
|
|
59
|
5885
|
2149
-
2230
|
Apply
|
org.make.api.idea.IdeaSearchEngine.updateIdea
|
|
IdeaConsumerBehavior.this.elasticsearchIdeaAPI.updateIdea({
<artifact> val x$1: Int = found.proposalsCount;
<artifact> val x$2: org.make.core.idea.IdeaId = idea.copy$default$1;
<artifact> val x$3: String = idea.copy$default$2;
<artifact> val x$4: Option[org.make.core.question.QuestionId] @scala.reflect.internal.annotations.uncheckedBounds = idea.copy$default$3;
<artifact> val x$5: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = idea.copy$default$4;
<artifact> val x$6: org.make.core.idea.IdeaStatus = idea.copy$default$5;
<artifact> val x$7: java.time.ZonedDateTime = idea.copy$default$6;
<artifact> val x$8: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = idea.copy$default$7;
idea.copy(x$2, x$3, x$4, x$5, x$6, x$7, x$8, x$1)
}, IdeaConsumerBehavior.this.elasticsearchIdeaAPI.updateIdea$default$2)
|
|
64
|
7561
|
2353
-
2353
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
64
|
6663
|
2320
-
2561
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
IdeaConsumerBehavior.this.ideaService.fetchOne(id).flatMap[org.make.core.idea.indexed.IndexedIdea](((x0$1: Option[org.make.core.idea.Idea]) => x0$1 match {
case scala.None => scala.concurrent.Future.failed[Nothing](new scala.`package`.IllegalArgumentException(("Idea ".+(id.value).+(" doesn\'t exist"): String)))
case (value: org.make.core.idea.Idea): Some[org.make.core.idea.Idea]((idea @ _)) => scala.concurrent.Future.successful[org.make.core.idea.indexed.IndexedIdea](org.make.core.idea.indexed.IndexedIdea.createFromIdea(idea, 0))
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
65
|
7423
|
2380
-
2458
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](new scala.`package`.IllegalArgumentException(("Idea ".+(id.value).+(" doesn\'t exist"): String)))
|
|
65
|
5957
|
2394
-
2457
|
Apply
|
java.lang.IllegalArgumentException.<init>
|
|
new scala.`package`.IllegalArgumentException(("Idea ".+(id.value).+(" doesn\'t exist"): String))
|
|
66
|
6943
|
2502
-
2554
|
Apply
|
org.make.core.idea.indexed.IndexedIdea.createFromIdea
|
|
org.make.core.idea.indexed.IndexedIdea.createFromIdea(idea, 0)
|
|
66
|
6101
|
2484
-
2555
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[org.make.core.idea.indexed.IndexedIdea](org.make.core.idea.indexed.IndexedIdea.createFromIdea(idea, 0))
|
|
70
|
5892
|
2592
-
2607
|
Literal
|
<nosymbol>
|
|
"idea-consumer"
|
|
75
|
6812
|
2745
-
2825
|
Apply
|
org.make.api.technical.KafkaConsumerBehavior.createBehavior
|
|
new IdeaConsumerBehavior(ideaService, elasticsearchIdeaAPI).createBehavior(IdeaConsumerBehavior.this.name)
|
|
75
|
7618
|
2820
-
2824
|
Select
|
org.make.api.idea.IdeaConsumerBehavior.name
|
|
IdeaConsumerBehavior.this.name
|
|
76
|
5966
|
2847
-
2862
|
Literal
|
<nosymbol>
|
|
"idea-consumer"
|