| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
38
|
27094
|
1510
-
1532
|
Apply
|
org.make.api.idea.DefaultIdeaServiceComponent.DefaultIdeaService.<init>
|
org.make.api.idea.ideaservicetest
|
new DefaultIdeaServiceComponent.this.DefaultIdeaService()
|
|
43
|
24717
|
1700
-
1749
|
Apply
|
org.make.api.idea.IdeaSearchEngine.searchIdeas
|
org.make.api.idea.ideaservicetest
|
DefaultIdeaServiceComponent.this.elasticsearchIdeaAPI.searchIdeas(ideaSearchQuery)
|
|
47
|
22285
|
1839
-
1882
|
Apply
|
org.make.api.idea.PersistentIdeaService.findAllByIdeaIds
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.findAllByIdeaIds(ids)
|
|
51
|
26134
|
1964
-
2001
|
Apply
|
org.make.api.idea.PersistentIdeaService.findOne
|
org.make.api.idea.ideaservicetest
|
DefaultIdeaServiceComponent.this.persistentIdeaService.findOne(ideaId)
|
|
55
|
24920
|
2111
-
2164
|
Apply
|
org.make.api.idea.PersistentIdeaService.findOneByName
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.findOneByName(questionId, name)
|
|
60
|
25171
|
2279
-
2279
|
Select
|
org.make.core.idea.Idea.apply$default$5
|
|
org.make.core.idea.Idea.apply$default$5
|
|
60
|
22975
|
2279
-
2549
|
Apply
|
org.make.core.idea.Idea.apply
|
|
org.make.core.idea.Idea.apply(x$1, x$2, x$4, x$3, x$7, x$5, x$6)
|
|
61
|
22968
|
2304
-
2328
|
Apply
|
org.make.core.technical.IdGenerator.nextIdeaId
|
|
DefaultIdeaServiceComponent.this.idGenerator.nextIdeaId()
|
|
63
|
24177
|
2376
-
2401
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
63
|
26590
|
2381
-
2400
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
64
|
27996
|
2427
-
2447
|
Select
|
org.make.core.question.Question.operationId
|
|
question.operationId
|
|
65
|
24841
|
2471
-
2493
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[java.time.ZonedDateTime](org.make.core.DateHelper.now())
|
|
65
|
27035
|
2476
-
2492
|
Apply
|
org.make.core.DefaultDateHelper.now
|
|
org.make.core.DateHelper.now()
|
|
66
|
26058
|
2517
-
2539
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[java.time.ZonedDateTime](org.make.core.DateHelper.now())
|
|
66
|
22301
|
2522
-
2538
|
Apply
|
org.make.core.DefaultDateHelper.now
|
|
org.make.core.DateHelper.now()
|
|
68
|
22434
|
2556
-
2964
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.findOneByName(question.questionId, name).flatMap[org.make.core.idea.Idea](((result: Option[org.make.core.idea.Idea]) => if (result.isDefined)
scala.concurrent.Future.failed[Nothing](org.make.api.idea.IdeaExceptions.IdeaAlreadyExistsException.apply(idea.name))
else
DefaultIdeaServiceComponent.this.persistentIdeaService.persist(idea).map[org.make.core.idea.Idea](((idea: org.make.core.idea.Idea) => {
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaCreatedEvent.apply(idea.ideaId, org.make.core.DateHelper.now()));
idea
}))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
68
|
26572
|
2592
-
2611
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
68
|
24637
|
2627
-
2627
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
69
|
24187
|
2651
-
2667
|
Select
|
scala.Option.isDefined
|
|
result.isDefined
|
|
70
|
24848
|
2681
-
2733
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.api.idea.IdeaExceptions.IdeaAlreadyExistsException.apply(idea.name))
|
|
70
|
27919
|
2722
-
2731
|
Select
|
org.make.core.idea.Idea.name
|
|
idea.name
|
|
70
|
27042
|
2695
-
2732
|
Apply
|
org.make.api.idea.IdeaExceptions.IdeaAlreadyExistsException.apply
|
|
org.make.api.idea.IdeaExceptions.IdeaAlreadyExistsException.apply(idea.name)
|
|
70
|
22424
|
2681
-
2733
|
Block
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.api.idea.IdeaExceptions.IdeaAlreadyExistsException.apply(idea.name))
|
|
72
|
24307
|
2801
-
2801
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
72
|
28159
|
2761
-
2945
|
ApplyToImplicitArgs
|
scala.concurrent.Future.map
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.persist(idea).map[org.make.core.idea.Idea](((idea: org.make.core.idea.Idea) => {
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaCreatedEvent.apply(idea.ideaId, org.make.core.DateHelper.now()));
idea
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
72
|
27049
|
2761
-
2945
|
Block
|
scala.concurrent.Future.map
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.persist(idea).map[org.make.core.idea.Idea](((idea: org.make.core.idea.Idea) => {
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaCreatedEvent.apply(idea.ideaId, org.make.core.DateHelper.now()));
idea
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
73
|
22907
|
2847
-
2915
|
Apply
|
org.make.api.idea.IdeaCreatedEvent.apply
|
|
IdeaCreatedEvent.apply(idea.ideaId, org.make.core.DateHelper.now())
|
|
73
|
26071
|
2873
-
2884
|
Select
|
org.make.core.idea.Idea.ideaId
|
|
idea.ideaId
|
|
73
|
26582
|
2823
-
2916
|
Apply
|
org.make.api.technical.EventBusService.publish
|
|
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaCreatedEvent.apply(idea.ideaId, org.make.core.DateHelper.now()))
|
|
73
|
25179
|
2898
-
2914
|
Apply
|
org.make.core.DefaultDateHelper.now
|
|
org.make.core.DateHelper.now()
|
|
82
|
22853
|
3115
-
3115
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
82
|
26527
|
3069
-
3487
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.findOne(ideaId).flatMap[Int](((result: Option[org.make.core.idea.Idea]) => if (result.isEmpty)
scala.concurrent.Future.failed[Nothing](org.make.api.idea.IdeaExceptions.IdeaDoesnotExistsException.apply(ideaId.value))
else
DefaultIdeaServiceComponent.this.persistentIdeaService.modify(ideaId, name, status).map[Int](((idea: Int) => {
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaUpdatedEvent.apply(ideaId, org.make.core.DateHelper.now()));
idea
}))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
83
|
26203
|
3139
-
3153
|
Select
|
scala.Option.isEmpty
|
|
result.isEmpty
|
|
84
|
26517
|
3167
-
3222
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.api.idea.IdeaExceptions.IdeaDoesnotExistsException.apply(ideaId.value))
|
|
84
|
22915
|
3181
-
3221
|
Apply
|
org.make.api.idea.IdeaExceptions.IdeaDoesnotExistsException.apply
|
|
org.make.api.idea.IdeaExceptions.IdeaDoesnotExistsException.apply(ideaId.value)
|
|
84
|
24045
|
3208
-
3220
|
Select
|
org.make.core.idea.IdeaId.value
|
|
ideaId.value
|
|
84
|
24317
|
3167
-
3222
|
Block
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.api.idea.IdeaExceptions.IdeaDoesnotExistsException.apply(ideaId.value))
|
|
86
|
26056
|
3250
-
3469
|
ApplyToImplicitArgs
|
scala.concurrent.Future.map
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.modify(ideaId, name, status).map[Int](((idea: Int) => {
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaUpdatedEvent.apply(ideaId, org.make.core.DateHelper.now()));
idea
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
86
|
22365
|
3330
-
3330
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
86
|
23884
|
3250
-
3469
|
Block
|
scala.concurrent.Future.map
|
|
DefaultIdeaServiceComponent.this.persistentIdeaService.modify(ideaId, name, status).map[Int](((idea: Int) => {
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaUpdatedEvent.apply(ideaId, org.make.core.DateHelper.now()));
idea
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
87
|
26983
|
3376
-
3439
|
Apply
|
org.make.api.idea.IdeaUpdatedEvent.apply
|
|
IdeaUpdatedEvent.apply(ideaId, org.make.core.DateHelper.now())
|
|
87
|
27991
|
3422
-
3438
|
Apply
|
org.make.core.DefaultDateHelper.now
|
|
org.make.core.DateHelper.now()
|
|
87
|
24649
|
3352
-
3440
|
Apply
|
org.make.api.technical.EventBusService.publish
|
|
DefaultIdeaServiceComponent.this.eventBusService.publish(IdeaUpdatedEvent.apply(ideaId, org.make.core.DateHelper.now()))
|