1 /*
2  *  Make.org Core API
3  *  Copyright (C) 2018 Make.org
4  *
5  * This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU Affero General Public License as
7  *  published by the Free Software Foundation, either version 3 of the
8  *  License, or (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU Affero General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Affero General Public License
16  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  *
18  */
19 
20 package org.make.api.organisation
21 
22 import com.github.t3hnar.bcrypt._
23 import org.make.api.extensions.MakeSettingsComponent
24 import org.make.api.proposal.PublishedProposalEvent.ReindexProposal
25 import org.make.api.proposal._
26 import org.make.api.technical.auth.UserTokenGeneratorComponent
27 import org.make.api.technical.{EventBusServiceComponent, IdGeneratorComponent, ShortenedNames}
28 import org.make.api.user.UserExceptions.EmailAlreadyRegisteredException
29 import org.make.api.user.{PersistentUserServiceComponent, UserServiceComponent}
30 import org.make.api.userhistory.{
31   OrganisationEmailChangedEvent,
32   OrganisationRegisteredEvent,
33   OrganisationUpdatedEvent,
34   RequestUserVotedProposals,
35   UserHistoryCoordinatorServiceComponent
36 }
37 import org.make.core.technical.Pagination
38 import org.make.core.common.indexed.Sort
39 import org.make.core.history.HistoryActions
40 import org.make.core.operation.OperationKind
41 import org.make.core.profile.Profile
42 import org.make.core.proposal.{CountrySearchFilter => _, LanguageSearchFilter => _, _}
43 import org.make.core.reference.{Country, Language}
44 import org.make.core.user._
45 import org.make.core.user.indexed.OrganisationSearchResult
46 import org.make.core.{user, DateHelper, Order, RequestContext}
47 
48 import scala.concurrent.ExecutionContext.Implicits.global
49 import scala.concurrent.Future
50 
51 trait DefaultOrganisationServiceComponent extends OrganisationServiceComponent with ShortenedNames {
52   this: IdGeneratorComponent
53     with UserServiceComponent
54     with PersistentUserServiceComponent
55     with EventBusServiceComponent
56     with UserHistoryCoordinatorServiceComponent
57     with ProposalServiceComponent
58     with ProposalSearchEngineComponent
59     with OrganisationSearchEngineComponent
60     with UserTokenGeneratorComponent
61     with MakeSettingsComponent =>
62 
63   override lazy val organisationService: OrganisationService = new DefaultOrganisationService
64 
65   class DefaultOrganisationService extends OrganisationService {
66 
67     val resetTokenB2BExpiresIn: Long = makeSettings.resetTokenB2BExpiresIn.toSeconds
68 
69     override def getOrganisation(userId: UserId): Future[Option[User]] = {
70       persistentUserService.findByUserIdAndUserType(userId, UserType.UserTypeOrganisation)
71     }
72 
73     override def getOrganisations: Future[Seq[User]] = {
74       persistentUserService.findAllOrganisations()
75     }
76 
77     /**
78       * This method fetch the organisations from cockroach
79       * start and end are here to paginate the result
80       * sort and order are here to sort the result
81       */
82     override def find(
83       offset: Pagination.Offset,
84       end: Option[Pagination.End],
85       sort: Option[String],
86       order: Option[Order],
87       ids: Option[Seq[UserId]],
88       organisationName: Option[String]
89     ): Future[Seq[User]] = {
90       persistentUserService.findOrganisations(offset, end, sort, order, ids, organisationName)
91     }
92 
93     override def count(ids: Option[Seq[UserId]], organisationName: Option[String]): Future[Int] = {
94       persistentUserService.countOrganisations(ids, organisationName)
95     }
96 
97     /**
98       * This method fetch the organisations from elasticsearch
99       * organisations can be search by name or slug
100       */
101     override def search(
102       organisationName: Option[String],
103       slug: Option[String],
104       organisationIds: Option[Seq[UserId]],
105       country: Option[Country],
106       language: Option[Language]
107     ): Future[OrganisationSearchResult] = {
108       elasticsearchOrganisationAPI.searchOrganisations(
109         OrganisationSearchQuery(filters = OrganisationSearchFilters
110           .parse(
111             organisationName = organisationName.map(orgaName => OrganisationNameSearchFilter(orgaName)),
112             slug = slug.map(user.SlugSearchFilter.apply),
113             organisationIds = organisationIds.map(OrganisationIdsSearchFilter.apply),
114             country = country.map(CountrySearchFilter.apply),
115             language = language.map(LanguageSearchFilter.apply)
116           )
117         )
118       )
119     }
120 
121     override def searchWithQuery(query: OrganisationSearchQuery): Future[OrganisationSearchResult] = {
122       elasticsearchOrganisationAPI.searchOrganisations(query)
123     }
124 
125     private def registerOrganisation(
126       organisationRegisterData: OrganisationRegisterData,
127       lowerCasedEmail: String,
128       country: Country,
129       language: Language,
130       resetToken: String
131     ): Future[User] = {
132       val user = User(
133         userId = idGenerator.nextUserId(),
134         email = lowerCasedEmail,
135         firstName = None,
136         lastName = None,
137         organisationName = Some(organisationRegisterData.name),
138         lastIp = None,
139         hashedPassword = organisationRegisterData.password.map(_.boundedBcrypt),
140         enabled = true,
141         emailVerified = true,
142         userType = UserType.UserTypeOrganisation,
143         lastConnection = None,
144         verificationToken = None,
145         verificationTokenExpiresAt = None,
146         resetToken = Some(resetToken),
147         resetTokenExpiresAt = Some(DateHelper.now().plusSeconds(resetTokenB2BExpiresIn)),
148         roles = Seq(Role.RoleActor),
149         country = country,
150         language = language,
151         profile = Profile.parseProfile(
152           avatarUrl = organisationRegisterData.avatar,
153           description = organisationRegisterData.description,
154           optInNewsletter = false,
155           website = organisationRegisterData.website,
156           crmCountry = country,
157           crmLanguage = language
158         ),
159         publicProfile = true,
160         availableQuestions = Seq.empty,
161         availableEvents = Seq.empty,
162         privacyPolicyApprovalDate = Some(DateHelper.now())
163       )
164       persistentUserService.persist(user)
165     }
166 
167     override def register(
168       organisationRegisterData: OrganisationRegisterData,
169       requestContext: RequestContext
170     ): Future[User] = {
171 
172       val trimmedRegisterData = organisationRegisterData.trim
173       val country = trimmedRegisterData.country
174       val language = trimmedRegisterData.language
175       val lowerCasedEmail: String = trimmedRegisterData.email.toLowerCase()
176 
177       val result = for {
178         emailExists <- persistentUserService.emailExists(lowerCasedEmail)
179         _           <- verifyEmail(lowerCasedEmail, emailExists)
180         resetToken  <- userTokenGenerator.generateResetToken().map { case (_, token) => token }
181         user        <- registerOrganisation(trimmedRegisterData, lowerCasedEmail, country, language, resetToken)
182       } yield user
183 
184       result.map { user =>
185         eventBusService.publish(
186           OrganisationRegisteredEvent(
187             connectedUserId = Some(user.userId),
188             userId = user.userId,
189             requestContext = requestContext,
190             email = user.email,
191             country = user.country,
192             eventDate = DateHelper.now(),
193             eventId = Some(idGenerator.nextEventId())
194           )
195         )
196         user
197       }
198     }
199 
200     private def updateProposalsFromOrganisation(
201       organisationId: UserId,
202       requestContext: RequestContext
203     ): Future[Unit] = {
204       for {
205         _ <- getVotedProposals(
206           organisationId,
207           maybeUserId = None,
208           filterVotes = None,
209           filterQualifications = None,
210           sort = None,
211           limit = None,
212           offset = None,
213           requestContext
214         ).map(
215           result =>
216             result.results.foreach(
217               proposalWithVote =>
218                 eventBusService
219                   .publish(
220                     ReindexProposal(
221                       proposalWithVote.proposal.id,
222                       DateHelper.now(),
223                       requestContext,
224                       Some(idGenerator.nextEventId())
225                     )
226                   )
227             )
228         )
229         _ <- elasticsearchProposalAPI
230           .searchProposals(searchQuery = SearchQuery(filters = Some(
231             SearchFilters(
232               users = Some(UserSearchFilter(userIds = Seq(organisationId))),
233               status = Some(StatusSearchFilter(ProposalStatus.values.filter(_ != ProposalStatus.Archived)))
234             )
235           )
236           )
237           )
238           .map(
239             result =>
240               result.results.foreach(
241                 proposal =>
242                   eventBusService
243                     .publish(
244                       ReindexProposal(proposal.id, DateHelper.now(), requestContext, Some(idGenerator.nextEventId()))
245                     )
246               )
247           )
248       } yield {}
249     }
250 
251     private def updateOrganisationEmail(
252       organisation: User,
253       moderatorId: Option[UserId],
254       newEmail: Option[String],
255       oldEmail: String,
256       requestContext: RequestContext
257     ): Future[Unit] = {
258       newEmail match {
259         case Some(email) =>
260           Future {
261             eventBusService.publish(
262               OrganisationEmailChangedEvent(
263                 connectedUserId = moderatorId,
264                 userId = organisation.userId,
265                 requestContext = requestContext,
266                 country = organisation.country,
267                 eventDate = DateHelper.now(),
268                 oldEmail = oldEmail,
269                 newEmail = email,
270                 eventId = Some(idGenerator.nextEventId())
271               )
272             )
273           }
274         case None => Future.unit
275       }
276     }
277 
278     override def update(
279       organisation: User,
280       moderatorId: Option[UserId],
281       oldEmail: String,
282       requestContext: RequestContext
283     ): Future[UserId] = {
284 
285       val newEmail: Option[String] = organisation.email.trim match {
286         case email if email.toLowerCase == oldEmail.toLowerCase => None
287         case email                                              => Some(email)
288       }
289 
290       for {
291         emailExists <- updateMailExists(newEmail.map(_.toLowerCase))
292         _           <- verifyEmail(organisation.email.toLowerCase, emailExists)
293         update <- persistentUserService.modifyOrganisation(organisation).flatMap {
294           case Right(orga) =>
295             updateOrganisationEmail(organisation, moderatorId, newEmail, oldEmail, requestContext).flatMap { _ =>
296               updateProposalsFromOrganisation(orga.userId, requestContext).flatMap { _ =>
297                 eventBusService.publish(
298                   OrganisationUpdatedEvent(
299                     connectedUserId = Some(orga.userId),
300                     userId = orga.userId,
301                     requestContext = requestContext,
302                     country = orga.country,
303                     eventDate = DateHelper.now(),
304                     eventId = Some(idGenerator.nextEventId())
305                   )
306                 )
307                 Future.successful(orga.userId)
308               }
309             }
310           case Left(e) => Future.failed(e)
311         }
312       } yield update
313     }
314 
315     private def verifyEmail(lowerCasedEmail: String, emailExists: Boolean): Future[Boolean] = {
316       if (emailExists) {
317         Future.failed(EmailAlreadyRegisteredException(lowerCasedEmail))
318       } else {
319         Future.successful(true)
320       }
321     }
322 
323     private def updateMailExists(lowerCasedEmail: Option[String]): Future[Boolean] = {
324       lowerCasedEmail.map { mail =>
325         persistentUserService.emailExists(mail)
326       }.getOrElse(Future.successful(false))
327     }
328 
329     override def getVotedProposals(
330       organisationId: UserId,
331       maybeUserId: Option[UserId],
332       filterVotes: Option[Seq[VoteKey]],
333       filterQualifications: Option[Seq[QualificationKey]],
334       sort: Option[Sort],
335       limit: Option[Pagination.Limit],
336       offset: Option[Pagination.Offset],
337       requestContext: RequestContext
338     ): Future[ProposalsResultWithUserVoteSeededResponse] = {
339       val futureProposalWithVotes: Future[Map[ProposalId, HistoryActions.VoteAndQualifications]] = for {
340         proposalIds <- userHistoryCoordinatorService.retrieveVotedProposals(
341           RequestUserVotedProposals(
342             organisationId,
343             filterVotes = filterVotes,
344             filterQualifications = filterQualifications
345           )
346         )
347         withVotes <- userHistoryCoordinatorService.retrieveVoteAndQualifications(organisationId, proposalIds)
348       } yield withVotes
349 
350       futureProposalWithVotes.flatMap {
351         case proposalIdsWithVotes if proposalIdsWithVotes.isEmpty =>
352           Future.successful(ProposalsResultWithUserVoteSeededResponse(total = 0, Seq.empty, None))
353         case proposalIdsWithVotes =>
354           val proposalIds: Seq[ProposalId] = proposalIdsWithVotes.toSeq.sortWith {
355             case ((_, firstVotesAndQualifications), (_, nextVotesAndQualifications)) =>
356               firstVotesAndQualifications.date.isAfter(nextVotesAndQualifications.date)
357           }.map {
358             case (proposalId, _) => proposalId
359           }
360           proposalService
361             .searchForUser(
362               userId = Some(organisationId),
363               query = SearchQuery(
364                 filters = Some(
365                   SearchFilters(
366                     proposal = Some(ProposalSearchFilter(proposalIds = proposalIds)),
367                     operationKinds = Some(OperationKindsSearchFilter(OperationKind.publicKinds))
368                   )
369                 ),
370                 sort = sort,
371                 limit = limit,
372                 offset = offset
373               ),
374               requestContext = requestContext,
375               preferredLanguage = None,
376               questionDefaultLanguage = None
377             )
378             .map { proposalResultSeededResponse =>
379               proposalResultSeededResponse.copy(results = proposalResultSeededResponse.results.sortWith {
380                 case (first, next) => proposalIds.indexOf(first.id) < proposalIds.indexOf(next.id)
381               })
382             }
383             .map { proposalResults =>
384               ProposalsResultWithUserVoteSeededResponse(
385                 total = proposalResults.total,
386                 results = proposalResults.results.map { proposal =>
387                   val proposalVoteAndQualification = proposalIdsWithVotes(proposal.id)
388                   ProposalResultWithUserVote(
389                     proposal,
390                     proposalVoteAndQualification.voteKey,
391                     proposalVoteAndQualification.date,
392                     proposal.votes.find(_.voteKey == proposalVoteAndQualification.voteKey)
393                   )
394                 },
395                 seed = None
396               )
397             }
398       }
399     }
400 
401   }
402 }
Line Stmt Id Pos Tree Symbol Tests Code
67 23663 2732 - 2777 Select scala.concurrent.duration.Duration.toSeconds org.make.api.organisation.organisationservicetest DefaultOrganisationServiceComponent.this.makeSettings.resetTokenB2BExpiresIn.toSeconds
70 27253 2914 - 2943 Select org.make.core.user.UserType.UserTypeOrganisation org.make.api.organisation.organisationservicetest org.make.core.user.UserType.UserTypeOrganisation
70 25095 2860 - 2944 Apply org.make.api.user.PersistentUserService.findByUserIdAndUserType org.make.api.organisation.organisationservicetest DefaultOrganisationServiceComponent.this.persistentUserService.findByUserIdAndUserType(userId, org.make.core.user.UserType.UserTypeOrganisation)
74 24011 3015 - 3059 Apply org.make.api.user.PersistentUserService.findAllOrganisations org.make.api.organisation.organisationservicetest DefaultOrganisationServiceComponent.this.persistentUserService.findAllOrganisations()
90 27730 3501 - 3589 Apply org.make.api.user.PersistentUserService.findOrganisations DefaultOrganisationServiceComponent.this.persistentUserService.findOrganisations(offset, end, sort, order, ids, organisationName)
94 25392 3703 - 3766 Apply org.make.api.user.PersistentUserService.countOrganisations DefaultOrganisationServiceComponent.this.persistentUserService.countOrganisations(ids, organisationName)
108 23151 4158 - 4698 Apply org.make.api.organisation.OrganisationSearchEngine.searchOrganisations org.make.api.organisation.organisationservicetest DefaultOrganisationServiceComponent.this.elasticsearchOrganisationAPI.searchOrganisations(org.make.core.user.OrganisationSearchQuery.apply({ <artifact> val x$1: Option[org.make.core.user.OrganisationNameSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = organisationName.map[org.make.core.user.OrganisationNameSearchFilter](((orgaName: String) => org.make.core.user.OrganisationNameSearchFilter.apply(orgaName))); <artifact> val x$2: Option[org.make.core.user.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = slug.map[org.make.core.user.SlugSearchFilter](((slug: String) => org.make.core.user.SlugSearchFilter.apply(slug))); <artifact> val x$3: Option[org.make.core.user.OrganisationIdsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = organisationIds.map[org.make.core.user.OrganisationIdsSearchFilter](((organisationIds: Seq[org.make.core.user.UserId]) => org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds))); <artifact> val x$4: Option[org.make.core.user.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = country.map[org.make.core.user.CountrySearchFilter](((country: org.make.core.reference.Country) => org.make.core.user.CountrySearchFilter.apply(country))); <artifact> val x$5: Option[org.make.core.user.LanguageSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = language.map[org.make.core.user.LanguageSearchFilter](((language: org.make.core.reference.Language) => org.make.core.user.LanguageSearchFilter.apply(language))); <artifact> val x$6: Option[org.make.core.user.DescriptionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.user.OrganisationSearchFilters.parse$default$4; org.make.core.user.OrganisationSearchFilters.parse(x$3, x$1, x$2, x$6, x$4, x$5) }, org.make.core.user.OrganisationSearchQuery.apply$default$2, org.make.core.user.OrganisationSearchQuery.apply$default$3, org.make.core.user.OrganisationSearchQuery.apply$default$4, org.make.core.user.OrganisationSearchQuery.apply$default$5, org.make.core.user.OrganisationSearchQuery.apply$default$6))
109 25252 4216 - 4216 Select org.make.core.user.OrganisationSearchQuery.apply$default$4 org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchQuery.apply$default$4
109 25344 4216 - 4690 Apply org.make.core.user.OrganisationSearchQuery.apply org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchQuery.apply({ <artifact> val x$1: Option[org.make.core.user.OrganisationNameSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = organisationName.map[org.make.core.user.OrganisationNameSearchFilter](((orgaName: String) => org.make.core.user.OrganisationNameSearchFilter.apply(orgaName))); <artifact> val x$2: Option[org.make.core.user.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = slug.map[org.make.core.user.SlugSearchFilter](((slug: String) => org.make.core.user.SlugSearchFilter.apply(slug))); <artifact> val x$3: Option[org.make.core.user.OrganisationIdsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = organisationIds.map[org.make.core.user.OrganisationIdsSearchFilter](((organisationIds: Seq[org.make.core.user.UserId]) => org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds))); <artifact> val x$4: Option[org.make.core.user.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = country.map[org.make.core.user.CountrySearchFilter](((country: org.make.core.reference.Country) => org.make.core.user.CountrySearchFilter.apply(country))); <artifact> val x$5: Option[org.make.core.user.LanguageSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = language.map[org.make.core.user.LanguageSearchFilter](((language: org.make.core.reference.Language) => org.make.core.user.LanguageSearchFilter.apply(language))); <artifact> val x$6: Option[org.make.core.user.DescriptionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.user.OrganisationSearchFilters.parse$default$4; org.make.core.user.OrganisationSearchFilters.parse(x$3, x$1, x$2, x$6, x$4, x$5) }, org.make.core.user.OrganisationSearchQuery.apply$default$2, org.make.core.user.OrganisationSearchQuery.apply$default$3, org.make.core.user.OrganisationSearchQuery.apply$default$4, org.make.core.user.OrganisationSearchQuery.apply$default$5, org.make.core.user.OrganisationSearchQuery.apply$default$6)
109 27718 4216 - 4216 Select org.make.core.user.OrganisationSearchQuery.apply$default$6 org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchQuery.apply$default$6
109 24132 4216 - 4216 Select org.make.core.user.OrganisationSearchQuery.apply$default$5 org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchQuery.apply$default$5
109 23462 4216 - 4216 Select org.make.core.user.OrganisationSearchQuery.apply$default$2 org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchQuery.apply$default$2
109 27274 4216 - 4216 Select org.make.core.user.OrganisationSearchQuery.apply$default$3 org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchQuery.apply$default$3
110 26822 4287 - 4287 Select org.make.core.user.OrganisationSearchFilters.parse$default$4 org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchFilters.parse$default$4
110 26005 4250 - 4680 Apply org.make.core.user.OrganisationSearchFilters.parse org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationSearchFilters.parse(x$3, x$1, x$2, x$6, x$4, x$5)
111 28241 4325 - 4397 Apply scala.Option.map org.make.api.organisation.organisationservicetest organisationName.map[org.make.core.user.OrganisationNameSearchFilter](((orgaName: String) => org.make.core.user.OrganisationNameSearchFilter.apply(orgaName)))
111 23219 4358 - 4396 Apply org.make.core.user.OrganisationNameSearchFilter.apply org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationNameSearchFilter.apply(orgaName)
112 25892 4427 - 4454 Apply org.make.core.user.SlugSearchFilter.apply org.make.core.user.SlugSearchFilter.apply(slug)
112 23448 4418 - 4455 Apply scala.Option.map org.make.api.organisation.organisationservicetest slug.map[org.make.core.user.SlugSearchFilter](((slug: String) => org.make.core.user.SlugSearchFilter.apply(slug)))
113 25105 4487 - 4541 Apply scala.Option.map org.make.api.organisation.organisationservicetest organisationIds.map[org.make.core.user.OrganisationIdsSearchFilter](((organisationIds: Seq[org.make.core.user.UserId]) => org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds)))
113 27261 4507 - 4540 Apply org.make.core.user.OrganisationIdsSearchFilter.apply org.make.api.organisation.organisationservicetest org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds)
114 27737 4565 - 4603 Apply scala.Option.map org.make.api.organisation.organisationservicetest country.map[org.make.core.user.CountrySearchFilter](((country: org.make.core.reference.Country) => org.make.core.user.CountrySearchFilter.apply(country)))
114 24122 4577 - 4602 Apply org.make.core.user.CountrySearchFilter.apply org.make.api.organisation.organisationservicetest org.make.core.user.CountrySearchFilter.apply(country)
115 25402 4641 - 4667 Apply org.make.core.user.LanguageSearchFilter.apply org.make.api.organisation.organisationservicetest org.make.core.user.LanguageSearchFilter.apply(language)
115 23140 4628 - 4668 Apply scala.Option.map org.make.api.organisation.organisationservicetest language.map[org.make.core.user.LanguageSearchFilter](((language: org.make.core.reference.Language) => org.make.core.user.LanguageSearchFilter.apply(language)))
122 27119 4815 - 4870 Apply org.make.api.organisation.OrganisationSearchEngine.searchOrganisations DefaultOrganisationServiceComponent.this.elasticsearchOrganisationAPI.searchOrganisations(query)
132 24971 5121 - 5121 Select org.make.core.user.User.apply$default$19 org.make.core.user.User.apply$default$19
132 23026 5121 - 5121 Select org.make.core.user.User.apply$default$28 org.make.core.user.User.apply$default$28
132 26767 5121 - 5121 Select org.make.core.user.User.apply$default$21 org.make.core.user.User.apply$default$21
132 27075 5121 - 5121 Select org.make.core.user.User.apply$default$29 org.make.core.user.User.apply$default$29
132 24811 5121 - 6351 Apply org.make.core.user.User.apply org.make.core.user.User.apply(x$25, x$26, x$27, x$28, x$30, x$31, true, true, x$34, x$35, x$36, x$37, x$38, x$39, x$40, x$41, x$42, x$43, x$48, x$49, x$50, x$51, x$29, true, x$45, x$46, x$47, x$52, x$53)
132 25403 5121 - 5121 Select org.make.core.user.User.apply$default$22 org.make.core.user.User.apply$default$22
132 22932 5121 - 5121 Select org.make.core.user.User.apply$default$20 org.make.core.user.User.apply$default$20
133 26015 5144 - 5168 Apply org.make.core.technical.IdGenerator.nextUserId DefaultOrganisationServiceComponent.this.idGenerator.nextUserId()
135 23657 5223 - 5227 Select scala.None scala.None
136 27211 5248 - 5252 Select scala.None scala.None
137 25264 5286 - 5315 Select org.make.api.organisation.OrganisationRegisterData.name organisationRegisterData.name
137 22996 5281 - 5316 Apply scala.Some.apply scala.Some.apply[String](organisationRegisterData.name)
138 27727 5335 - 5339 Select scala.None scala.None
139 25545 5404 - 5419 Select com.github.t3hnar.bcrypt.BCryptStrOps.boundedBcrypt com.github.t3hnar.bcrypt.`package`.BCryptStrOps(x$1).boundedBcrypt
139 23313 5366 - 5420 Apply scala.Option.map organisationRegisterData.password.map[String](((x$1: String) => com.github.t3hnar.bcrypt.`package`.BCryptStrOps(x$1).boundedBcrypt))
140 27132 5440 - 5444 Literal <nosymbol> true
141 25814 5470 - 5474 Literal <nosymbol> true
142 23592 5495 - 5524 Select org.make.core.user.UserType.UserTypeOrganisation org.make.core.user.UserType.UserTypeOrganisation
143 27418 5551 - 5555 Select scala.None scala.None
144 25197 5585 - 5589 Select scala.None scala.None
145 23008 5628 - 5632 Select scala.None scala.None
146 27733 5655 - 5671 Apply scala.Some.apply scala.Some.apply[String](resetToken)
147 27067 5703 - 5761 Apply scala.Some.apply scala.Some.apply[java.time.ZonedDateTime](org.make.core.DateHelper.now().plusSeconds(DefaultOrganisationService.this.resetTokenB2BExpiresIn))
147 23135 5708 - 5760 Apply java.time.ZonedDateTime.plusSeconds org.make.core.DateHelper.now().plusSeconds(DefaultOrganisationService.this.resetTokenB2BExpiresIn)
147 25471 5737 - 5759 Select org.make.api.organisation.DefaultOrganisationServiceComponent.DefaultOrganisationService.resetTokenB2BExpiresIn DefaultOrganisationService.this.resetTokenB2BExpiresIn
148 23599 5779 - 5798 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.user.Role.RoleActor.type](org.make.core.user.Role.RoleActor)
148 25824 5783 - 5797 Select org.make.core.user.Role.RoleActor org.make.core.user.Role.RoleActor
151 24962 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$21 org.make.core.profile.Profile.parseProfile$default$21
151 25285 5874 - 6176 Apply org.make.core.profile.Profile.parseProfile org.make.core.profile.Profile.parseProfile(x$7, x$1, x$8, x$9, x$2, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$5, x$6, false, x$19, x$20, x$21, x$22, x$4, x$23, x$24)
151 24953 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$9 org.make.core.profile.Profile.parseProfile$default$9
151 22991 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$10 org.make.core.profile.Profile.parseProfile$default$10
151 23066 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$3 org.make.core.profile.Profile.parseProfile$default$3
151 27680 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$11 org.make.core.profile.Profile.parseProfile$default$11
151 23544 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$19 org.make.core.profile.Profile.parseProfile$default$19
151 26917 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$14 org.make.core.profile.Profile.parseProfile$default$14
151 27512 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$20 org.make.core.profile.Profile.parseProfile$default$20
151 27207 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$8 org.make.core.profile.Profile.parseProfile$default$8
151 23534 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$7 org.make.core.profile.Profile.parseProfile$default$7
151 23004 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$23 org.make.core.profile.Profile.parseProfile$default$23
151 26907 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$4 org.make.core.profile.Profile.parseProfile$default$4
151 24873 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$18 org.make.core.profile.Profile.parseProfile$default$18
151 24741 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$6 org.make.core.profile.Profile.parseProfile$default$6
151 25480 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$1 org.make.core.profile.Profile.parseProfile$default$1
151 23075 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$13 org.make.core.profile.Profile.parseProfile$default$13
151 26754 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$24 org.make.core.profile.Profile.parseProfile$default$24
151 25650 5882 - 5882 Select org.make.core.profile.Profile.parseProfile$default$12 org.make.core.profile.Profile.parseProfile$default$12
152 27198 5918 - 5949 Select org.make.api.organisation.OrganisationRegisterData.avatar organisationRegisterData.avatar
153 25021 5975 - 6011 Select org.make.api.organisation.OrganisationRegisterData.description organisationRegisterData.description
154 22639 6041 - 6046 Literal <nosymbol> false
155 27668 6068 - 6100 Select org.make.api.organisation.OrganisationRegisterData.website organisationRegisterData.website
159 23088 6202 - 6206 Literal <nosymbol> true
160 27064 6237 - 6246 TypeApply scala.collection.SeqFactory.Delegate.empty scala.`package`.Seq.empty[Nothing]
161 24886 6274 - 6283 TypeApply scala.collection.SeqFactory.Delegate.empty scala.`package`.Seq.empty[Nothing]
162 27157 6321 - 6343 Apply scala.Some.apply scala.Some.apply[java.time.ZonedDateTime](org.make.core.DateHelper.now())
162 23521 6326 - 6342 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
164 23530 6358 - 6393 Apply org.make.api.user.PersistentUserService.persist DefaultOrganisationServiceComponent.this.persistentUserService.persist(user)
172 27351 6580 - 6609 Select org.make.api.organisation.OrganisationRegisterData.trim org.make.api.organisation.organisationservicetest organisationRegisterData.trim
173 25134 6630 - 6657 Select org.make.api.organisation.OrganisationRegisterData.country org.make.api.organisation.organisationservicetest trimmedRegisterData.country
174 22948 6679 - 6707 Select org.make.api.organisation.OrganisationRegisterData.language org.make.api.organisation.organisationservicetest trimmedRegisterData.language
175 26537 6744 - 6783 Apply java.lang.String.toLowerCase org.make.api.organisation.organisationservicetest trimmedRegisterData.email.toLowerCase()
178 26547 6804 - 7176 ApplyToImplicitArgs scala.concurrent.Future.flatMap org.make.api.organisation.organisationservicetest DefaultOrganisationServiceComponent.this.persistentUserService.emailExists(lowerCasedEmail).flatMap[org.make.core.user.User](((emailExists: Boolean) => DefaultOrganisationService.this.verifyEmail(lowerCasedEmail, emailExists).flatMap[org.make.core.user.User](((x$2: Boolean) => (x$2: Boolean @unchecked) match { case _ => DefaultOrganisationServiceComponent.this.userTokenGenerator.generateResetToken().map[String](((x0$1: (String, String)) => x0$1 match { case (_1: String, _2: String): (String, String)(_, (token @ _)) => token }))(scala.concurrent.ExecutionContext.Implicits.global).flatMap[org.make.core.user.User](((resetToken: String) => DefaultOrganisationService.this.registerOrganisation(trimmedRegisterData, lowerCasedEmail, country, language, resetToken).map[org.make.core.user.User](((user: org.make.core.user.User) => user))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) }))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
178 22878 6830 - 6830 Select scala.concurrent.ExecutionContext.Implicits.global org.make.api.organisation.organisationservicetest scala.concurrent.ExecutionContext.Implicits.global
179 24956 6892 - 7176 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationService.this.verifyEmail(lowerCasedEmail, emailExists).flatMap[org.make.core.user.User](((x$2: Boolean) => (x$2: Boolean @unchecked) match { case _ => DefaultOrganisationServiceComponent.this.userTokenGenerator.generateResetToken().map[String](((x0$1: (String, String)) => x0$1 match { case (_1: String, _2: String): (String, String)(_, (token @ _)) => token }))(scala.concurrent.ExecutionContext.Implicits.global).flatMap[org.make.core.user.User](((resetToken: String) => DefaultOrganisationService.this.registerOrganisation(trimmedRegisterData, lowerCasedEmail, country, language, resetToken).map[org.make.core.user.User](((user: org.make.core.user.User) => user))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) }))(scala.concurrent.ExecutionContext.Implicits.global)
179 27282 6904 - 6904 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
180 25411 7016 - 7016 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
180 22389 6957 - 7176 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationServiceComponent.this.userTokenGenerator.generateResetToken().map[String](((x0$1: (String, String)) => x0$1 match { case (_1: String, _2: String): (String, String)(_, (token @ _)) => token }))(scala.concurrent.ExecutionContext.Implicits.global).flatMap[org.make.core.user.User](((resetToken: String) => DefaultOrganisationService.this.registerOrganisation(trimmedRegisterData, lowerCasedEmail, country, language, resetToken).map[org.make.core.user.User](((user: org.make.core.user.User) => user))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
180 24823 6969 - 6969 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
181 27007 7053 - 7176 ApplyToImplicitArgs scala.concurrent.Future.map DefaultOrganisationService.this.registerOrganisation(trimmedRegisterData, lowerCasedEmail, country, language, resetToken).map[org.make.core.user.User](((user: org.make.core.user.User) => user))(scala.concurrent.ExecutionContext.Implicits.global)
181 23237 7065 - 7065 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
184 27144 7184 - 7611 ApplyToImplicitArgs scala.concurrent.Future.map org.make.api.organisation.organisationservicetest result.map[org.make.core.user.User](((user: org.make.core.user.User) => { DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](user.userId); <artifact> val x$2: org.make.core.user.UserId = user.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: String = user.email; <artifact> val x$5: org.make.core.reference.Country = user.country; <artifact> val x$6: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$7: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationRegisteredEvent.apply(x$1, x$6, x$2, x$3, x$4, x$5, x$7) }); user }))(scala.concurrent.ExecutionContext.Implicits.global)
184 23022 7195 - 7195 Select scala.concurrent.ExecutionContext.Implicits.global org.make.api.organisation.organisationservicetest scala.concurrent.ExecutionContext.Implicits.global
185 25360 7213 - 7590 Apply org.make.api.technical.EventBusService.publish DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](user.userId); <artifact> val x$2: org.make.core.user.UserId = user.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: String = user.email; <artifact> val x$5: org.make.core.reference.Country = user.country; <artifact> val x$6: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$7: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationRegisteredEvent.apply(x$1, x$6, x$2, x$3, x$4, x$5, x$7) })
186 26561 7248 - 7580 Apply org.make.api.userhistory.OrganisationRegisteredEvent.apply org.make.api.userhistory.OrganisationRegisteredEvent.apply(x$1, x$6, x$2, x$3, x$4, x$5, x$7)
187 23388 7307 - 7324 Apply scala.Some.apply scala.Some.apply[org.make.core.user.UserId](user.userId)
187 25418 7312 - 7323 Select org.make.core.user.User.userId user.userId
188 26841 7347 - 7358 Select org.make.core.user.User.userId user.userId
190 24751 7425 - 7435 Select org.make.core.user.User.email user.email
191 22400 7459 - 7471 Select org.make.core.user.User.country user.country
192 27289 7497 - 7513 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
193 25274 7542 - 7567 Apply org.make.core.technical.IdGenerator.nextEventId DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()
193 22711 7537 - 7568 Apply scala.Some.apply scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())
205 24627 7765 - 9198 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationService.this.getVotedProposals(organisationId, scala.None, scala.None, scala.None, scala.None, scala.None, scala.None, requestContext).map[Unit](((result: org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse) => result.results.foreach[Unit](((proposalWithVote: org.make.api.proposal.ProposalResultWithUserVote) => DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposalWithVote.proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))))))(scala.concurrent.ExecutionContext.Implicits.global).flatMap[Unit](((x$5: Unit) => (x$5: Unit @unchecked) match { case _ => DefaultOrganisationServiceComponent.this.elasticsearchProposalAPI.searchProposals(org.make.core.proposal.SearchQuery.apply(scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId))); <artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived))))); <artifact> val x$3: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$4: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$5: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$6: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$7: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$8: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$9: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$16: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$17: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$18: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$19: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$20: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$22: Option[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$2, x$10, x$11, x$12, x$13, x$14, x$1, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) }), org.make.core.proposal.SearchQuery.apply$default$2, org.make.core.proposal.SearchQuery.apply$default$3, org.make.core.proposal.SearchQuery.apply$default$4, org.make.core.proposal.SearchQuery.apply$default$5, org.make.core.proposal.SearchQuery.apply$default$6, org.make.core.proposal.SearchQuery.apply$default$7)).map[Unit](((result: org.make.core.proposal.indexed.ProposalsSearchResult) => result.results.foreach[Unit](((proposal: org.make.core.proposal.indexed.IndexedProposal) => DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))))))(scala.concurrent.ExecutionContext.Implicits.global).map[Unit](((x$4: Unit) => (x$4: Unit @unchecked) match { case _ => () }))(scala.concurrent.ExecutionContext.Implicits.global) }))(scala.concurrent.ExecutionContext.Implicits.global)
205 26865 7781 - 7781 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
207 24806 7853 - 7857 Select scala.None scala.None
208 22412 7883 - 7887 Select scala.None scala.None
209 27455 7922 - 7926 Select scala.None scala.None
210 24903 7945 - 7949 Select scala.None scala.None
211 22640 7969 - 7973 Select scala.None scala.None
212 26687 7994 - 7998 Select scala.None scala.None
214 22876 8038 - 8038 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
216 25223 8072 - 8466 Apply scala.collection.IterableOnceOps.foreach result.results.foreach[Unit](((proposalWithVote: org.make.api.proposal.ProposalResultWithUserVote) => DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposalWithVote.proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))))
219 27464 8146 - 8452 Apply org.make.api.technical.EventBusService.publish DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposalWithVote.proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))
220 22553 8210 - 8432 Apply org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposalWithVote.proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()))
221 24299 8249 - 8277 Select org.make.api.proposal.ProposalResponse.id proposalWithVote.proposal.id
222 23337 8301 - 8317 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
224 24818 8379 - 8410 Apply scala.Some.apply scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())
224 26782 8384 - 8409 Apply org.make.core.technical.IdGenerator.nextEventId DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()
229 24382 8487 - 8487 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
229 27966 8485 - 9198 ApplyToImplicitArgs scala.concurrent.Future.map DefaultOrganisationServiceComponent.this.elasticsearchProposalAPI.searchProposals(org.make.core.proposal.SearchQuery.apply(scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId))); <artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived))))); <artifact> val x$3: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$4: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$5: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$6: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$7: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$8: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$9: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$16: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$17: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$18: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$19: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$20: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$22: Option[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$2, x$10, x$11, x$12, x$13, x$14, x$1, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) }), org.make.core.proposal.SearchQuery.apply$default$2, org.make.core.proposal.SearchQuery.apply$default$3, org.make.core.proposal.SearchQuery.apply$default$4, org.make.core.proposal.SearchQuery.apply$default$5, org.make.core.proposal.SearchQuery.apply$default$6, org.make.core.proposal.SearchQuery.apply$default$7)).map[Unit](((result: org.make.core.proposal.indexed.ProposalsSearchResult) => result.results.foreach[Unit](((proposal: org.make.core.proposal.indexed.IndexedProposal) => DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))))))(scala.concurrent.ExecutionContext.Implicits.global).map[Unit](((x$4: Unit) => (x$4: Unit @unchecked) match { case _ => () }))(scala.concurrent.ExecutionContext.Implicits.global)
230 22967 8556 - 8556 Select org.make.core.proposal.SearchQuery.apply$default$7 org.make.core.proposal.SearchQuery.apply$default$7
230 27093 8556 - 8556 Select org.make.core.proposal.SearchQuery.apply$default$2 org.make.core.proposal.SearchQuery.apply$default$2
230 24832 8556 - 8556 Select org.make.core.proposal.SearchQuery.apply$default$3 org.make.core.proposal.SearchQuery.apply$default$3
230 26560 8556 - 8833 Apply org.make.core.proposal.SearchQuery.apply org.make.core.proposal.SearchQuery.apply(scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId))); <artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived))))); <artifact> val x$3: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$4: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$5: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$6: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$7: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$8: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$9: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$16: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$17: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$18: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$19: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$20: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$22: Option[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$2, x$10, x$11, x$12, x$13, x$14, x$1, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) }), org.make.core.proposal.SearchQuery.apply$default$2, org.make.core.proposal.SearchQuery.apply$default$3, org.make.core.proposal.SearchQuery.apply$default$4, org.make.core.proposal.SearchQuery.apply$default$5, org.make.core.proposal.SearchQuery.apply$default$6, org.make.core.proposal.SearchQuery.apply$default$7)
230 26339 8556 - 8556 Select org.make.core.proposal.SearchQuery.apply$default$5 org.make.core.proposal.SearchQuery.apply$default$5
230 28199 8578 - 8821 Apply scala.Some.apply scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId))); <artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived))))); <artifact> val x$3: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$4: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$5: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$6: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$7: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$8: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$9: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$16: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$17: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$18: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$19: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$20: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$22: Option[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$2, x$10, x$11, x$12, x$13, x$14, x$1, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) })
230 25163 8556 - 8556 Select org.make.core.proposal.SearchQuery.apply$default$6 org.make.core.proposal.SearchQuery.apply$default$6
230 22483 8556 - 8556 Select org.make.core.proposal.SearchQuery.apply$default$4 org.make.core.proposal.SearchQuery.apply$default$4
231 26622 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$31 org.make.core.proposal.SearchFilters.apply$default$31
231 23096 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$15 org.make.core.proposal.SearchFilters.apply$default$15
231 25225 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$29 org.make.core.proposal.SearchFilters.apply$default$29
231 22471 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$27 org.make.core.proposal.SearchFilters.apply$default$27
231 22330 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$7 org.make.core.proposal.SearchFilters.apply$default$7
231 22644 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$21 org.make.core.proposal.SearchFilters.apply$default$21
231 26119 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$28 org.make.core.proposal.SearchFilters.apply$default$28
231 24450 8596 - 8809 Apply org.make.core.proposal.SearchFilters.apply org.make.core.proposal.SearchFilters.apply(x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$2, x$10, x$11, x$12, x$13, x$14, x$1, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31)
231 24217 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$13 org.make.core.proposal.SearchFilters.apply$default$13
231 26777 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$16 org.make.core.proposal.SearchFilters.apply$default$16
231 26627 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$2 org.make.core.proposal.SearchFilters.apply$default$2
231 26950 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$5 org.make.core.proposal.SearchFilters.apply$default$5
231 24761 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$6 org.make.core.proposal.SearchFilters.apply$default$6
231 23014 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$11 org.make.core.proposal.SearchFilters.apply$default$11
231 26639 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$12 org.make.core.proposal.SearchFilters.apply$default$12
231 26181 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$9 org.make.core.proposal.SearchFilters.apply$default$9
231 24898 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$17 org.make.core.proposal.SearchFilters.apply$default$17
231 23089 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$4 org.make.core.proposal.SearchFilters.apply$default$4
231 25218 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$20 org.make.core.proposal.SearchFilters.apply$default$20
231 27084 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$25 org.make.core.proposal.SearchFilters.apply$default$25
231 24527 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$26 org.make.core.proposal.SearchFilters.apply$default$26
231 25056 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$10 org.make.core.proposal.SearchFilters.apply$default$10
231 24284 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$3 org.make.core.proposal.SearchFilters.apply$default$3
231 22340 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$18 org.make.core.proposal.SearchFilters.apply$default$18
231 26611 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$22 org.make.core.proposal.SearchFilters.apply$default$22
231 22959 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$30 org.make.core.proposal.SearchFilters.apply$default$30
231 24227 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$23 org.make.core.proposal.SearchFilters.apply$default$23
231 26105 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$19 org.make.core.proposal.SearchFilters.apply$default$19
231 28061 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$24 org.make.core.proposal.SearchFilters.apply$default$24
231 22887 8596 - 8596 Select org.make.core.proposal.SearchFilters.apply$default$1 org.make.core.proposal.SearchFilters.apply$default$1
232 23347 8633 - 8686 Apply scala.Some.apply scala.Some.apply[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId)))
232 24272 8638 - 8685 Apply org.make.core.proposal.UserSearchFilter.apply org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId))
232 26697 8665 - 8684 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.user.UserId](organisationId)
233 27088 8769 - 8792 Select org.make.core.proposal.ProposalStatus.Archived org.make.core.proposal.ProposalStatus.Archived
233 24749 8764 - 8792 Apply java.lang.Object.!= x$3.!=(org.make.core.proposal.ProposalStatus.Archived)
233 25230 8711 - 8795 Apply scala.Some.apply scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived)))))
233 26169 8716 - 8794 Apply org.make.core.proposal.StatusSearchFilter.apply org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived))))
233 22564 8735 - 8793 Apply scala.collection.IterableOps.filter org.make.core.proposal.ProposalStatus.values.filter(((x$3: org.make.core.proposal.ProposalStatus) => x$3.!=(org.make.core.proposal.ProposalStatus.Archived)))
238 22899 8860 - 8860 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
240 23942 8898 - 9169 Apply scala.collection.IterableOnceOps.foreach result.results.foreach[Unit](((proposal: org.make.core.proposal.indexed.IndexedProposal) => DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))))
243 26101 8968 - 9153 Apply org.make.api.technical.EventBusService.publish DefaultOrganisationServiceComponent.this.eventBusService.publish(org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())))
244 24693 9099 - 9130 Apply scala.Some.apply scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())
244 24370 9052 - 9063 Select org.make.core.proposal.indexed.IndexedProposal.id proposal.id
244 22494 9036 - 9131 Apply org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply org.make.api.proposal.PublishedProposalEvent.ReindexProposal.apply(proposal.id, org.make.core.DateHelper.now(), requestContext, scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()))
244 27033 9104 - 9129 Apply org.make.core.technical.IdGenerator.nextEventId DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()
244 28046 9065 - 9081 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
248 26571 9196 - 9198 Literal <nosymbol> ()
260 25745 9493 - 9493 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
260 24829 9486 - 9983 ApplyToImplicitArgs scala.concurrent.Future.apply scala.concurrent.Future.apply[Unit](DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = moderatorId; <artifact> val x$2: org.make.core.user.UserId = organisation.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = organisation.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: String = oldEmail; <artifact> val x$7: String = email; <artifact> val x$8: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationEmailChangedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6, x$7, x$8) }))(scala.concurrent.ExecutionContext.Implicits.global)
261 27976 9507 - 9971 Apply org.make.api.technical.EventBusService.publish DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = moderatorId; <artifact> val x$2: org.make.core.user.UserId = organisation.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = organisation.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: String = oldEmail; <artifact> val x$7: String = email; <artifact> val x$8: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationEmailChangedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6, x$7, x$8) })
262 24161 9546 - 9957 Apply org.make.api.userhistory.OrganisationEmailChangedEvent.apply org.make.api.userhistory.OrganisationEmailChangedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6, x$7, x$8)
264 22423 9649 - 9668 Select org.make.core.user.User.userId organisation.userId
266 26114 9745 - 9765 Select org.make.core.user.User.country organisation.country
267 23859 9795 - 9811 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
270 22955 9915 - 9940 Apply org.make.core.technical.IdGenerator.nextEventId DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()
270 26581 9910 - 9941 Apply scala.Some.apply scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())
274 22433 10005 - 10016 Select scala.concurrent.Future.unit scala.concurrent.Future.unit
285 26047 10243 - 10266 Apply java.lang.String.trim org.make.api.organisation.organisationservicetest organisation.email.trim()
286 22964 10297 - 10338 Apply java.lang.Object.== org.make.api.organisation.organisationservicetest email.toLowerCase().==(oldEmail.toLowerCase())
286 26709 10342 - 10346 Select scala.None org.make.api.organisation.organisationservicetest scala.None
286 23874 10318 - 10338 Apply java.lang.String.toLowerCase org.make.api.organisation.organisationservicetest oldEmail.toLowerCase()
287 24175 10414 - 10425 Apply scala.Some.apply org.make.api.organisation.organisationservicetest scala.Some.apply[String](email)
291 27905 10500 - 10513 Apply java.lang.String.toLowerCase org.make.api.organisation.organisationservicetest x$6.toLowerCase()
291 26514 10467 - 10467 Select scala.concurrent.ExecutionContext.Implicits.global org.make.api.organisation.organisationservicetest scala.concurrent.ExecutionContext.Implicits.global
291 25963 10487 - 10514 Apply scala.Option.map org.make.api.organisation.organisationservicetest newEmail.map[String](((x$6: String) => x$6.toLowerCase()))
291 24240 10441 - 11494 ApplyToImplicitArgs scala.concurrent.Future.flatMap org.make.api.organisation.organisationservicetest DefaultOrganisationService.this.updateMailExists(newEmail.map[String](((x$6: String) => x$6.toLowerCase()))).flatMap[org.make.core.user.UserId](((emailExists: Boolean) => DefaultOrganisationService.this.verifyEmail(organisation.email.toLowerCase(), emailExists).flatMap[org.make.core.user.UserId](((x$9: Boolean) => (x$9: Boolean @unchecked) match { case _ => DefaultOrganisationServiceComponent.this.persistentUserService.modifyOrganisation(organisation).flatMap[org.make.core.user.UserId](((x0$1: Either[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]) => x0$1 match { case (value: org.make.core.user.User): scala.util.Right[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]((orga @ _)) => DefaultOrganisationService.this.updateOrganisationEmail(organisation, moderatorId, newEmail, oldEmail, requestContext).flatMap[org.make.core.user.UserId](((x$7: Unit) => DefaultOrganisationService.this.updateProposalsFromOrganisation(orga.userId, requestContext).flatMap[org.make.core.user.UserId](((x$8: Unit) => { DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](orga.userId); <artifact> val x$2: org.make.core.user.UserId = orga.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = orga.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6) }); scala.concurrent.Future.successful[org.make.core.user.UserId](orga.userId) }))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) case (value: org.make.api.user.PersistentUserService.UpdateFailed): scala.util.Left[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]((e @ _)) => scala.concurrent.Future.failed[Nothing](e) }))(scala.concurrent.ExecutionContext.Implicits.global).map[org.make.core.user.UserId](((update: org.make.core.user.UserId) => update))(scala.concurrent.ExecutionContext.Implicits.global) }))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
292 23867 10536 - 10536 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
292 24838 10551 - 10581 Apply java.lang.String.toLowerCase organisation.email.toLowerCase()
292 27759 10524 - 11494 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationService.this.verifyEmail(organisation.email.toLowerCase(), emailExists).flatMap[org.make.core.user.UserId](((x$9: Boolean) => (x$9: Boolean @unchecked) match { case _ => DefaultOrganisationServiceComponent.this.persistentUserService.modifyOrganisation(organisation).flatMap[org.make.core.user.UserId](((x0$1: Either[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]) => x0$1 match { case (value: org.make.core.user.User): scala.util.Right[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]((orga @ _)) => DefaultOrganisationService.this.updateOrganisationEmail(organisation, moderatorId, newEmail, oldEmail, requestContext).flatMap[org.make.core.user.UserId](((x$7: Unit) => DefaultOrganisationService.this.updateProposalsFromOrganisation(orga.userId, requestContext).flatMap[org.make.core.user.UserId](((x$8: Unit) => { DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](orga.userId); <artifact> val x$2: org.make.core.user.UserId = orga.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = orga.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6) }); scala.concurrent.Future.successful[org.make.core.user.UserId](orga.userId) }))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) case (value: org.make.api.user.PersistentUserService.UpdateFailed): scala.util.Left[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]((e @ _)) => scala.concurrent.Future.failed[Nothing](e) }))(scala.concurrent.ExecutionContext.Implicits.global).map[org.make.core.user.UserId](((update: org.make.core.user.UserId) => update))(scala.concurrent.ExecutionContext.Implicits.global) }))(scala.concurrent.ExecutionContext.Implicits.global)
293 26200 10604 - 11494 ApplyToImplicitArgs scala.concurrent.Future.map DefaultOrganisationServiceComponent.this.persistentUserService.modifyOrganisation(organisation).flatMap[org.make.core.user.UserId](((x0$1: Either[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]) => x0$1 match { case (value: org.make.core.user.User): scala.util.Right[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]((orga @ _)) => DefaultOrganisationService.this.updateOrganisationEmail(organisation, moderatorId, newEmail, oldEmail, requestContext).flatMap[org.make.core.user.UserId](((x$7: Unit) => DefaultOrganisationService.this.updateProposalsFromOrganisation(orga.userId, requestContext).flatMap[org.make.core.user.UserId](((x$8: Unit) => { DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](orga.userId); <artifact> val x$2: org.make.core.user.UserId = orga.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = orga.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6) }); scala.concurrent.Future.successful[org.make.core.user.UserId](orga.userId) }))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) case (value: org.make.api.user.PersistentUserService.UpdateFailed): scala.util.Left[org.make.api.user.PersistentUserService.UpdateFailed,org.make.core.user.User]((e @ _)) => scala.concurrent.Future.failed[Nothing](e) }))(scala.concurrent.ExecutionContext.Implicits.global).map[org.make.core.user.UserId](((update: org.make.core.user.UserId) => update))(scala.concurrent.ExecutionContext.Implicits.global)
293 22352 10611 - 10611 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
293 24777 10677 - 10677 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
295 28137 10721 - 11420 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationService.this.updateOrganisationEmail(organisation, moderatorId, newEmail, oldEmail, requestContext).flatMap[org.make.core.user.UserId](((x$7: Unit) => DefaultOrganisationService.this.updateProposalsFromOrganisation(orga.userId, requestContext).flatMap[org.make.core.user.UserId](((x$8: Unit) => { DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](orga.userId); <artifact> val x$2: org.make.core.user.UserId = orga.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = orga.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6) }); scala.concurrent.Future.successful[org.make.core.user.UserId](orga.userId) }))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
295 24303 10816 - 10816 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
296 26649 10837 - 11406 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationService.this.updateProposalsFromOrganisation(orga.userId, requestContext).flatMap[org.make.core.user.UserId](((x$8: Unit) => { DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](orga.userId); <artifact> val x$2: org.make.core.user.UserId = orga.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = orga.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6) }); scala.concurrent.Future.successful[org.make.core.user.UserId](orga.userId) }))(scala.concurrent.ExecutionContext.Implicits.global)
296 22407 10869 - 10880 Select org.make.core.user.User.userId orga.userId
296 27831 10906 - 10906 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
297 22420 10929 - 11343 Apply org.make.api.technical.EventBusService.publish DefaultOrganisationServiceComponent.this.eventBusService.publish({ <artifact> val x$1: Some[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.user.UserId](orga.userId); <artifact> val x$2: org.make.core.user.UserId = orga.userId; <artifact> val x$3: org.make.core.RequestContext = requestContext; <artifact> val x$4: org.make.core.reference.Country = orga.country; <artifact> val x$5: java.time.ZonedDateTime = org.make.core.DateHelper.now(); <artifact> val x$6: Some[org.make.core.EventId] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()); org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6) })
298 24769 10972 - 11325 Apply org.make.api.userhistory.OrganisationUpdatedEvent.apply org.make.api.userhistory.OrganisationUpdatedEvent.apply(x$1, x$5, x$2, x$3, x$4, x$6)
299 23789 11036 - 11053 Apply scala.Some.apply scala.Some.apply[org.make.core.user.UserId](orga.userId)
299 26055 11041 - 11052 Select org.make.core.user.User.userId orga.userId
300 22896 11084 - 11095 Select org.make.core.user.User.userId orga.userId
302 26716 11180 - 11192 Select org.make.core.user.User.country orga.country
303 24294 11226 - 11242 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
304 27916 11279 - 11304 Apply org.make.core.technical.IdGenerator.nextEventId DefaultOrganisationServiceComponent.this.idGenerator.nextEventId()
304 25975 11274 - 11305 Apply scala.Some.apply scala.Some.apply[org.make.core.EventId](DefaultOrganisationServiceComponent.this.idGenerator.nextEventId())
307 24032 11360 - 11390 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.user.UserId](orga.userId)
307 26191 11378 - 11389 Select org.make.core.user.User.userId orga.userId
310 25911 11447 - 11463 Apply scala.concurrent.Future.failed scala.concurrent.Future.failed[Nothing](e)
317 25754 11631 - 11694 Apply scala.concurrent.Future.failed scala.concurrent.Future.failed[Nothing](org.make.api.user.UserExceptions.EmailAlreadyRegisteredException.apply(lowerCasedEmail))
317 24715 11631 - 11694 Block scala.concurrent.Future.failed scala.concurrent.Future.failed[Nothing](org.make.api.user.UserExceptions.EmailAlreadyRegisteredException.apply(lowerCasedEmail))
317 27902 11645 - 11693 Apply org.make.api.user.UserExceptions.EmailAlreadyRegisteredException.apply org.make.api.user.UserExceptions.EmailAlreadyRegisteredException.apply(lowerCasedEmail)
319 26209 11718 - 11741 Block scala.concurrent.Future.successful scala.concurrent.Future.successful[Boolean](true)
319 22361 11718 - 11741 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[Boolean](true)
325 23786 11888 - 11927 Apply org.make.api.user.PersistentUserService.emailExists org.make.api.organisation.organisationservicetest DefaultOrganisationServiceComponent.this.persistentUserService.emailExists(mail)
326 26445 11850 - 11971 Apply scala.Option.getOrElse org.make.api.organisation.organisationservicetest lowerCasedEmail.map[scala.concurrent.Future[Boolean]](((mail: String) => DefaultOrganisationServiceComponent.this.persistentUserService.emailExists(mail))).getOrElse[scala.concurrent.Future[Boolean]](scala.concurrent.Future.successful[Boolean](false))
326 27614 11946 - 11970 Apply scala.concurrent.Future.successful org.make.api.organisation.organisationservicetest scala.concurrent.Future.successful[Boolean](false)
340 22300 12509 - 12509 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
340 26367 12483 - 12881 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultOrganisationServiceComponent.this.userHistoryCoordinatorService.retrieveVotedProposals(org.make.api.userhistory.RequestUserVotedProposals.apply(organisationId, filterVotes, filterQualifications, org.make.api.userhistory.RequestUserVotedProposals.apply$default$4)).flatMap[Map[org.make.core.proposal.ProposalId,org.make.core.history.HistoryActions.VoteAndQualifications]](((proposalIds: Seq[org.make.core.proposal.ProposalId]) => DefaultOrganisationServiceComponent.this.userHistoryCoordinatorService.retrieveVoteAndQualifications(organisationId, proposalIds).map[Map[org.make.core.proposal.ProposalId,org.make.core.history.HistoryActions.VoteAndQualifications]](((withVotes: Map[org.make.core.proposal.ProposalId,org.make.core.history.HistoryActions.VoteAndQualifications]) => withVotes))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
341 24252 12576 - 12576 Select org.make.api.userhistory.RequestUserVotedProposals.apply$default$4 org.make.api.userhistory.RequestUserVotedProposals.apply$default$4
341 27911 12576 - 12737 Apply org.make.api.userhistory.RequestUserVotedProposals.apply org.make.api.userhistory.RequestUserVotedProposals.apply(organisationId, filterVotes, filterQualifications, org.make.api.userhistory.RequestUserVotedProposals.apply$default$4)
347 25676 12766 - 12766 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
347 23693 12756 - 12881 ApplyToImplicitArgs scala.concurrent.Future.map DefaultOrganisationServiceComponent.this.userHistoryCoordinatorService.retrieveVoteAndQualifications(organisationId, proposalIds).map[Map[org.make.core.proposal.ProposalId,org.make.core.history.HistoryActions.VoteAndQualifications]](((withVotes: Map[org.make.core.proposal.ProposalId,org.make.core.history.HistoryActions.VoteAndQualifications]) => withVotes))(scala.concurrent.ExecutionContext.Implicits.global)
350 23044 12921 - 12921 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
350 27935 12889 - 15108 ApplyToImplicitArgs scala.concurrent.Future.flatMap futureProposalWithVotes.flatMap[org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse](((x0$1: Map[org.make.core.proposal.ProposalId,org.make.core.history.HistoryActions.VoteAndQualifications]) => x0$1 match { case (proposalIdsWithVotes @ _) if proposalIdsWithVotes.isEmpty => scala.concurrent.Future.successful[org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse](org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply(0L, scala.`package`.Seq.empty[Nothing], scala.None)) case (proposalIdsWithVotes @ _) => { val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposalIdsWithVotes.toSeq.sortWith(((x0$2: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), x1$1: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)) => scala.Tuple2.apply[(org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)](x0$2, x1$1) match { case (_1: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), _2: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)): ((org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications))((_1: org.make.core.proposal.ProposalId, _2: org.make.core.history.HistoryActions.VoteAndQualifications): (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)(_, (firstVotesAndQualifications @ _)), (_1: org.make.core.proposal.ProposalId, _2: org.make.core.history.HistoryActions.VoteAndQualifications): (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)(_, (nextVotesAndQualifications @ _))) => firstVotesAndQualifications.date.isAfter(nextVotesAndQualifications.date) })).map[org.make.core.proposal.ProposalId](((x0$3: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)) => x0$3 match { case (_1: org.make.core.proposal.ProposalId, _2: org.make.core.history.HistoryActions.VoteAndQualifications): (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)((proposalId @ _), _) => proposalId })); DefaultOrganisationServiceComponent.this.proposalService.searchForUser(scala.Some.apply[org.make.core.user.UserId](organisationId), { <artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(proposalIds)); <artifact> val x$2: Some[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.OperationKindsSearchFilter](org.make.core.proposal.OperationKindsSearchFilter.apply(org.make.core.operation.OperationKind.publicKinds)); <artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$9: Option[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$8; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14; <artifact> val x$16: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$17: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$18: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$19: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$20: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$22: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$2, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) }); <artifact> val x$33: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = sort; <artifact> val x$34: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit; <artifact> val x$35: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset; <artifact> val x$36: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2; <artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6; <artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7; org.make.core.proposal.SearchQuery.apply(x$32, x$36, x$33, x$34, x$35, x$37, x$38) }, requestContext, scala.None, scala.None).map[org.make.api.proposal.ProposalsResultSeededResponse](((proposalResultSeededResponse: org.make.api.proposal.ProposalsResultSeededResponse) => { <artifact> val x$39: Seq[org.make.api.proposal.ProposalResponse] @scala.reflect.internal.annotations.uncheckedBounds = proposalResultSeededResponse.results.sortWith(((x0$4: org.make.api.proposal.ProposalResponse, x1$2: org.make.api.proposal.ProposalResponse) => scala.Tuple2.apply[org.make.api.proposal.ProposalResponse, org.make.api.proposal.ProposalResponse](x0$4, x1$2) match { case (_1: org.make.api.proposal.ProposalResponse, _2: org.make.api.proposal.ProposalResponse): (org.make.api.proposal.ProposalResponse, org.make.api.proposal.ProposalResponse)((first @ _), (next @ _)) => proposalIds.indexOf[org.make.core.proposal.ProposalId](first.id).<(proposalIds.indexOf[org.make.core.proposal.ProposalId](next.id)) })); <artifact> val x$40: Long = proposalResultSeededResponse.copy$default$1; <artifact> val x$41: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = proposalResultSeededResponse.copy$default$3; proposalResultSeededResponse.copy(x$40, x$39, x$41) }))(scala.concurrent.ExecutionContext.Implicits.global).map[org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse](((proposalResults: org.make.api.proposal.ProposalsResultSeededResponse) => org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply(proposalResults.total, proposalResults.results.map[org.make.api.proposal.ProposalResultWithUserVote](((proposal: org.make.api.proposal.ProposalResponse) => { val proposalVoteAndQualification: org.make.core.history.HistoryActions.VoteAndQualifications = proposalIdsWithVotes.apply(proposal.id); org.make.api.proposal.ProposalResultWithUserVote.apply(proposal, proposalVoteAndQualification.voteKey, proposalVoteAndQualification.date, proposal.votes.find(((x$10: org.make.api.proposal.VoteResponse) => x$10.voteKey.==(proposalVoteAndQualification.voteKey)))) })), scala.None)))(scala.concurrent.ExecutionContext.Implicits.global) } }))(scala.concurrent.ExecutionContext.Implicits.global)
351 23799 12960 - 12988 Select scala.collection.IterableOnceOps.isEmpty proposalIdsWithVotes.isEmpty
352 25689 13002 - 13090 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse](org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply(0L, scala.`package`.Seq.empty[Nothing], scala.None))
352 28222 13020 - 13089 Apply org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply(0L, scala.`package`.Seq.empty[Nothing], scala.None)
352 27536 13070 - 13071 Literal <nosymbol> 0L
352 26644 13073 - 13082 TypeApply scala.collection.SeqFactory.Delegate.empty scala.`package`.Seq.empty[Nothing]
352 24260 13084 - 13088 Select scala.None scala.None
356 23617 13354 - 13385 Select org.make.core.history.HistoryActions.VoteAndQualifications.date nextVotesAndQualifications.date
356 22507 13313 - 13386 Apply java.time.chrono.ChronoZonedDateTime.isAfter firstVotesAndQualifications.date.isAfter(nextVotesAndQualifications.date)
357 26377 13173 - 13463 Apply scala.collection.IterableOps.map proposalIdsWithVotes.toSeq.sortWith(((x0$2: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), x1$1: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)) => scala.Tuple2.apply[(org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)](x0$2, x1$1) match { case (_1: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), _2: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)): ((org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications), (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications))((_1: org.make.core.proposal.ProposalId, _2: org.make.core.history.HistoryActions.VoteAndQualifications): (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)(_, (firstVotesAndQualifications @ _)), (_1: org.make.core.proposal.ProposalId, _2: org.make.core.history.HistoryActions.VoteAndQualifications): (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)(_, (nextVotesAndQualifications @ _))) => firstVotesAndQualifications.date.isAfter(nextVotesAndQualifications.date) })).map[org.make.core.proposal.ProposalId](((x0$3: (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)) => x0$3 match { case (_1: org.make.core.proposal.ProposalId, _2: org.make.core.history.HistoryActions.VoteAndQualifications): (org.make.core.proposal.ProposalId, org.make.core.history.HistoryActions.VoteAndQualifications)((proposalId @ _), _) => proposalId }))
362 24107 13541 - 13561 Apply scala.Some.apply scala.Some.apply[org.make.core.user.UserId](organisationId)
363 25512 13585 - 13585 Select org.make.core.proposal.SearchQuery.apply$default$6 org.make.core.proposal.SearchQuery.apply$default$6
363 28168 13585 - 13992 Apply org.make.core.proposal.SearchQuery.apply org.make.core.proposal.SearchQuery.apply(x$32, x$36, x$33, x$34, x$35, x$37, x$38)
363 24506 13585 - 13585 Select org.make.core.proposal.SearchQuery.apply$default$7 org.make.core.proposal.SearchQuery.apply$default$7
363 27840 13585 - 13585 Select org.make.core.proposal.SearchQuery.apply$default$2 org.make.core.proposal.SearchQuery.apply$default$2
364 24112 13624 - 13883 Apply scala.Some.apply scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(proposalIds)); <artifact> val x$2: Some[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.OperationKindsSearchFilter](org.make.core.proposal.OperationKindsSearchFilter.apply(org.make.core.operation.OperationKind.publicKinds)); <artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$9: Option[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$8; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14; <artifact> val x$16: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$17: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$18: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$19: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$20: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$22: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$2, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) })
365 28000 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$18 org.make.core.proposal.SearchFilters.apply$default$18
365 27707 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$15 org.make.core.proposal.SearchFilters.apply$default$15
365 27698 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$6 org.make.core.proposal.SearchFilters.apply$default$6
365 22297 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$12 org.make.core.proposal.SearchFilters.apply$default$12
365 24184 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$17 org.make.core.proposal.SearchFilters.apply$default$17
365 22518 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$3 org.make.core.proposal.SearchFilters.apply$default$3
365 25984 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$29 org.make.core.proposal.SearchFilters.apply$default$29
365 27545 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$25 org.make.core.proposal.SearchFilters.apply$default$25
365 27177 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$31 org.make.core.proposal.SearchFilters.apply$default$31
365 25858 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$10 org.make.core.proposal.SearchFilters.apply$default$10
365 27240 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$21 org.make.core.proposal.SearchFilters.apply$default$21
365 26139 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$13 org.make.core.proposal.SearchFilters.apply$default$13
365 26127 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$4 org.make.core.proposal.SearchFilters.apply$default$4
365 25448 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$26 org.make.core.proposal.SearchFilters.apply$default$26
365 26067 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$23 org.make.core.proposal.SearchFilters.apply$default$23
365 23420 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$30 org.make.core.proposal.SearchFilters.apply$default$30
365 27927 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$28 org.make.core.proposal.SearchFilters.apply$default$28
365 25974 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$19 org.make.core.proposal.SearchFilters.apply$default$19
365 23641 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$11 org.make.core.proposal.SearchFilters.apply$default$11
365 23572 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$20 org.make.core.proposal.SearchFilters.apply$default$20
365 25519 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$7 org.make.core.proposal.SearchFilters.apply$default$7
365 26075 13648 - 13865 Apply org.make.core.proposal.SearchFilters.apply org.make.core.proposal.SearchFilters.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$2, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31)
365 24191 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$27 org.make.core.proposal.SearchFilters.apply$default$27
365 25531 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$16 org.make.core.proposal.SearchFilters.apply$default$16
365 24248 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$8 org.make.core.proposal.SearchFilters.apply$default$8
365 24104 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$24 org.make.core.proposal.SearchFilters.apply$default$24
365 23629 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$2 org.make.core.proposal.SearchFilters.apply$default$2
365 27989 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$9 org.make.core.proposal.SearchFilters.apply$default$9
365 24116 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$5 org.make.core.proposal.SearchFilters.apply$default$5
365 23883 13648 - 13648 Select org.make.core.proposal.SearchFilters.apply$default$14 org.make.core.proposal.SearchFilters.apply$default$14
366 25594 13694 - 13747 Apply scala.Some.apply scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(proposalIds))
366 27756 13699 - 13746 Apply org.make.core.proposal.ProposalSearchFilter.apply org.make.core.proposal.ProposalSearchFilter.apply(proposalIds)
367 25988 13786 - 13845 Apply scala.Some.apply scala.Some.apply[org.make.core.proposal.OperationKindsSearchFilter](org.make.core.proposal.OperationKindsSearchFilter.apply(org.make.core.operation.OperationKind.publicKinds))
367 24235 13818 - 13843 Select org.make.core.operation.OperationKind.publicKinds org.make.core.operation.OperationKind.publicKinds
367 28232 13791 - 13844 Apply org.make.core.proposal.OperationKindsSearchFilter.apply org.make.core.proposal.OperationKindsSearchFilter.apply(org.make.core.operation.OperationKind.publicKinds)
375 25992 14075 - 14079 Select scala.None scala.None
376 23716 14121 - 14125 Select scala.None scala.None
378 23569 14157 - 14157 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
379 25931 14205 - 14412 Apply org.make.api.proposal.ProposalsResultSeededResponse.copy proposalResultSeededResponse.copy(x$40, x$39, x$41)
379 25436 14249 - 14411 Apply scala.collection.SeqOps.sortWith proposalResultSeededResponse.results.sortWith(((x0$4: org.make.api.proposal.ProposalResponse, x1$2: org.make.api.proposal.ProposalResponse) => scala.Tuple2.apply[org.make.api.proposal.ProposalResponse, org.make.api.proposal.ProposalResponse](x0$4, x1$2) match { case (_1: org.make.api.proposal.ProposalResponse, _2: org.make.api.proposal.ProposalResponse): (org.make.api.proposal.ProposalResponse, org.make.api.proposal.ProposalResponse)((first @ _), (next @ _)) => proposalIds.indexOf[org.make.core.proposal.ProposalId](first.id).<(proposalIds.indexOf[org.make.core.proposal.ProposalId](next.id)) }))
379 28178 14234 - 14234 Select org.make.api.proposal.ProposalsResultSeededResponse.copy$default$3 proposalResultSeededResponse.copy$default$3
379 23276 14234 - 14234 Select org.make.api.proposal.ProposalsResultSeededResponse.copy$default$1 proposalResultSeededResponse.copy$default$1
380 26388 14387 - 14394 Select org.make.api.proposal.ProposalResponse.id next.id
380 24054 14367 - 14395 Apply scala.collection.SeqOps.indexOf proposalIds.indexOf[org.make.core.proposal.ProposalId](next.id)
380 27849 14335 - 14395 Apply scala.Int.< proposalIds.indexOf[org.make.core.proposal.ProposalId](first.id).<(proposalIds.indexOf[org.make.core.proposal.ProposalId](next.id))
380 27388 14355 - 14363 Select org.make.api.proposal.ProposalResponse.id first.id
383 25384 13474 - 15100 ApplyToImplicitArgs scala.concurrent.Future.map DefaultOrganisationServiceComponent.this.proposalService.searchForUser(scala.Some.apply[org.make.core.user.UserId](organisationId), { <artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(proposalIds)); <artifact> val x$2: Some[org.make.core.proposal.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.OperationKindsSearchFilter](org.make.core.proposal.OperationKindsSearchFilter.apply(org.make.core.operation.OperationKind.publicKinds)); <artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6; <artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7; <artifact> val x$9: Option[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$8; <artifact> val x$10: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9; <artifact> val x$11: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10; <artifact> val x$12: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11; <artifact> val x$13: Option[cats.data.NonEmptyList[org.make.core.proposal.LanguageSearchFilter]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$12; <artifact> val x$14: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13; <artifact> val x$15: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14; <artifact> val x$16: Option[org.make.core.proposal.MinVotesCountSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$15; <artifact> val x$17: Option[org.make.core.proposal.ToEnrichSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$16; <artifact> val x$18: Option[org.make.core.proposal.IsAnonymousSearchFiler] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$17; <artifact> val x$19: Option[org.make.core.proposal.MinScoreSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$18; <artifact> val x$20: Option[org.make.core.proposal.CreatedAtSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$19; <artifact> val x$21: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$20; <artifact> val x$22: Option[org.make.core.proposal.SequencePoolSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$21; <artifact> val x$23: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$24: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$25: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <artifact> val x$26: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$26; <artifact> val x$27: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$27; <artifact> val x$28: Option[org.make.core.proposal.ZoneSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$28; <artifact> val x$29: Option[org.make.core.proposal.MinScoreLowerBoundSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$29; <artifact> val x$30: Option[org.make.core.proposal.KeywordsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$30; <artifact> val x$31: Option[org.make.core.proposal.SubmittedAsLanguagesFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$31; org.make.core.proposal.SearchFilters.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$2, x$23, x$24, x$25, x$26, x$27, x$28, x$29, x$30, x$31) }); <artifact> val x$33: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = sort; <artifact> val x$34: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit; <artifact> val x$35: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset; <artifact> val x$36: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2; <artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6; <artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7; org.make.core.proposal.SearchQuery.apply(x$32, x$36, x$33, x$34, x$35, x$37, x$38) }, requestContext, scala.None, scala.None).map[org.make.api.proposal.ProposalsResultSeededResponse](((proposalResultSeededResponse: org.make.api.proposal.ProposalsResultSeededResponse) => { <artifact> val x$39: Seq[org.make.api.proposal.ProposalResponse] @scala.reflect.internal.annotations.uncheckedBounds = proposalResultSeededResponse.results.sortWith(((x0$4: org.make.api.proposal.ProposalResponse, x1$2: org.make.api.proposal.ProposalResponse) => scala.Tuple2.apply[org.make.api.proposal.ProposalResponse, org.make.api.proposal.ProposalResponse](x0$4, x1$2) match { case (_1: org.make.api.proposal.ProposalResponse, _2: org.make.api.proposal.ProposalResponse): (org.make.api.proposal.ProposalResponse, org.make.api.proposal.ProposalResponse)((first @ _), (next @ _)) => proposalIds.indexOf[org.make.core.proposal.ProposalId](first.id).<(proposalIds.indexOf[org.make.core.proposal.ProposalId](next.id)) })); <artifact> val x$40: Long = proposalResultSeededResponse.copy$default$1; <artifact> val x$41: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = proposalResultSeededResponse.copy$default$3; proposalResultSeededResponse.copy(x$40, x$39, x$41) }))(scala.concurrent.ExecutionContext.Implicits.global).map[org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse](((proposalResults: org.make.api.proposal.ProposalsResultSeededResponse) => org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply(proposalResults.total, proposalResults.results.map[org.make.api.proposal.ProposalResultWithUserVote](((proposal: org.make.api.proposal.ProposalResponse) => { val proposalVoteAndQualification: org.make.core.history.HistoryActions.VoteAndQualifications = proposalIdsWithVotes.apply(proposal.id); org.make.api.proposal.ProposalResultWithUserVote.apply(proposal, proposalVoteAndQualification.voteKey, proposalVoteAndQualification.date, proposal.votes.find(((x$10: org.make.api.proposal.VoteResponse) => x$10.voteKey.==(proposalVoteAndQualification.voteKey)))) })), scala.None)))(scala.concurrent.ExecutionContext.Implicits.global)
383 27648 14444 - 14444 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
384 23812 14479 - 15086 Apply org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply org.make.api.proposal.ProposalsResultWithUserVoteSeededResponse.apply(proposalResults.total, proposalResults.results.map[org.make.api.proposal.ProposalResultWithUserVote](((proposal: org.make.api.proposal.ProposalResponse) => { val proposalVoteAndQualification: org.make.core.history.HistoryActions.VoteAndQualifications = proposalIdsWithVotes.apply(proposal.id); org.make.api.proposal.ProposalResultWithUserVote.apply(proposal, proposalVoteAndQualification.voteKey, proposalVoteAndQualification.date, proposal.votes.find(((x$10: org.make.api.proposal.VoteResponse) => x$10.voteKey.==(proposalVoteAndQualification.voteKey)))) })), scala.None)
385 27309 14546 - 14567 Select org.make.api.proposal.ProposalsResultSeededResponse.total proposalResults.total
386 27323 14595 - 15041 Apply scala.collection.IterableOps.map proposalResults.results.map[org.make.api.proposal.ProposalResultWithUserVote](((proposal: org.make.api.proposal.ProposalResponse) => { val proposalVoteAndQualification: org.make.core.history.HistoryActions.VoteAndQualifications = proposalIdsWithVotes.apply(proposal.id); org.make.api.proposal.ProposalResultWithUserVote.apply(proposal, proposalVoteAndQualification.voteKey, proposalVoteAndQualification.date, proposal.votes.find(((x$10: org.make.api.proposal.VoteResponse) => x$10.voteKey.==(proposalVoteAndQualification.voteKey)))) }))
387 26062 14711 - 14722 Select org.make.api.proposal.ProposalResponse.id proposal.id
387 24063 14690 - 14723 Apply scala.collection.MapOps.apply proposalIdsWithVotes.apply(proposal.id)
388 23504 14742 - 15023 Apply org.make.api.proposal.ProposalResultWithUserVote.apply org.make.api.proposal.ProposalResultWithUserVote.apply(proposal, proposalVoteAndQualification.voteKey, proposalVoteAndQualification.date, proposal.votes.find(((x$10: org.make.api.proposal.VoteResponse) => x$10.voteKey.==(proposalVoteAndQualification.voteKey))))
390 27782 14820 - 14856 Select org.make.core.history.HistoryActions.VoteAndQualifications.voteKey proposalVoteAndQualification.voteKey
391 25444 14878 - 14911 Select org.make.core.history.HistoryActions.VoteAndQualifications.date proposalVoteAndQualification.date
392 25939 14933 - 15003 Apply scala.collection.IterableOnceOps.find proposal.votes.find(((x$10: org.make.api.proposal.VoteResponse) => x$10.voteKey.==(proposalVoteAndQualification.voteKey)))
392 27921 14953 - 15002 Apply java.lang.Object.== x$10.voteKey.==(proposalVoteAndQualification.voteKey)
392 23285 14966 - 15002 Select org.make.core.history.HistoryActions.VoteAndQualifications.voteKey proposalVoteAndQualification.voteKey
395 24998 15066 - 15070 Select scala.None scala.None