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.question
21 
22 import cats.implicits._
23 import akka.http.scaladsl.model.{MediaTypes, StatusCodes}
24 import akka.http.scaladsl.server._
25 import akka.http.scaladsl.unmarshalling.Unmarshal
26 import akka.http.scaladsl.unmarshalling.Unmarshaller._
27 import akka.stream.Materializer
28 import akka.stream.alpakka.csv.scaladsl.{CsvParsing, CsvToMap}
29 import akka.stream.scaladsl.{Sink, Source}
30 import cats.data.Validated.Valid
31 import cats.data.ValidatedNec
32 import eu.timepit.refined.api.Refined
33 import eu.timepit.refined.boolean.And
34 import eu.timepit.refined.collection.{MaxSize, MinSize}
35 import grizzled.slf4j.Logging
36 import io.circe.Decoder
37 import io.circe.generic.semiauto.deriveDecoder
38 import io.circe.refined._
39 import io.swagger.annotations._
40 
41 import javax.ws.rs.Path
42 import org.make.api.operation.{OperationOfQuestionServiceComponent, OperationServiceComponent}
43 import org.make.api.proposal.{
44   ExhaustiveSearchRequest,
45   ProposalIdResponse,
46   ProposalSearchEngineComponent,
47   ProposalServiceComponent,
48   RefuseProposalRequest
49 }
50 import org.make.api.question.DefaultPersistentQuestionServiceComponent.PersistentQuestion
51 import org.make.api.technical.MakeDirectives.MakeDirectivesDependencies
52 import org.make.api.technical.Traverses.RichTraverse
53 import org.make.api.technical.directives.FutureDirectivesExtensions._
54 import org.make.api.technical.storage.{Content, FileType, StorageServiceComponent, UploadResponse}
55 import org.make.api.technical.{`X-Total-Count`, MakeAuthenticationDirectives}
56 import org.make.api.user.UserServiceComponent
57 import org.make.core._
58 import org.make.core.Validation._
59 import org.make.core.technical.{Multilingual, MultilingualUtils, Pagination}
60 import org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils
61 import org.make.core.auth.UserRights
62 import org.make.core.operation.OperationId
63 import org.make.core.proposal.{
64   ContentSearchFilter,
65   ProposalType,
66   ProposalTypesSearchFilter,
67   QuestionSearchFilter,
68   SearchFilters,
69   SearchQuery,
70   UserSearchFilter
71 }
72 import org.make.core.question.{Question, QuestionId}
73 import org.make.core.reference.{Country, Language}
74 import org.make.core.tag.TagId
75 import org.make.core.user.Role.RoleAdmin
76 import scalaoauth2.provider.AuthInfo
77 
78 import scala.annotation.meta.field
79 import scala.collection.mutable
80 import scala.concurrent.ExecutionContext.Implicits.global
81 import scala.concurrent.Future
82 
83 @Api(value = "Moderation questions")
84 @Path(value = "/moderation/questions")
85 trait ModerationQuestionApi extends Directives {
86 
87   @ApiOperation(
88     value = "moderation-list-questions",
89     httpMethod = "GET",
90     code = HttpCodes.OK,
91     authorizations = Array(
92       new Authorization(
93         value = "MakeApi",
94         scopes = Array(
95           new AuthorizationScope(scope = "admin", description = "BO Admin"),
96           new AuthorizationScope(scope = "moderator", description = "BO Moderator")
97         )
98       )
99     )
100   )
101   @ApiImplicitParams(
102     value = Array(
103       new ApiImplicitParam(
104         name = "_start",
105         paramType = "query",
106         dataType = "int",
107         allowableValues = "range[0, infinity]"
108       ),
109       new ApiImplicitParam(
110         name = "_end",
111         paramType = "query",
112         dataType = "int",
113         allowableValues = "range[0, infinity]"
114       ),
115       new ApiImplicitParam(
116         name = "_sort",
117         paramType = "query",
118         dataType = "string",
119         allowableValues = PersistentQuestion.swaggerAllowableValues
120       ),
121       new ApiImplicitParam(
122         name = "_order",
123         paramType = "query",
124         dataType = "string",
125         allowableValues = Order.swaggerAllowableValues
126       ),
127       new ApiImplicitParam(name = "slug", paramType = "query", dataType = "string"),
128       new ApiImplicitParam(name = "operationId", paramType = "query", dataType = "string"),
129       new ApiImplicitParam(name = "country", paramType = "query", dataType = "string"),
130       new ApiImplicitParam(name = "language", paramType = "query", dataType = "string")
131     )
132   )
133   @ApiResponses(
134     value =
135       Array(new ApiResponse(code = HttpCodes.OK, message = "Ok", response = classOf[Array[ModerationQuestionResponse]]))
136   )
137   @Path(value = "/")
138   def listQuestions: Route
139 
140   @ApiOperation(
141     value = "moderation-create-initial-proposal",
142     httpMethod = "POST",
143     code = HttpCodes.OK,
144     authorizations = Array(
145       new Authorization(
146         value = "MakeApi",
147         scopes = Array(new AuthorizationScope(scope = "admin", description = "BO Admin"))
148       )
149     )
150   )
151   @ApiImplicitParams(
152     value = Array(
153       new ApiImplicitParam(
154         name = "body",
155         paramType = "body",
156         dataType = "org.make.api.question.CreateInitialProposalRequest"
157       ),
158       new ApiImplicitParam(name = "questionId", paramType = "path", dataType = "string")
159     )
160   )
161   @ApiResponses(
162     value = Array(new ApiResponse(code = HttpCodes.Created, message = "Ok", response = classOf[ProposalIdResponse]))
163   )
164   @Path(value = "/{questionId}/initial-proposals")
165   def addInitialProposal: Route
166 
167   @ApiOperation(
168     value = "moderation-refuse-initial-proposal",
169     httpMethod = "POST",
170     code = HttpCodes.NoContent,
171     authorizations = Array(
172       new Authorization(
173         value = "MakeApi",
174         scopes = Array(new AuthorizationScope(scope = "admin", description = "BO Admin"))
175       )
176     )
177   )
178   @ApiImplicitParams(value = Array(new ApiImplicitParam(name = "questionId", paramType = "path", dataType = "string")))
179   @ApiResponses(value = Array(new ApiResponse(code = HttpCodes.NoContent, message = "No Content")))
180   @Path(value = "/{questionId}/initial-proposals/refuse")
181   def refuseInitialProposals: Route
182 
183   @ApiOperation(
184     value = "moderation-inject-proposal",
185     httpMethod = "POST",
186     consumes = "multipart/form-data",
187     code = HttpCodes.NoContent,
188     authorizations = Array(
189       new Authorization(
190         value = "MakeApi",
191         scopes = Array(new AuthorizationScope(scope = "admin", description = "BO Admin"))
192       )
193     )
194   )
195   @ApiImplicitParams(
196     value = Array(
197       new ApiImplicitParam(name = "questionId", paramType = "path", dataType = "string"),
198       new ApiImplicitParam(name = "proposals", paramType = "formData", dataType = "file", required = true),
199       new ApiImplicitParam(
200         name = "body",
201         paramType = "formData",
202         dataType = "org.make.api.question.InjectProposalsRequest"
203       )
204     )
205   )
206   @ApiResponses(value = Array(new ApiResponse(code = HttpCodes.Accepted, message = "Accepted")))
207   @Path(value = "/{questionId}/inject-proposals")
208   def injectProposals: Route
209 
210   @ApiOperation(
211     value = "moderation-get-question",
212     httpMethod = "GET",
213     code = HttpCodes.OK,
214     authorizations = Array(
215       new Authorization(
216         value = "MakeApi",
217         scopes = Array(
218           new AuthorizationScope(scope = "admin", description = "BO Admin"),
219           new AuthorizationScope(scope = "moderator", description = "BO Moderator")
220         )
221       )
222     )
223   )
224   @ApiResponses(
225     value = Array(new ApiResponse(code = HttpCodes.OK, message = "Ok", response = classOf[ModerationQuestionResponse]))
226   )
227   @ApiImplicitParams(value = Array(new ApiImplicitParam(name = "questionId", paramType = "path", dataType = "string")))
228   @Path(value = "/{questionId}")
229   def getQuestion: Route
230 
231   @ApiOperation(
232     value = "moderation-upload-operation-consultation-image",
233     httpMethod = "POST",
234     code = HttpCodes.OK,
235     consumes = "multipart/form-data",
236     authorizations = Array(
237       new Authorization(
238         value = "MakeApi",
239         scopes = Array(new AuthorizationScope(scope = "admin", description = "BO Admin"))
240       )
241     )
242   )
243   @ApiImplicitParams(
244     value = Array(
245       new ApiImplicitParam(name = "questionId", paramType = "path", dataType = "string"),
246       new ApiImplicitParam(name = "data", paramType = "formData", dataType = "file", required = true)
247     )
248   )
249   @ApiResponses(value = Array(new ApiResponse(code = HttpCodes.OK, message = "Ok", response = classOf[UploadResponse])))
250   @Path(value = "/{questionId}/image")
251   def uploadQuestionImage: Route
252 
253   @ApiOperation(
254     value = "moderation-upload-consultation-report",
255     httpMethod = "POST",
256     code = HttpCodes.OK,
257     consumes = "multipart/form-data",
258     authorizations = Array(
259       new Authorization(
260         value = "MakeApi",
261         scopes = Array(new AuthorizationScope(scope = "admin", description = "BO Admin"))
262       )
263     )
264   )
265   @ApiImplicitParams(
266     value = Array(
267       new ApiImplicitParam(name = "questionId", paramType = "path", dataType = "string"),
268       new ApiImplicitParam(name = "data", paramType = "formData", dataType = "file", required = true)
269     )
270   )
271   @ApiResponses(value = Array(new ApiResponse(code = HttpCodes.OK, message = "Ok", response = classOf[UploadResponse])))
272   @Path(value = "/{questionId}/report")
273   def uploadReport: Route
274 
275   def routes: Route =
276     listQuestions ~ getQuestion ~ addInitialProposal ~ refuseInitialProposals ~ uploadQuestionImage ~ uploadReport ~ injectProposals
277 
278 }
279 
280 trait ModerationQuestionComponent {
281   def moderationQuestionApi: ModerationQuestionApi
282 }
283 
284 trait DefaultModerationQuestionComponent
285     extends ModerationQuestionComponent
286     with MakeAuthenticationDirectives
287     with Logging
288     with ParameterExtractors {
289 
290   this: MakeDirectivesDependencies
291     with QuestionServiceComponent
292     with ProposalServiceComponent
293     with ProposalSearchEngineComponent
294     with StorageServiceComponent
295     with OperationOfQuestionServiceComponent
296     with OperationServiceComponent
297     with UserServiceComponent =>
298 
299   override lazy val moderationQuestionApi: ModerationQuestionApi = new DefaultModerationQuestionApi
300 
301   class DefaultModerationQuestionApi extends ModerationQuestionApi {
302 
303     import Validation.AnyWithParsers
304 
305     lazy val questionId: PathMatcher1[QuestionId] = Segment.map(QuestionId.apply)
306 
307     @SuppressWarnings(Array("org.wartremover.warts.Throw"))
308     override def addInitialProposal: Route = post {
309       path("moderation" / "questions" / questionId / "initial-proposals") { questionId =>
310         makeOperation("ModerationAddInitialProposalToQuestion") { requestContext =>
311           makeOAuth2 { userAuth: AuthInfo[UserRights] =>
312             requireAdminRole(userAuth.user) {
313               decodeRequest {
314                 entity(as[CreateInitialProposalRequest]) { request =>
315                   questionService.getQuestion(questionId).asDirectiveOrNotFound { question =>
316                     val contents =
317                       List(
318                         (
319                           request.contentTranslations
320                             .map(_.mapTranslations(_.value))
321                             .getOrElse(Multilingual.empty)
322                             .addTranslation(request.submittedAsLanguage, request.content.value),
323                           "contents"
324                         )
325                       )
326                     elasticsearchProposalAPI
327                       .countProposals(
328                         SearchQuery(filters = SearchFilters(
329                           question = QuestionSearchFilter(Seq(questionId)).some,
330                           proposalTypes = ProposalTypesSearchFilter(Seq(ProposalType.ProposalTypeInitial)).some
331                         ).some
332                         )
333                       )
334                       .asDirective { initialProposalsCount =>
335                         (
336                           // NOTE: cannot rewrite as MultilingualUtils.genDecoder since the required languages aren't located in the same data structure
337                           MultilingualUtils
338                             .hasRequiredTranslations(question.languages.toList.toSet, contents)
339                             .toValidationEither,
340                           request.country
341                             .toOneOf(question.countries.toList, "country")
342                             .toValidationEither,
343                           initialProposalsCount
344                             .max("proposals", 20, Some("Too many initial proposals"))
345                             .toValidationEither
346                         ).mapN {
347                           case (_, country, _) =>
348                             proposalService
349                               .createInitialProposal(
350                                 request.content.value,
351                                 request.contentTranslations.map(_.mapTranslations(_.value)),
352                                 question,
353                                 country.value,
354                                 request.submittedAsLanguage,
355                                 false,
356                                 request.tags,
357                                 request.author,
358                                 userAuth.user.userId,
359                                 requestContext
360                               )
361                         }.fold(failWith, _.asDirective { proposalId =>
362                           complete(StatusCodes.Created -> ProposalIdResponse(proposalId))
363                         })
364                       }
365                   }
366                 }
367               }
368             }
369           }
370         }
371       }
372     }
373 
374     override def refuseInitialProposals: Route = post {
375       path("moderation" / "questions" / questionId / "initial-proposals" / "refuse") { questionId =>
376         makeOperation("ModerationRefuseInitialProposals") { requestContext =>
377           makeOAuth2 { userAuth: AuthInfo[UserRights] =>
378             requireAdminRole(userAuth.user) {
379               val query = ExhaustiveSearchRequest(
380                 questionIds = Some(Seq(questionId)),
381                 proposalTypes = Some(Seq(ProposalType.ProposalTypeInitial))
382               ).toSearchQuery(requestContext)
383               proposalService.searchInIndex(query = query, requestContext = requestContext).asDirective { proposals =>
384                 Future
385                   .traverse(proposals.results.map(_.id)) { proposalId =>
386                     proposalService
387                       .refuseProposal(
388                         proposalId,
389                         userAuth.user.userId,
390                         requestContext,
391                         RefuseProposalRequest(sendNotificationEmail = false, refusalReason = Some("Other"))
392                       )
393                   }
394                   .asDirective { _ =>
395                     complete(StatusCodes.NoContent)
396                   }
397               }
398             }
399           }
400         }
401       }
402     }
403 
404     private case class UserData(firstName: String, age: Option[String])
405 
406     private def getDuplicateLanguageWarning(
407       translations: Option[Multilingual[String]],
408       contentOriginalLanguage: String,
409       lineNumber: Int
410     ): Option[String] = {
411       translations.flatMap { t =>
412         Option.when(t.providedLanguages.contains(Language(contentOriginalLanguage)))(
413           s"Warning: duplicate language $contentOriginalLanguage on line $lineNumber, proposal from the content column was chosen"
414         )
415       }
416     }
417 
418     private def getTranslations(line: Map[String, String]): Option[Map[String, String]] = {
419       val notLanguagesHeaders = Seq("content", "contentOriginalLanguage", "firstName", "age", "externalUserId")
420       line.filterNot {
421         case (key, value) => notLanguagesHeaders.contains(key) || value.isEmpty
422       } match {
423         case t if t.isEmpty => None
424         case t              => Some(t)
425       }
426     }
427 
428     @SuppressWarnings(Array("org.wartremover.warts.MutableDataStructures"))
429     private def validateLine(
430       line: Map[String, String],
431       userData: mutable.Map[String, UserData],
432       questionLanguages: List[Language],
433       lineNumber: Int
434     ): ValidatedNec[
435       ValidationError,
436       (
437         StringWithMaxLength,
438         StringWithMinLength,
439         NonEmptyString,
440         Option[Multilingual[String]],
441         NonEmptyString,
442         Option[Int],
443         NonEmptyString,
444         Unit
445       )
446     ] = {
447       val maxProposalLength = BusinessConfig.defaultProposalMaxLength
448       val minProposalLength = FrontConfiguration.defaultProposalMinLength
449       val translations: Option[Multilingual[String]] = getTranslations(line).map(t => Multilingual.fromMap(t))
450       (
451         line
452           .getOrElse("content", "")
453           .withMaxLength(
454             maxProposalLength,
455             "content",
456             None,
457             Some(s"content should be less than $maxProposalLength characters on line $lineNumber")
458           ),
459         line
460           .getOrElse("content", "")
461           .withMinLength(
462             minProposalLength,
463             "content",
464             None,
465             Some(s"content should be more than $minProposalLength characters on line $lineNumber")
466           ),
467         line.getNonEmptyString(
468           "contentOriginalLanguage",
469           Some(s"contentOriginalLanguage is required on line $lineNumber")
470         ),
471         MultilingualUtils
472           .hasRequiredTranslationsFromCsv(
473             questionLanguages.toSet,
474             translations,
475             line.get("contentOriginalLanguage").map(Language(_)),
476             lineNumber
477           ),
478         line.getNonEmptyString("firstName", Some(s"firstName is required on line $lineNumber")),
479         line
480           .get("age")
481           .traverse(_.toValidAge(Some(s"age should be over than $minLegalAgeForExternalProposal on line $lineNumber"))),
482         line.getNonEmptyString("externalUserId", Some(s"externalUserId is required on line $lineNumber")),
483         line.get("externalUserId") match {
484           case None => ().validNec
485           case Some(id) =>
486             userData.get(id) match {
487               case Some(UserData(firstName, _)) if !line.get("firstName").contains(firstName) =>
488                 ValidationError(
489                   "firstName",
490                   "unexpected_value",
491                   Some(s"users with the same externalUserId should have the same firstName on line $lineNumber")
492                 ).invalidNec
493               case Some(UserData(_, age)) if line.get("age") != age =>
494                 ValidationError(
495                   "age",
496                   "unexpected_value",
497                   Some(s"users with the same externalUserId should have the same age on line $lineNumber")
498                 ).invalidNec
499               case _ =>
500                 userData += (id -> UserData(line.getOrElse("firstName", ""), line.get("age")))
501                 ().validNec
502             }
503         }
504       ).tupled
505     }
506 
507     @SuppressWarnings(Array("org.wartremover.warts.MutableDataStructures"))
508     override def injectProposals: Route = post {
509       path("moderation" / "questions" / questionId / "inject-proposals") { questionId =>
510         makeOperation("ModerationInjectProposals") { requestContext =>
511           makeOAuth2 { userAuth: AuthInfo[UserRights] =>
512             requireAdminRole(userAuth.user) {
513               questionService.getQuestion(questionId).asDirectiveOrNotFound { question =>
514                 extractRequestContext { ctx =>
515                   implicit val materializer: Materializer = ctx.materializer
516                   formField("body") { body =>
517                     Unmarshal(body).to[InjectProposalsRequest].asDirective { request =>
518                       fileUpload("proposals") {
519                         case (fileInfo, byteSource) =>
520                           Validation.validate(
521                             validateField(
522                               fileInfo.fieldName,
523                               "invalid_format",
524                               fileInfo.contentType.mediaType == MediaTypes.`text/csv`,
525                               "File must be a csv"
526                             )
527                           )
528                           byteSource
529                             .recoverWithRetries(
530                               attempts = 1, {
531                                 case e: Exception =>
532                                   logger.error(s"Failed to parse CSV file: ${e.getMessage}")
533                                   Source.failed(new IllegalArgumentException("Invalid CSV format"))
534                               }
535                             )
536                             .via(CsvParsing.lineScanner())
537                             .via(CsvToMap.toMapAsStrings())
538                             .runWith(Sink.seq)
539                             .asDirective { lines =>
540                               val userData = mutable.Map.empty[String, UserData]
541                               lines.zipWithIndex.toList.sequentialTraverse {
542                                 case (line, index) =>
543                                   val lineNumber = index + 2
544                                   val trimLine = line.map {
545                                     case (key, value) => (key.trim, value.trim)
546                                   }
547                                   val validation =
548                                     validateLine(trimLine, userData, question.languages.toList, lineNumber)
549                                   validation match {
550                                     case Valid(
551                                         (content, _, originalLanguage, translations, firstName, age, externalUserId, _)
552                                         ) =>
553                                       val warning =
554                                         getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber)
555                                       for {
556                                         user <- userService
557                                           .getUserByEmail(
558                                             s"${question.questionId.value}-${externalUserId.value}@example.com"
559                                           )
560                                         count <- user.fold(Future.successful(0L))(
561                                           u =>
562                                             elasticsearchProposalAPI
563                                               .countProposals(
564                                                 SearchQuery(filters = SearchFilters(
565                                                   content = ContentSearchFilter(content.value).some,
566                                                   question = QuestionSearchFilter(Seq(questionId)).some,
567                                                   users = UserSearchFilter(Seq(u.userId)).some
568                                                 ).some
569                                                 )
570                                               )
571                                         )
572                                         result <- count match {
573                                           case 0L =>
574                                             proposalService
575                                               .createExternalProposal(
576                                                 content.value,
577                                                 contentTranslations = translations,
578                                                 question = question,
579                                                 country = question.countries.head,
580                                                 submittedAsLanguage = Language(originalLanguage.value),
581                                                 isAnonymous = request.anonymous,
582                                                 externalUserId = externalUserId.value,
583                                                 author = AuthorRequest(
584                                                   firstName = firstName.value,
585                                                   age = age,
586                                                   lastName = None,
587                                                   postalCode = None,
588                                                   profession = None
589                                                 ),
590                                                 moderator = userAuth.user.userId,
591                                                 moderatorRequestContext = requestContext,
592                                                 lineNumber = lineNumber
593                                               )
594                                               .as((validation, warning))
595                                           case _ => Future.successful((validation, None))
596                                         }
597                                       } yield result
598                                     case _ => Future.successful((validation, None))
599                                   }
600                               }.asDirective { res =>
601                                 val (validations, warnings) = res.unzip
602                                 validations.sequence.throwIfInvalid()
603                                 complete(StatusCodes.Accepted -> warnings.flatten)
604                               }
605                             }
606                       }
607                     }
608                   }
609                 }
610               }
611             }
612           }
613         }
614       }
615     }
616 
617     override def listQuestions: Route = get {
618       path("moderation" / "questions") {
619         makeOperation("ModerationSearchQuestion") { _ =>
620           parameters(
621             "slug".?,
622             "operationId".as[OperationId].?,
623             "country".as[Country].?,
624             "language".as[Language].?,
625             "_start".as[Pagination.Offset].?,
626             "_end".as[Pagination.End].?,
627             "_sort".?,
628             "_order".as[Order].?
629           ) { (maybeSlug, operationId, country, language, offset, end, sort, order) =>
630             makeOAuth2 { userAuth: AuthInfo[UserRights] =>
631               requireModerationRole(userAuth.user) {
632                 val questionIds: Option[Seq[QuestionId]] = if (userAuth.user.roles.contains(RoleAdmin)) {
633                   None
634                 } else {
635                   Some(userAuth.user.availableQuestions)
636                 }
637                 val request: SearchQuestionRequest = SearchQuestionRequest(
638                   maybeQuestionIds = questionIds,
639                   maybeOperationIds = operationId.map(op => Seq(op)),
640                   country = country,
641                   language = language,
642                   maybeSlug = maybeSlug,
643                   offset = offset,
644                   end = end,
645                   sort = sort,
646                   order = order
647                 )
648                 val searchResults: Future[(Int, Seq[Question])] =
649                   questionService.countQuestion(request).flatMap { count =>
650                     questionService.searchQuestion(request).map(results => count -> results)
651                   }
652 
653                 onSuccess(searchResults) {
654                   case (count, results) =>
655                     complete(
656                       (
657                         StatusCodes.OK,
658                         Seq(`X-Total-Count`(count.toString)),
659                         results.map(ModerationQuestionResponse.apply)
660                       )
661                     )
662                 }
663               }
664             }
665           }
666         }
667       }
668     }
669 
670     override def getQuestion: Route = get {
671       path("moderation" / "questions" / questionId) { questionId =>
672         makeOperation("ModerationGetQuestion") { _ =>
673           makeOAuth2 { userAuth: AuthInfo[UserRights] =>
674             requireModerationRole(userAuth.user) {
675               questionService.getQuestion(questionId).asDirectiveOrNotFound { question =>
676                 complete(ModerationQuestionResponse(question))
677               }
678             }
679           }
680         }
681       }
682     }
683 
684     override def uploadQuestionImage: Route = {
685       post {
686         path("moderation" / "questions" / questionId / "image") { questionId =>
687           makeOperation("uploadQuestionConsultationImage") { _ =>
688             makeOAuth2 { user =>
689               requireAdminRole(user.user) {
690                 operationOfQuestionService.findByQuestionId(questionId).asDirectiveOrNotFound { operationOfQuestion =>
691                   operationService.findOneSimple(operationOfQuestion.operationId).asDirectiveOrNotFound { operation =>
692                     def uploadFile(extension: String, contentType: String, fileContent: Content): Future[String] = {
693                       storageService
694                         .uploadImage(
695                           FileType.Operation,
696                           s"${operation.slug}/${idGenerator.nextId()}$extension",
697                           contentType,
698                           fileContent
699                         )
700                     }
701                     uploadImageAsync("data", uploadFile, sizeLimit = None) { (path, file) =>
702                       file.delete()
703                       complete(UploadResponse(path))
704                     }
705                   }
706                 }
707               }
708             }
709           }
710         }
711       }
712     }
713 
714     override def uploadReport: Route = {
715       post {
716         path("moderation" / "questions" / questionId / "report") { questionId =>
717           makeOperation("uploadConsultationReport") { _ =>
718             makeOAuth2 { user =>
719               requireAdminRole(user.user) {
720                 operationOfQuestionService.findByQuestionId(questionId).asDirectiveOrNotFound { operationOfQuestion =>
721                   operationService.findOneSimple(operationOfQuestion.operationId).asDirectiveOrNotFound { operation =>
722                     def uploadFile(name: String, contentType: String, fileContent: Content): Future[String] = {
723                       storageService
724                         .uploadReport(
725                           FileType.Report,
726                           s"${operation.slug}_${idGenerator.nextId()}_$name",
727                           contentType,
728                           fileContent
729                         )
730                     }
731                     uploadPDFAsync("data", uploadFile) { (path, file) =>
732                       file.delete()
733                       complete(UploadResponse(path))
734                     }
735                   }
736                 }
737               }
738             }
739           }
740         }
741       }
742     }
743   }
744 }
745 
746 final case class CreateInitialProposalRequest(
747   content: String Refined (
748     MinSize[FrontConfiguration.defaultProposalMinLength]
749       And MaxSize[BusinessConfig.defaultProposalMaxLength]
750       And ValidHtml
751   ),
752   contentTranslations: Option[Multilingual[
753     String Refined (
754       MinSize[FrontConfiguration.defaultProposalMinLength]
755         And MaxSize[BusinessConfig.defaultProposalTranslationMaxLength]
756         And ValidHtml
757     )
758   ]],
759   @(ApiModelProperty @field)(dataType = "string", example = "FR", required = true)
760   country: Country,
761   @(ApiModelProperty @field)(dataType = "string", example = "fr", required = true)
762   submittedAsLanguage: Language,
763   author: AuthorRequest,
764   @(ApiModelProperty @field)(dataType = "list[string]", required = true) tags: Seq[TagId]
765 )
766 
767 object CreateInitialProposalRequest {
768   implicit val decoder: Decoder[CreateInitialProposalRequest] = deriveDecoder[CreateInitialProposalRequest]
769 }
770 
771 final case class InjectProposalsRequest(anonymous: Boolean)
772 
773 object InjectProposalsRequest {
774   implicit val decoder: Decoder[InjectProposalsRequest] = deriveDecoder[InjectProposalsRequest]
775 }
Line Stmt Id Pos Tree Symbol Tests Code
276 37164 9628 - 9723 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)).~(ModerationQuestionApi.this.addInitialProposal)).~(ModerationQuestionApi.this.refuseInitialProposals)).~(ModerationQuestionApi.this.uploadQuestionImage)
276 31667 9628 - 9756 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)).~(ModerationQuestionApi.this.addInitialProposal)).~(ModerationQuestionApi.this.refuseInitialProposals)).~(ModerationQuestionApi.this.uploadQuestionImage)).~(ModerationQuestionApi.this.uploadReport)).~(ModerationQuestionApi.this.injectProposals)
276 46069 9704 - 9723 Select org.make.api.question.ModerationQuestionApi.uploadQuestionImage org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.uploadQuestionImage
276 39280 9741 - 9756 Select org.make.api.question.ModerationQuestionApi.injectProposals org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.injectProposals
276 36152 9679 - 9701 Select org.make.api.question.ModerationQuestionApi.refuseInitialProposals org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.refuseInitialProposals
276 32712 9628 - 9701 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)).~(ModerationQuestionApi.this.addInitialProposal)).~(ModerationQuestionApi.this.refuseInitialProposals)
276 50533 9628 - 9641 Select org.make.api.question.ModerationQuestionApi.listQuestions org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.listQuestions
276 46352 9644 - 9655 Select org.make.api.question.ModerationQuestionApi.getQuestion org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.getQuestion
276 43729 9628 - 9676 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)).~(ModerationQuestionApi.this.addInitialProposal)
276 30579 9658 - 9676 Select org.make.api.question.ModerationQuestionApi.addInitialProposal org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.addInitialProposal
276 50284 9726 - 9738 Select org.make.api.question.ModerationQuestionApi.uploadReport org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.uploadReport
276 39518 9628 - 9655 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)
276 46390 9628 - 9738 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)).~(ModerationQuestionApi.this.addInitialProposal)).~(ModerationQuestionApi.this.refuseInitialProposals)).~(ModerationQuestionApi.this.uploadQuestionImage)).~(ModerationQuestionApi.this.uploadReport)
308 33874 10705 - 13887 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationAddInitialProposalToQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) })))))))))))))
308 44468 10705 - 10709 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
309 46100 10736 - 10736 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
309 39314 10763 - 10763 ApplyToImplicitArgs akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join org.make.api.question.moderationquestionapitest TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
309 32752 10738 - 10749 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
309 35904 10723 - 10735 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
309 31696 10723 - 10784 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
309 36648 10722 - 10722 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]
309 51021 10765 - 10784 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals")
309 37685 10750 - 10750 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]
309 46899 10763 - 10763 TypeApply akka.http.scaladsl.server.util.TupleFoldInstances.t0 org.make.api.question.moderationquestionapitest TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
309 42009 10718 - 13881 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationAddInitialProposalToQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) }))))))))))))
309 44231 10718 - 10785 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
310 37720 10810 - 10810 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
310 50782 10810 - 10865 Apply org.make.api.technical.MakeDirectives.makeOperation org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation("ModerationAddInitialProposalToQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
310 49597 10810 - 13873 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationAddInitialProposalToQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) }))))))))))
310 32789 10824 - 10864 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationAddInitialProposalToQuestion"
310 42634 10823 - 10823 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
310 45864 10810 - 10810 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
311 30904 10896 - 10896 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
311 36511 10896 - 13863 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) }))))))))
311 39351 10896 - 10906 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
312 40367 10955 - 13851 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) }))))))
312 44269 10972 - 10985 Select scalaoauth2.provider.AuthInfo.user userAuth.user
312 35856 10955 - 10986 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)
313 31939 11003 - 11016 Select akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest DefaultModerationQuestionApi.this.decodeRequest
313 48789 11003 - 13837 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) })))))
314 45899 11044 - 11044 Select org.make.api.question.CreateInitialProposalRequest.decoder question.this.CreateInitialProposalRequest.decoder
314 38497 11035 - 11075 Apply akka.http.scaladsl.server.directives.MarshallingDirectives.entity DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder))))
314 50818 11044 - 11044 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder))
314 35461 11035 - 13821 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.api.question.CreateInitialProposalRequest,)](DefaultModerationQuestionApi.this.entity[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]).apply(((request: org.make.api.question.CreateInitialProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) }))))
314 30939 11041 - 11041 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]
314 42668 11042 - 11074 ApplyToImplicitArgs akka.http.scaladsl.server.directives.MarshallingDirectives.as DefaultModerationQuestionApi.this.as[org.make.api.question.CreateInitialProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.question.CreateInitialProposalRequest](DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)))
314 37482 11044 - 11044 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)
315 31978 11147 - 11147 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.question.Question]
315 42298 11107 - 13803 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => { val contents: List[(org.make.core.technical.Multilingual[String], String)] = scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")); server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))))))))) }))
315 35894 11107 - 11168 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound
315 44028 11107 - 11146 Apply org.make.api.question.QuestionService.getQuestion DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)
317 48973 11240 - 11629 Apply scala.collection.IterableFactory.apply scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents"))
318 35935 11270 - 11605 Apply scala.Tuple2.apply scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value), "contents")
320 45814 11377 - 11384 Select eu.timepit.refined.api.Refined.value x$2.value
320 37515 11359 - 11385 Apply org.make.core.technical.Multilingual.mapTranslations x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value))
321 50851 11426 - 11444 TypeApply org.make.core.technical.Multilingual.empty org.make.core.technical.Multilingual.empty[String]
322 38536 11519 - 11540 Select eu.timepit.refined.api.Refined.value request.content.value
322 31412 11298 - 11541 Apply org.make.core.technical.Multilingual.addTranslation request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$1: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$1.mapTranslations[String](((x$2: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$2.value)))).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(request.submittedAsLanguage, request.content.value)
322 42428 11490 - 11517 Select org.make.api.question.CreateInitialProposalRequest.submittedAsLanguage request.submittedAsLanguage
323 44062 11569 - 11579 Literal <nosymbol> "contents"
327 41167 11650 - 12048 Apply org.make.api.proposal.ProposalSearchEngine.countProposals DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))
328 34616 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$4 org.make.core.proposal.SearchQuery.apply$default$4
328 50568 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$15 org.make.core.proposal.SearchFilters.apply$default$15
328 49518 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$12 org.make.core.proposal.SearchFilters.apply$default$12
328 45068 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$22 org.make.core.proposal.SearchFilters.apply$default$22
328 50364 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$2 org.make.core.proposal.SearchQuery.apply$default$2
328 50032 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$31 org.make.core.proposal.SearchFilters.apply$default$31
328 43519 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$3 org.make.core.proposal.SearchQuery.apply$default$3
328 50068 11738 - 12024 Apply org.make.core.proposal.SearchQuery.apply org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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)
328 50804 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$5 org.make.core.proposal.SearchFilters.apply$default$5
328 31185 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$5 org.make.core.proposal.SearchQuery.apply$default$5
328 48961 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$21 org.make.core.proposal.SearchFilters.apply$default$21
328 31197 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$9 org.make.core.proposal.SearchFilters.apply$default$9
328 45606 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$3 org.make.core.proposal.SearchFilters.apply$default$3
328 43482 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$25 org.make.core.proposal.SearchFilters.apply$default$25
328 34582 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$27 org.make.core.proposal.SearchFilters.apply$default$27
328 49012 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$2 org.make.core.proposal.SearchFilters.apply$default$2
328 43808 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$29 org.make.core.proposal.SearchFilters.apply$default$29
328 38048 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$14 org.make.core.proposal.SearchFilters.apply$default$14
328 44020 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$10 org.make.core.proposal.SearchFilters.apply$default$10
328 31235 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$18 org.make.core.proposal.SearchFilters.apply$default$18
328 30655 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$28 org.make.core.proposal.SearchFilters.apply$default$28
328 44050 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$19 org.make.core.proposal.SearchFilters.apply$default$19
328 37261 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$23 org.make.core.proposal.SearchFilters.apply$default$23
328 35395 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$8 org.make.core.proposal.SearchFilters.apply$default$8
328 38011 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$4 org.make.core.proposal.SearchFilters.apply$default$4
328 36432 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$11 org.make.core.proposal.SearchFilters.apply$default$11
328 36190 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$20 org.make.core.proposal.SearchFilters.apply$default$20
328 36991 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$1 org.make.core.proposal.SearchFilters.apply$default$1
328 35134 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$17 org.make.core.proposal.SearchFilters.apply$default$17
328 42960 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$16 org.make.core.proposal.SearchFilters.apply$default$16
328 45643 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$13 org.make.core.proposal.SearchFilters.apply$default$13
328 50607 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$24 org.make.core.proposal.SearchFilters.apply$default$24
328 44542 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$6 org.make.core.proposal.SearchQuery.apply$default$6
328 43528 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$7 org.make.core.proposal.SearchFilters.apply$default$7
328 41133 11760 - 11993 Apply org.make.core.proposal.SearchFilters.apply org.make.core.proposal.SearchFilters.apply(x$3, x$4, x$5, x$6, x$7, x$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31)
328 35983 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$7 org.make.core.proposal.SearchQuery.apply$default$7
328 36228 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$30 org.make.core.proposal.SearchFilters.apply$default$30
329 51378 11812 - 11854 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some
329 37973 11812 - 11849 Apply org.make.core.proposal.QuestionSearchFilter.apply org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))
329 45853 11833 - 11848 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)
330 44790 11898 - 11967 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some
330 31449 11898 - 11962 Apply org.make.core.proposal.ProposalTypesSearchFilter.apply org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))
330 42465 11928 - 11960 Select org.make.core.proposal.ProposalType.ProposalTypeInitial org.make.core.proposal.ProposalType.ProposalTypeInitial
330 39067 11924 - 11961 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)
331 37999 11760 - 11998 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some
334 50878 11650 - 13783 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(Long,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective)(util.this.ApplyConverter.hac1[Long]).apply(((initialProposalsCount: Long) => cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]))))))))))
334 37755 11650 - 12083 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Long](DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$2: Option[org.make.core.proposal.ProposalTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ProposalTypesSearchFilter](org.make.core.proposal.ProposalTypesSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial))).some; <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.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.OperationKindsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$22; <artifact> val x$24: Option[org.make.core.proposal.QuestionIsOpenSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$23; <artifact> val x$25: Option[org.make.core.proposal.SegmentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$24; <artifact> val x$26: Option[org.make.core.proposal.UserTypesSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$25; <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$1, 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$23, x$24, x$25, x$26, x$2, x$27, x$28, x$29, x$30, x$31) }).some, 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))).asDirective
334 51092 12072 - 12072 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[Long]
335 41722 12135 - 12852 Apply scala.Tuple3.apply scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)
338 43276 12387 - 12418 TypeApply scala.collection.IterableOnceOps.toSet question.languages.toList.toSet[org.make.core.reference.Language]
338 35685 12316 - 12429 Apply org.make.core.technical.MultilingualUtils.hasRequiredTranslations org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)
339 31224 12316 - 12477 Select org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils.toValidationEither org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither
340 36179 12505 - 12520 ApplyImplicitView org.make.core.Validation.AnyWithParsers org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country)
340 44301 12505 - 12520 Select org.make.api.question.CreateInitialProposalRequest.country request.country
341 50106 12558 - 12583 Select cats.data.NonEmptyList.toList question.countries.toList
341 37793 12550 - 12550 Select org.make.core.Validation.AnyWithParsers.toOneOf$default$3 qual$1.toOneOf$default$3
341 50852 12505 - 12595 Apply org.make.core.Validation.AnyWithParsers.toOneOf qual$1.toOneOf(x$32, "country", x$34)
341 41683 12585 - 12594 Literal <nosymbol> "country"
342 42704 12505 - 12643 Select org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils.toValidationEither org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither
344 48231 12739 - 12741 Literal <nosymbol> 20L
344 44340 12743 - 12777 Apply scala.Some.apply scala.Some.apply[String]("Too many initial proposals")
344 35723 12726 - 12737 Literal <nosymbol> "proposals"
344 36216 12671 - 12778 Apply org.make.core.Validation.LongWithParsers.max org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))
345 49240 12671 - 12826 Select org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils.toValidationEither org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither
346 35674 12858 - 12858 TypeApply cats.instances.EitherInstances.catsStdInstancesForEither cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]
346 42501 12858 - 12858 TypeApply cats.instances.EitherInstances.catsStdInstancesForEither cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]
349 50387 12938 - 13571 Apply org.make.api.proposal.ProposalService.createInitialProposal DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext)
350 37548 13040 - 13061 Select eu.timepit.refined.api.Refined.value request.content.value
351 50349 13145 - 13152 Select eu.timepit.refined.api.Refined.value x$4.value
351 35635 13095 - 13154 Apply scala.Option.map request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value))))
351 42730 13127 - 13153 Apply org.make.core.technical.Multilingual.mapTranslations x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value))
353 48271 13230 - 13243 Select org.make.core.Validation.OneOf.value country.value
354 44098 13277 - 13304 Select org.make.api.question.CreateInitialProposalRequest.submittedAsLanguage request.submittedAsLanguage
355 35968 13338 - 13343 Literal <nosymbol> false
356 49271 13377 - 13389 Select org.make.api.question.CreateInitialProposalRequest.tags request.tags
357 42177 13423 - 13437 Select org.make.api.question.CreateInitialProposalRequest.author request.author
358 33885 13471 - 13491 Select org.make.core.auth.UserRights.userId userAuth.user.userId
361 36006 13615 - 13615 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
361 48719 13603 - 13611 Apply akka.http.scaladsl.server.directives.RouteDirectives.failWith DefaultModerationQuestionApi.this.failWith(error)
361 43586 13613 - 13626 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective
361 33836 12135 - 13759 Apply scala.util.Either.fold cats.implicits.catsSyntaxTuple3Semigroupal[[+B]Either[org.make.core.ValidationFailedError,B], Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](scala.Tuple3.apply[Either[org.make.core.ValidationFailedError,Unit], Either[org.make.core.ValidationFailedError,org.make.core.Validation.OneOf[org.make.core.reference.Country]], Either[org.make.core.ValidationFailedError,Long]](org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Unit](org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], contents)).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[org.make.core.Validation.OneOf[org.make.core.reference.Country]]({ <artifact> val qual$1: org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country); <artifact> val x$32: List[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = question.countries.toList; <artifact> val x$33: String("country") = "country"; <artifact> val x$34: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.toOneOf$default$3; qual$1.toOneOf(x$32, "country", x$34) }).toValidationEither, org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[Long](org.make.core.Validation.LongWithParsers(initialProposalsCount).max("proposals", 20L, scala.Some.apply[String]("Too many initial proposals"))).toValidationEither)).mapN[scala.concurrent.Future[org.make.core.proposal.ProposalId]](((x0$1: Unit, x1$1: org.make.core.Validation.OneOf[org.make.core.reference.Country], x2$1: Long) => scala.Tuple3.apply[Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long](x0$1, x1$1, x2$1) match { case (_1: Unit, _2: org.make.core.Validation.OneOf[org.make.core.reference.Country], _3: Long): (Unit, org.make.core.Validation.OneOf[org.make.core.reference.Country], Long)(_, (country @ _), _) => DefaultModerationQuestionComponent.this.proposalService.createInitialProposal(request.content.value, request.contentTranslations.map[org.make.core.technical.Multilingual[String]](((x$3: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]) => x$3.mapTranslations[String](((x$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]) => x$4.value)))), question, country.value, request.submittedAsLanguage, false, request.tags, request.author, userAuth.user.userId, requestContext) }))(cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError], cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]).fold[akka.http.scaladsl.server.RequestContext => scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]](((error: Throwable) => DefaultModerationQuestionApi.this.failWith(error)), ((x$5: scala.concurrent.Future[org.make.core.proposal.ProposalId]) => server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]))))))))
361 41970 13613 - 13758 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.ProposalId](x$5).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]))))))
362 50137 13698 - 13698 TypeApply scala.Predef.$conforms scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success]
362 49850 13669 - 13732 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]))))
362 48752 13698 - 13698 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])
362 49813 13678 - 13697 Select akka.http.scaladsl.model.StatusCodes.Created akka.http.scaladsl.model.StatusCodes.Created
362 35757 13678 - 13731 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse)](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId)))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse])))
362 33298 13678 - 13731 Apply scala.Predef.ArrowAssoc.-> scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Created).->[org.make.api.proposal.ProposalIdResponse](org.make.api.proposal.ProposalIdResponse.apply(proposalId))
362 42530 13698 - 13698 Select org.make.api.proposal.ProposalIdResponse.codec proposal.this.ProposalIdResponse.codec
362 35427 13698 - 13698 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]
362 42213 13701 - 13731 Apply org.make.api.proposal.ProposalIdResponse.apply org.make.api.proposal.ProposalIdResponse.apply(proposalId)
362 44330 13698 - 13698 ApplyToImplicitArgs akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCodeAndValue marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, org.make.api.proposal.ProposalIdResponse](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[org.make.api.proposal.ProposalIdResponse](proposal.this.ProposalIdResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]))
374 40185 13938 - 15192 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationRefuseInitialProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply({ val query: org.make.core.proposal.SearchQuery = { <artifact> val x$1: Some[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.question.QuestionId]](scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)); <artifact> val x$2: Some[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]](scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)); <artifact> val x$3: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$1; <artifact> val x$4: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$3; <artifact> val x$5: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4; <artifact> val x$6: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5; <artifact> val x$7: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7; <artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$8; <artifact> val x$9: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9; <artifact> val x$10: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$10; <artifact> val x$11: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11; <artifact> val x$12: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12; <artifact> val x$13: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13; <artifact> val x$14: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14; <artifact> val x$15: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15; <artifact> val x$16: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$16; <artifact> val x$17: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$17; <artifact> val x$18: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$18; <artifact> val x$19: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$19; <artifact> val x$20: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20; <artifact> val x$21: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$21; <artifact> val x$22: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22; <artifact> val x$23: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$23; <artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24; org.make.api.proposal.ExhaustiveSearchRequest.apply(x$3, x$2, x$4, x$5, x$6, x$1, 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$23, x$24) }.toSearchQuery(requestContext); server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))) }))))))))
374 50643 13938 - 13942 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
375 34652 13956 - 14028 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
375 35217 13971 - 13982 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
375 42487 13956 - 13968 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
375 48052 13951 - 14029 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
375 42046 13996 - 13996 ApplyToImplicitArgs akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join org.make.api.question.moderationquestionapitest TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
375 50677 14018 - 14018 TypeApply akka.http.scaladsl.server.util.TupleFoldInstances.t0 org.make.api.question.moderationquestionapitest TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
375 40407 13983 - 13983 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]
375 48018 13969 - 13969 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
375 49035 13996 - 13996 TypeApply akka.http.scaladsl.server.util.TupleFoldInstances.t0 org.make.api.question.moderationquestionapitest TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
375 43553 14018 - 14018 ApplyToImplicitArgs akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join org.make.api.question.moderationquestionapitest TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
375 33621 14020 - 14028 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("refuse")
375 48338 13951 - 15186 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationRefuseInitialProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply({ val query: org.make.core.proposal.SearchQuery = { <artifact> val x$1: Some[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.question.QuestionId]](scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)); <artifact> val x$2: Some[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]](scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)); <artifact> val x$3: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$1; <artifact> val x$4: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$3; <artifact> val x$5: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4; <artifact> val x$6: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5; <artifact> val x$7: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7; <artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$8; <artifact> val x$9: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9; <artifact> val x$10: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$10; <artifact> val x$11: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11; <artifact> val x$12: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12; <artifact> val x$13: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13; <artifact> val x$14: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14; <artifact> val x$15: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15; <artifact> val x$16: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$16; <artifact> val x$17: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$17; <artifact> val x$18: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$18; <artifact> val x$19: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$19; <artifact> val x$20: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20; <artifact> val x$21: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$21; <artifact> val x$22: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22; <artifact> val x$23: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$23; <artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24; org.make.api.proposal.ExhaustiveSearchRequest.apply(x$3, x$2, x$4, x$5, x$6, x$1, 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$23, x$24) }.toSearchQuery(requestContext); server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))) })))))))
375 40158 13955 - 13955 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]
375 36261 13998 - 14017 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals")
376 35743 14068 - 14102 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationRefuseInitialProposals"
376 49069 14054 - 14054 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
376 41960 14054 - 14054 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
376 46699 14067 - 14067 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
376 33660 14054 - 14103 Apply org.make.api.technical.MakeDirectives.makeOperation org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation("ModerationRefuseInitialProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
376 34996 14054 - 15178 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationRefuseInitialProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply({ val query: org.make.core.proposal.SearchQuery = { <artifact> val x$1: Some[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.question.QuestionId]](scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)); <artifact> val x$2: Some[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]](scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)); <artifact> val x$3: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$1; <artifact> val x$4: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$3; <artifact> val x$5: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4; <artifact> val x$6: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5; <artifact> val x$7: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7; <artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$8; <artifact> val x$9: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9; <artifact> val x$10: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$10; <artifact> val x$11: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11; <artifact> val x$12: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12; <artifact> val x$13: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13; <artifact> val x$14: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14; <artifact> val x$15: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15; <artifact> val x$16: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$16; <artifact> val x$17: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$17; <artifact> val x$18: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$18; <artifact> val x$19: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$19; <artifact> val x$20: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20; <artifact> val x$21: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$21; <artifact> val x$22: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22; <artifact> val x$23: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$23; <artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24; org.make.api.proposal.ExhaustiveSearchRequest.apply(x$3, x$2, x$4, x$5, x$6, x$1, 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$23, x$24) }.toSearchQuery(requestContext); server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))) })))))
377 34684 14134 - 14134 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
377 42286 14134 - 14144 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOAuth2
377 42811 14134 - 15168 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply({ val query: org.make.core.proposal.SearchQuery = { <artifact> val x$1: Some[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.question.QuestionId]](scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)); <artifact> val x$2: Some[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]](scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)); <artifact> val x$3: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$1; <artifact> val x$4: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$3; <artifact> val x$5: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4; <artifact> val x$6: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5; <artifact> val x$7: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7; <artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$8; <artifact> val x$9: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9; <artifact> val x$10: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$10; <artifact> val x$11: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11; <artifact> val x$12: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12; <artifact> val x$13: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13; <artifact> val x$14: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14; <artifact> val x$15: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15; <artifact> val x$16: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$16; <artifact> val x$17: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$17; <artifact> val x$18: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$18; <artifact> val x$19: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$19; <artifact> val x$20: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20; <artifact> val x$21: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$21; <artifact> val x$22: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22; <artifact> val x$23: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$23; <artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24; org.make.api.proposal.ExhaustiveSearchRequest.apply(x$3, x$2, x$4, x$5, x$6, x$1, 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$23, x$24) }.toSearchQuery(requestContext); server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))) })))
378 46688 14193 - 15156 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply({ val query: org.make.core.proposal.SearchQuery = { <artifact> val x$1: Some[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.question.QuestionId]](scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)); <artifact> val x$2: Some[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]](scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)); <artifact> val x$3: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$1; <artifact> val x$4: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$3; <artifact> val x$5: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4; <artifact> val x$6: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5; <artifact> val x$7: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7; <artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$8; <artifact> val x$9: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9; <artifact> val x$10: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$10; <artifact> val x$11: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11; <artifact> val x$12: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12; <artifact> val x$13: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13; <artifact> val x$14: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14; <artifact> val x$15: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15; <artifact> val x$16: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$16; <artifact> val x$17: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$17; <artifact> val x$18: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$18; <artifact> val x$19: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$19; <artifact> val x$20: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20; <artifact> val x$21: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$21; <artifact> val x$22: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22; <artifact> val x$23: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$23; <artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24; org.make.api.proposal.ExhaustiveSearchRequest.apply(x$3, x$2, x$4, x$5, x$6, x$1, 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$23, x$24) }.toSearchQuery(requestContext); server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))) })
378 48506 14210 - 14223 Select scalaoauth2.provider.AuthInfo.user userAuth.user
378 40197 14193 - 14224 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)
382 36817 14253 - 14452 Apply org.make.api.proposal.ExhaustiveSearchRequest.toSearchQuery { <artifact> val x$1: Some[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.question.QuestionId]](scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)); <artifact> val x$2: Some[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[Seq[org.make.core.proposal.ProposalType.ProposalTypeInitial.type]](scala.`package`.Seq.apply[org.make.core.proposal.ProposalType.ProposalTypeInitial.type](org.make.core.proposal.ProposalType.ProposalTypeInitial)); <artifact> val x$3: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$1; <artifact> val x$4: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$3; <artifact> val x$5: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4; <artifact> val x$6: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5; <artifact> val x$7: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7; <artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$8; <artifact> val x$9: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9; <artifact> val x$10: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$10; <artifact> val x$11: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11; <artifact> val x$12: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12; <artifact> val x$13: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13; <artifact> val x$14: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14; <artifact> val x$15: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15; <artifact> val x$16: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$16; <artifact> val x$17: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$17; <artifact> val x$18: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$18; <artifact> val x$19: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$19; <artifact> val x$20: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20; <artifact> val x$21: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$21; <artifact> val x$22: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22; <artifact> val x$23: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$23; <artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24; org.make.api.proposal.ExhaustiveSearchRequest.apply(x$3, x$2, x$4, x$5, x$6, x$1, 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$23, x$24) }.toSearchQuery(requestContext)
383 34124 14545 - 14545 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
383 48832 14467 - 14544 Apply org.make.api.proposal.ProposalService.searchInIndex DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)
383 33917 14467 - 15142 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))
383 42000 14467 - 14556 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective
385 34158 14652 - 14652 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
385 41756 14652 - 14652 TypeApply scala.collection.BuildFromLowPriority2.buildFromIterableOps collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]]
385 46654 14588 - 15016 ApplyToImplicitArgs scala.concurrent.Future.traverse scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)
385 47506 14645 - 14649 Select org.make.core.proposal.indexed.IndexedProposal.id x$6.id
385 42323 14623 - 14650 Apply scala.collection.IterableOps.map proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id))
387 48867 14688 - 14996 Apply org.make.api.proposal.ProposalService.refuseProposal DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))
389 35203 14803 - 14823 Select org.make.core.auth.UserRights.userId userAuth.user.userId
391 31797 14889 - 14972 Apply org.make.api.proposal.RefuseProposalRequest.apply org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other"))
391 48541 14935 - 14940 Literal <nosymbol> false
391 40660 14958 - 14971 Apply scala.Some.apply scala.Some.apply[String]("Other")
394 43384 14588 - 15047 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective
394 35243 15036 - 15036 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]
394 41791 14588 - 15126 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(Seq[Option[org.make.api.proposal.ModerationProposalResponse]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](scala.concurrent.Future.traverse[org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse], Seq](proposals.results.map[org.make.core.proposal.ProposalId](((x$6: org.make.core.proposal.indexed.IndexedProposal) => x$6.id)))(((proposalId: org.make.core.proposal.ProposalId) => DefaultModerationQuestionComponent.this.proposalService.refuseProposal(proposalId, userAuth.user.userId, requestContext, org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other")))))(collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]], scala.concurrent.ExecutionContext.Implicits.global)).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((x$7: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))
395 49377 15075 - 15106 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
395 40150 15096 - 15096 Select akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode marshalling.this.Marshaller.fromStatusCode
395 32538 15084 - 15105 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)
395 48304 15084 - 15105 Select akka.http.scaladsl.model.StatusCodes.NoContent akka.http.scaladsl.model.StatusCodes.NoContent
411 33406 15455 - 15717 Apply scala.Option.flatMap translations.flatMap[String](((t: org.make.core.technical.Multilingual[String]) => scala.Option.when[String](t.providedLanguages.contains(org.make.core.reference.Language.apply(contentOriginalLanguage)))(("Warning: duplicate language ".+(contentOriginalLanguage).+(" on line ").+(lineNumber).+(", proposal from the content column was chosen"): String))))
412 48818 15503 - 15566 Apply scala.collection.SetOps.contains t.providedLanguages.contains(org.make.core.reference.Language.apply(contentOriginalLanguage))
412 32297 15532 - 15565 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply(contentOriginalLanguage)
412 41550 15491 - 15709 Apply scala.Option.when scala.Option.when[String](t.providedLanguages.contains(org.make.core.reference.Language.apply(contentOriginalLanguage)))(("Warning: duplicate language ".+(contentOriginalLanguage).+(" on line ").+(lineNumber).+(", proposal from the content column was chosen"): String))
419 46727 15849 - 15928 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[String]("content", "contentOriginalLanguage", "firstName", "age", "externalUserId")
420 48097 15935 - 16039 Apply scala.collection.IterableOps.filterNot line.filterNot(((x0$1: (String, String)) => x0$1 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => notLanguagesHeaders.contains[String](key).||(value.isEmpty()) }))
421 38859 16018 - 16031 Apply java.lang.String.isEmpty value.isEmpty()
421 34437 15981 - 16031 Apply scala.Boolean.|| notLanguagesHeaders.contains[String](key).||(value.isEmpty())
423 32331 16079 - 16083 Select scala.None scala.None
423 39952 16066 - 16075 Select scala.collection.IterableOnceOps.isEmpty t.isEmpty
424 49882 16115 - 16122 Apply scala.Some.apply scala.Some.apply[scala.collection.immutable.Map[String,String]](t)
447 40984 16689 - 16728 Select org.make.core.BusinessConfig.defaultProposalMaxLength org.make.core.BusinessConfig.defaultProposalMaxLength
448 33441 16759 - 16802 Select org.make.core.FrontConfiguration.defaultProposalMinLength org.make.core.FrontConfiguration.defaultProposalMinLength
449 39661 16858 - 16913 Apply scala.Option.map DefaultModerationQuestionApi.this.getTranslations(line).map[org.make.core.technical.Multilingual[String]](((t: Map[String,String]) => org.make.core.technical.Multilingual.fromMap[String](t)))
449 46488 16889 - 16912 Apply org.make.core.technical.Multilingual.fromMap org.make.core.technical.Multilingual.fromMap[String](t)
450 48372 16920 - 19153 Apply scala.Tuple8.apply scala.Tuple8.apply[cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.StringWithMaxLength], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.StringWithMinLength], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.NonEmptyString], cats.data.ValidatedNec[org.make.core.ValidationError,Option[org.make.core.technical.Multilingual[String]]], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.NonEmptyString], cats.data.ValidatedNec[org.make.core.ValidationError,Option[Int]], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.NonEmptyString], cats.data.Validated[cats.data.NonEmptyChain[org.make.core.ValidationError],Unit]](org.make.core.Validation.StringWithParsers(line.getOrElse[String]("content", "")).withMaxLength(maxProposalLength, "content", scala.None, scala.Some.apply[String](("content should be less than ".+(maxProposalLength).+(" characters on line ").+(lineNumber): String))), org.make.core.Validation.StringWithParsers(line.getOrElse[String]("content", "")).withMinLength(minProposalLength, "content", scala.None, scala.Some.apply[String](("content should be more than ".+(minProposalLength).+(" characters on line ").+(lineNumber): String))), org.make.core.Validation.MapWithParser(line).getNonEmptyString("contentOriginalLanguage", scala.Some.apply[String](("contentOriginalLanguage is required on line ".+(lineNumber): String))), org.make.core.technical.MultilingualUtils.hasRequiredTranslationsFromCsv(questionLanguages.toSet[org.make.core.reference.Language], translations, line.get("contentOriginalLanguage").map[org.make.core.reference.Language](((x$8: String) => org.make.core.reference.Language.apply(x$8))), lineNumber), org.make.core.Validation.MapWithParser(line).getNonEmptyString("firstName", scala.Some.apply[String](("firstName is required on line ".+(lineNumber): String))), cats.implicits.toTraverseOps[Option, String](line.get("age"))(cats.implicits.catsStdInstancesForOption).traverse[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Int](((x$9: String) => org.make.core.Validation.StringWithParsers(x$9).toValidAge(scala.Some.apply[String](("age should be over than ".+(org.make.core.Validation.minLegalAgeForExternalProposal).+(" on line ").+(lineNumber): String)))))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])), org.make.core.Validation.MapWithParser(line).getNonEmptyString("externalUserId", scala.Some.apply[String](("externalUserId is required on line ".+(lineNumber): String))), line.get("externalUserId") match { case scala.None => cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing] case (value: String): Some[String]((id @ _)) => userData.get(id) match { case (value: DefaultModerationQuestionApi.this.UserData): Some[DefaultModerationQuestionApi.this.UserData]((firstName: String, age: Option[String]): DefaultModerationQuestionApi.this.UserData((firstName @ _), _)) if line.get("firstName").contains[String](firstName).unary_! => cats.implicits.catsSyntaxValidatedIdBinCompat0[org.make.core.ValidationError](org.make.core.ValidationError.apply("firstName", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same firstName on line ".+(lineNumber): String)))).invalidNec[Nothing] case (value: DefaultModerationQuestionApi.this.UserData): Some[DefaultModerationQuestionApi.this.UserData]((firstName: String, age: Option[String]): DefaultModerationQuestionApi.this.UserData(_, (age @ _))) if line.get("age").!=(age) => cats.implicits.catsSyntaxValidatedIdBinCompat0[org.make.core.ValidationError](org.make.core.ValidationError.apply("age", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same age on line ".+(lineNumber): String)))).invalidNec[Nothing] case _ => { userData.+=(scala.Predef.ArrowAssoc[String](id).->[DefaultModerationQuestionApi.this.UserData](DefaultModerationQuestionApi.this.UserData.apply(line.getOrElse[String]("firstName", ""), line.get("age")))); cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing] } } })
452 35497 16930 - 16970 Apply scala.collection.MapOps.getOrElse line.getOrElse[String]("content", "")
453 49916 16930 - 17179 Apply org.make.core.Validation.StringWithParsers.withMaxLength org.make.core.Validation.StringWithParsers(line.getOrElse[String]("content", "")).withMaxLength(maxProposalLength, "content", scala.None, scala.Some.apply[String](("content should be less than ".+(maxProposalLength).+(" characters on line ").+(lineNumber): String)))
455 48290 17040 - 17049 Literal <nosymbol> "content"
456 39983 17063 - 17067 Select scala.None scala.None
457 32092 17081 - 17167 Apply scala.Some.apply scala.Some.apply[String](("content should be less than ".+(maxProposalLength).+(" characters on line ").+(lineNumber): String))
460 41024 17189 - 17229 Apply scala.collection.MapOps.getOrElse line.getOrElse[String]("content", "")
461 35536 17189 - 17438 Apply org.make.core.Validation.StringWithParsers.withMinLength org.make.core.Validation.StringWithParsers(line.getOrElse[String]("content", "")).withMinLength(minProposalLength, "content", scala.None, scala.Some.apply[String](("content should be more than ".+(minProposalLength).+(" characters on line ").+(lineNumber): String)))
463 33906 17299 - 17308 Literal <nosymbol> "content"
464 46525 17322 - 17326 Select scala.None scala.None
465 39413 17340 - 17426 Apply scala.Some.apply scala.Some.apply[String](("content should be more than ".+(minProposalLength).+(" characters on line ").+(lineNumber): String))
467 32897 17448 - 17593 Apply org.make.core.Validation.MapWithParser.getNonEmptyString org.make.core.Validation.MapWithParser(line).getNonEmptyString("contentOriginalLanguage", scala.Some.apply[String](("contentOriginalLanguage is required on line ".+(lineNumber): String)))
468 48330 17482 - 17507 Literal <nosymbol> "contentOriginalLanguage"
469 40439 17519 - 17583 Apply scala.Some.apply scala.Some.apply[String](("contentOriginalLanguage is required on line ".+(lineNumber): String))
472 39450 17603 - 17827 Apply org.make.core.technical.MultilingualUtils.hasRequiredTranslationsFromCsv org.make.core.technical.MultilingualUtils.hasRequiredTranslationsFromCsv(questionLanguages.toSet[org.make.core.reference.Language], translations, line.get("contentOriginalLanguage").map[org.make.core.reference.Language](((x$8: String) => org.make.core.reference.Language.apply(x$8))), lineNumber)
473 45961 17676 - 17699 TypeApply scala.collection.IterableOnceOps.toSet questionLanguages.toSet[org.make.core.reference.Language]
475 33943 17779 - 17790 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply(x$8)
475 41536 17748 - 17773 Literal <nosymbol> "contentOriginalLanguage"
475 46969 17739 - 17791 Apply scala.Option.map line.get("contentOriginalLanguage").map[org.make.core.reference.Language](((x$8: String) => org.make.core.reference.Language.apply(x$8)))
478 48084 17873 - 17923 Apply scala.Some.apply scala.Some.apply[String](("firstName is required on line ".+(lineNumber): String))
478 40476 17837 - 17924 Apply org.make.core.Validation.MapWithParser.getNonEmptyString org.make.core.Validation.MapWithParser(line).getNonEmptyString("firstName", scala.Some.apply[String](("firstName is required on line ".+(lineNumber): String)))
478 35574 17860 - 17871 Literal <nosymbol> "firstName"
480 46001 17953 - 17953 Select cats.instances.OptionInstances.catsStdInstancesForOption cats.implicits.catsStdInstancesForOption
480 32042 17934 - 17960 Apply scala.collection.MapOps.get line.get("age")
481 46479 17980 - 17980 TypeApply cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
481 31038 17934 - 18080 ApplyToImplicitArgs cats.Traverse.Ops.traverse cats.implicits.toTraverseOps[Option, String](line.get("age"))(cats.implicits.catsStdInstancesForOption).traverse[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Int](((x$9: String) => org.make.core.Validation.StringWithParsers(x$9).toValidAge(scala.Some.apply[String](("age should be over than ".+(org.make.core.Validation.minLegalAgeForExternalProposal).+(" on line ").+(lineNumber): String)))))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))
481 38604 17980 - 17980 ApplyToImplicitArgs cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
481 33696 17981 - 18079 Apply org.make.core.Validation.StringWithParsers.toValidAge org.make.core.Validation.StringWithParsers(x$9).toValidAge(scala.Some.apply[String](("age should be over than ".+(org.make.core.Validation.minLegalAgeForExternalProposal).+(" on line ").+(lineNumber): String)))
481 41573 17994 - 18078 Apply scala.Some.apply scala.Some.apply[String](("age should be over than ".+(org.make.core.Validation.minLegalAgeForExternalProposal).+(" on line ").+(lineNumber): String))
482 40234 18131 - 18186 Apply scala.Some.apply scala.Some.apply[String](("externalUserId is required on line ".+(lineNumber): String))
482 48123 18113 - 18129 Literal <nosymbol> "externalUserId"
482 32083 18090 - 18187 Apply org.make.core.Validation.MapWithParser.getNonEmptyString org.make.core.Validation.MapWithParser(line).getNonEmptyString("externalUserId", scala.Some.apply[String](("externalUserId is required on line ".+(lineNumber): String)))
483 45429 18197 - 18223 Apply scala.collection.MapOps.get line.get("externalUserId")
484 33736 18255 - 18266 TypeApply cats.syntax.ValidatedIdOpsBinCompat0.validNec cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing]
484 41334 18255 - 18257 Literal <nosymbol> ()
486 46235 18306 - 18322 Apply scala.collection.MapOps.get userData.get(id)
487 31790 18382 - 18424 Select scala.Boolean.unary_! line.get("firstName").contains[String](firstName).unary_!
487 38642 18392 - 18403 Literal <nosymbol> "firstName"
488 45175 18444 - 18660 Apply org.make.core.ValidationError.apply org.make.core.ValidationError.apply("firstName", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same firstName on line ".+(lineNumber): String)))
489 47879 18479 - 18490 Literal <nosymbol> "firstName"
490 39736 18510 - 18528 Literal <nosymbol> "unexpected_value"
491 32116 18548 - 18642 Apply scala.Some.apply scala.Some.apply[String](("users with the same externalUserId should have the same firstName on line ".+(lineNumber): String))
492 42071 18444 - 18671 TypeApply cats.syntax.ValidatedIdOpsBinCompat0.invalidNec cats.implicits.catsSyntaxValidatedIdBinCompat0[org.make.core.ValidationError](org.make.core.ValidationError.apply("firstName", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same firstName on line ".+(lineNumber): String)))).invalidNec[Nothing]
493 33485 18717 - 18739 Apply java.lang.Object.!= line.get("age").!=(age)
494 48610 18759 - 18963 Apply org.make.core.ValidationError.apply org.make.core.ValidationError.apply("age", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same age on line ".+(lineNumber): String)))
495 46271 18794 - 18799 Literal <nosymbol> "age"
496 38676 18819 - 18837 Literal <nosymbol> "unexpected_value"
497 31557 18857 - 18945 Apply scala.Some.apply scala.Some.apply[String](("users with the same externalUserId should have the same age on line ".+(lineNumber): String))
498 40799 18759 - 18974 TypeApply cats.syntax.ValidatedIdOpsBinCompat0.invalidNec cats.implicits.catsSyntaxValidatedIdBinCompat0[org.make.core.ValidationError](org.make.core.ValidationError.apply("age", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same age on line ".+(lineNumber): String)))).invalidNec[Nothing]
500 38117 19034 - 19092 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.UserData.apply DefaultModerationQuestionApi.this.UserData.apply(line.getOrElse[String]("firstName", ""), line.get("age"))
500 31875 19043 - 19074 Apply scala.collection.MapOps.getOrElse line.getOrElse[String]("firstName", "")
500 33684 19028 - 19092 Apply scala.Predef.ArrowAssoc.-> scala.Predef.ArrowAssoc[String](id).->[DefaultModerationQuestionApi.this.UserData](DefaultModerationQuestionApi.this.UserData.apply(line.getOrElse[String]("firstName", ""), line.get("age")))
500 46310 19015 - 19093 Apply scala.collection.mutable.Growable.+= userData.+=(scala.Predef.ArrowAssoc[String](id).->[DefaultModerationQuestionApi.this.UserData](DefaultModerationQuestionApi.this.UserData.apply(line.getOrElse[String]("firstName", ""), line.get("age"))))
500 45990 19076 - 19091 Apply scala.collection.MapOps.get line.get("age")
501 38434 19110 - 19112 Literal <nosymbol> ()
501 31591 19110 - 19121 TypeApply cats.syntax.ValidatedIdOpsBinCompat0.validNec cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing]
504 45746 19154 - 19154 TypeApply cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
504 33726 16920 - 19160 ApplyToImplicitArgs cats.syntax.Tuple8SemigroupalOps.tupled cats.implicits.catsSyntaxTuple8Semigroupal[[+A]cats.data.Validated[cats.data.NonEmptyChain[org.make.core.ValidationError],A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit](scala.Tuple8.apply[cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.StringWithMaxLength], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.StringWithMinLength], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.NonEmptyString], cats.data.ValidatedNec[org.make.core.ValidationError,Option[org.make.core.technical.Multilingual[String]]], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.NonEmptyString], cats.data.ValidatedNec[org.make.core.ValidationError,Option[Int]], cats.data.ValidatedNec[org.make.core.ValidationError,org.make.core.Validation.NonEmptyString], cats.data.Validated[cats.data.NonEmptyChain[org.make.core.ValidationError],Unit]](org.make.core.Validation.StringWithParsers(line.getOrElse[String]("content", "")).withMaxLength(maxProposalLength, "content", scala.None, scala.Some.apply[String](("content should be less than ".+(maxProposalLength).+(" characters on line ").+(lineNumber): String))), org.make.core.Validation.StringWithParsers(line.getOrElse[String]("content", "")).withMinLength(minProposalLength, "content", scala.None, scala.Some.apply[String](("content should be more than ".+(minProposalLength).+(" characters on line ").+(lineNumber): String))), org.make.core.Validation.MapWithParser(line).getNonEmptyString("contentOriginalLanguage", scala.Some.apply[String](("contentOriginalLanguage is required on line ".+(lineNumber): String))), org.make.core.technical.MultilingualUtils.hasRequiredTranslationsFromCsv(questionLanguages.toSet[org.make.core.reference.Language], translations, line.get("contentOriginalLanguage").map[org.make.core.reference.Language](((x$8: String) => org.make.core.reference.Language.apply(x$8))), lineNumber), org.make.core.Validation.MapWithParser(line).getNonEmptyString("firstName", scala.Some.apply[String](("firstName is required on line ".+(lineNumber): String))), cats.implicits.toTraverseOps[Option, String](line.get("age"))(cats.implicits.catsStdInstancesForOption).traverse[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Int](((x$9: String) => org.make.core.Validation.StringWithParsers(x$9).toValidAge(scala.Some.apply[String](("age should be over than ".+(org.make.core.Validation.minLegalAgeForExternalProposal).+(" on line ").+(lineNumber): String)))))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])), org.make.core.Validation.MapWithParser(line).getNonEmptyString("externalUserId", scala.Some.apply[String](("externalUserId is required on line ".+(lineNumber): String))), line.get("externalUserId") match { case scala.None => cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing] case (value: String): Some[String]((id @ _)) => userData.get(id) match { case (value: DefaultModerationQuestionApi.this.UserData): Some[DefaultModerationQuestionApi.this.UserData]((firstName: String, age: Option[String]): DefaultModerationQuestionApi.this.UserData((firstName @ _), _)) if line.get("firstName").contains[String](firstName).unary_! => cats.implicits.catsSyntaxValidatedIdBinCompat0[org.make.core.ValidationError](org.make.core.ValidationError.apply("firstName", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same firstName on line ".+(lineNumber): String)))).invalidNec[Nothing] case (value: DefaultModerationQuestionApi.this.UserData): Some[DefaultModerationQuestionApi.this.UserData]((firstName: String, age: Option[String]): DefaultModerationQuestionApi.this.UserData(_, (age @ _))) if line.get("age").!=(age) => cats.implicits.catsSyntaxValidatedIdBinCompat0[org.make.core.ValidationError](org.make.core.ValidationError.apply("age", "unexpected_value", scala.Some.apply[String](("users with the same externalUserId should have the same age on line ".+(lineNumber): String)))).invalidNec[Nothing] case _ => { userData.+=(scala.Predef.ArrowAssoc[String](id).->[DefaultModerationQuestionApi.this.UserData](DefaultModerationQuestionApi.this.UserData.apply(line.getOrElse[String]("firstName", ""), line.get("age")))); cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing] } } })).tupled(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]), data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))
504 38152 19154 - 19154 ApplyToImplicitArgs cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
504 40221 19154 - 19154 TypeApply cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
504 31910 19154 - 19154 ApplyToImplicitArgs cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
508 36172 19286 - 25700 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("inject-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationInjectProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) }))))))))))))
508 46758 19286 - 19290 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
509 38387 19303 - 19303 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]
509 40256 19331 - 19331 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]
509 45785 19344 - 19344 TypeApply akka.http.scaladsl.server.util.TupleFoldInstances.t0 org.make.api.question.moderationquestionapitest TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
509 39236 19304 - 19316 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
509 46793 19299 - 19365 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("inject-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
509 44295 19299 - 25694 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("inject-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationInjectProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) })))))))))))
509 32365 19346 - 19364 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("inject-proposals")
509 31342 19319 - 19330 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
509 47868 19317 - 19317 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
509 37903 19344 - 19344 ApplyToImplicitArgs akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join org.make.api.question.moderationquestionapitest TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
509 33471 19304 - 19364 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("inject-proposals"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
510 40017 19390 - 19390 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
510 44194 19390 - 19390 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
510 48189 19390 - 25686 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationInjectProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((requestContext: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) })))))))))
510 31863 19390 - 19432 Apply org.make.api.technical.MakeDirectives.makeOperation org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation("ModerationInjectProposals", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
510 31381 19404 - 19431 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationInjectProposals"
510 44922 19403 - 19403 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
511 33512 19463 - 19463 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
511 37398 19463 - 19473 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOAuth2
511 35678 19463 - 25676 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) })))))))
512 46557 19539 - 19552 Select scalaoauth2.provider.AuthInfo.user userAuth.user
512 43272 19522 - 25664 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) })))))
512 38424 19522 - 19553 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)
513 30512 19570 - 19609 Apply org.make.api.question.QuestionService.getQuestion DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)
513 43951 19570 - 19631 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound
513 51089 19570 - 25650 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) }))))
513 40054 19610 - 19610 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.question.Question]
514 32932 19662 - 19683 Select akka.http.scaladsl.server.directives.BasicDirectives.extractRequestContext DefaultModerationQuestionApi.this.extractRequestContext
514 37750 19662 - 25634 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(akka.http.scaladsl.server.RequestContext,)](DefaultModerationQuestionApi.this.extractRequestContext)(util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]).apply(((ctx: akka.http.scaladsl.server.RequestContext) => { implicit val materializer: akka.stream.Materializer = ctx.materializer; server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } })))))) }))
514 44957 19662 - 19662 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]
515 38139 19753 - 19769 Select akka.http.scaladsl.server.RequestContext.materializer ctx.materializer
516 42182 19788 - 25616 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(String,)](DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body")))(util.this.ApplyConverter.hac1[String]).apply(((body: String) => server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } }))))))
516 50498 19798 - 19804 ApplyImplicitView akka.http.scaladsl.server.directives.FormFieldDirectives.FieldSpec.forString FormFieldDirectives.this.FieldSpec.forString("body")
516 47361 19788 - 19805 Apply akka.http.scaladsl.server.directives.FormFieldDirectivesInstances.formField DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body"))
516 39486 19797 - 19797 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[String]
517 39816 19854 - 19854 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers._fromStringUnmarshallerFromByteStringUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder))
517 37893 19836 - 19890 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective
517 31331 19854 - 19854 Select org.make.api.question.InjectProposalsRequest.decoder question.this.InjectProposalsRequest.decoder
517 44675 19854 - 19854 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.fromByteStringUnmarshaller DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)
517 32969 19854 - 19854 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
517 44991 19836 - 19878 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.Unmarshal.to akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)
517 50063 19836 - 25596 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.api.question.InjectProposalsRequest,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshal.apply[String](body).to[org.make.api.question.InjectProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller._fromStringUnmarshallerFromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)), scala.concurrent.ExecutionContext.Implicits.global, materializer)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]).apply(((request: org.make.api.question.InjectProposalsRequest) => server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } }))))
517 51229 19879 - 19879 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]
518 47109 19926 - 19949 Apply akka.http.scaladsl.server.directives.FileUploadDirectives.fileUpload DefaultModerationQuestionApi.this.fileUpload("proposals")
518 35975 19926 - 25574 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[((akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any]),)](DefaultModerationQuestionApi.this.fileUpload("proposals"))(util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]).apply(((x0$1: (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])) => x0$1 match { case (_1: akka.http.scaladsl.server.directives.FileInfo, _2: akka.stream.scaladsl.Source[akka.util.ByteString,Any]): (akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])((fileInfo @ _), (byteSource @ _)) => { org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")); server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) })) } }))
518 39522 19936 - 19936 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[(akka.http.scaladsl.server.directives.FileInfo, akka.stream.scaladsl.Source[akka.util.ByteString,Any])]
520 50992 20033 - 20390 Apply org.make.core.Validation.validate org.make.core.Validation.validate(org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv"))
521 37931 20082 - 20362 Apply org.make.core.Validation.validateField org.make.core.Validation.validateField(fileInfo.fieldName, "invalid_format", fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv), "File must be a csv")
522 31365 20127 - 20145 Select akka.http.scaladsl.server.directives.FileInfo.fieldName fileInfo.fieldName
523 44437 20177 - 20193 Literal <nosymbol> "invalid_format"
524 40007 20259 - 20280 Select akka.http.scaladsl.model.MediaTypes.text/csv akka.http.scaladsl.model.MediaTypes.text/csv
524 32717 20225 - 20280 Apply java.lang.Object.== fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv)
525 46071 20312 - 20332 Literal <nosymbol> "File must be a csv"
538 46548 20417 - 20996 ApplyToImplicitArgs akka.stream.scaladsl.Source.runWith byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)
539 39562 20417 - 21037 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective
539 31120 21026 - 21026 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[Seq[Map[String,String]]]
539 44536 20417 - 25550 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(Seq[Map[String,String]],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Map[String,String]]](byteSource.recoverWithRetries[akka.util.ByteString](1, ({ @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]] with java.io.Serializable { def <init>(): <$anon: Throwable => akka.stream.scaladsl.Source[Nothing,akka.NotUsed]> = { $anonfun.super.<init>(); () }; final override def applyOrElse[A1 <: Throwable, B1 >: akka.stream.scaladsl.Source[Nothing,akka.NotUsed]](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => { DefaultModerationQuestionComponent.this.logger.error(("Failed to parse CSV file: ".+(e.getMessage()): String)); akka.stream.scaladsl.Source.failed[Nothing](new scala.`package`.IllegalArgumentException("Invalid CSV format")) } case (defaultCase$ @ _) => default.apply(x1) }; final def isDefinedAt(x1: Throwable): Boolean = ((x1.asInstanceOf[Throwable]: Throwable): Throwable @unchecked) match { case (e @ (_: Exception)) => true case (defaultCase$ @ _) => false } }; new $anonfun() }: PartialFunction[Throwable,akka.stream.scaladsl.Source[Nothing,akka.NotUsed]])).via[List[akka.util.ByteString], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner(akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$1, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$2, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$3, akka.stream.alpakka.csv.scaladsl.CsvParsing.lineScanner$default$4)).via[Map[String,String], akka.NotUsed](akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings(akka.stream.alpakka.csv.scaladsl.CsvToMap.toMapAsStrings$default$1)).runWith[scala.concurrent.Future[Seq[Map[String,String]]]](akka.stream.scaladsl.Sink.seq[Map[String,String]])(materializer)).asDirective)(util.this.ApplyConverter.hac1[Seq[Map[String,String]]]).apply(((lines: Seq[scala.collection.immutable.Map[String,String]]) => { val userData: scala.collection.mutable.Map[String,DefaultModerationQuestionApi.this.UserData] = scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]; server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) })) }))
540 44473 21094 - 21129 TypeApply scala.collection.MapFactory.Delegate.empty scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]
541 36072 21160 - 21185 Select scala.collection.IterableOnceOps.toList lines.zipWithIndex.toList
541 31229 21160 - 25242 Apply org.make.api.technical.Traverses.RichTraverse.sequentialTraverse org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))
543 32154 21312 - 21321 Apply scala.Int.+ index.+(2)
544 46311 21371 - 21497 Apply scala.collection.MapOps.map line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) }))
545 50487 21439 - 21461 Apply scala.Tuple2.apply scala.Tuple2.apply[String, String](key.trim(), value.trim())
545 37689 21450 - 21460 Apply java.lang.String.trim value.trim()
545 45568 21440 - 21448 Apply java.lang.String.trim key.trim()
548 38713 21618 - 21643 Select cats.data.NonEmptyList.toList question.languages.toList
548 30540 21585 - 21656 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.validateLine DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber)
554 36107 22015 - 22092 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.getDuplicateLanguageWarning DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber)
554 44237 22057 - 22079 Select org.make.core.Validation.NonEmptyString.value originalLanguage.value
556 37763 22131 - 25090 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
556 41934 22182 - 22182 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
560 49457 22452 - 25090 ApplyToImplicitArgs scala.concurrent.Future.flatMap user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
560 32189 22471 - 22492 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[Long](0L)
560 36147 22458 - 22458 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
563 50573 22586 - 23212 Apply org.make.api.proposal.ProposalSearchEngine.countProposals DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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))
564 49168 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$29 org.make.core.proposal.SearchFilters.apply$default$29
564 39308 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$16 org.make.core.proposal.SearchFilters.apply$default$16
564 35890 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$5 org.make.core.proposal.SearchQuery.apply$default$5
564 50810 22744 - 23109 Apply org.make.core.proposal.SearchFilters.apply org.make.core.proposal.SearchFilters.apply(x$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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)
564 37714 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$22 org.make.core.proposal.SearchFilters.apply$default$22
564 50777 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$23 org.make.core.proposal.SearchFilters.apply$default$23
564 49135 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$20 org.make.core.proposal.SearchFilters.apply$default$20
564 36404 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$28 org.make.core.proposal.SearchFilters.apply$default$28
564 36607 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$9 org.make.core.proposal.SearchFilters.apply$default$9
564 38207 22722 - 23164 Apply org.make.core.proposal.SearchQuery.apply org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)
564 44227 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$18 org.make.core.proposal.SearchFilters.apply$default$18
564 44263 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$27 org.make.core.proposal.SearchFilters.apply$default$27
564 42675 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$3 org.make.core.proposal.SearchFilters.apply$default$3
564 48931 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$6 org.make.core.proposal.SearchQuery.apply$default$6
564 45028 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$7 org.make.core.proposal.SearchQuery.apply$default$7
564 31454 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$26 org.make.core.proposal.SearchFilters.apply$default$26
564 31651 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$3 org.make.core.proposal.SearchQuery.apply$default$3
564 43138 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$15 org.make.core.proposal.SearchFilters.apply$default$15
564 45859 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$21 org.make.core.proposal.SearchFilters.apply$default$21
564 39274 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$4 org.make.core.proposal.SearchFilters.apply$default$4
564 50982 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$2 org.make.core.proposal.SearchFilters.apply$default$2
564 44992 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$30 org.make.core.proposal.SearchFilters.apply$default$30
564 51012 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$13 org.make.core.proposal.SearchFilters.apply$default$13
564 45820 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$11 org.make.core.proposal.SearchFilters.apply$default$11
564 38454 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$25 org.make.core.proposal.SearchFilters.apply$default$25
564 38493 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$2 org.make.core.proposal.SearchQuery.apply$default$2
564 37679 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$12 org.make.core.proposal.SearchFilters.apply$default$12
564 44025 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$4 org.make.core.proposal.SearchQuery.apply$default$4
564 36641 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$19 org.make.core.proposal.SearchFilters.apply$default$19
564 31662 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$5 org.make.core.proposal.SearchFilters.apply$default$5
564 42628 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$24 org.make.core.proposal.SearchFilters.apply$default$24
564 38181 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$1 org.make.core.proposal.SearchFilters.apply$default$1
564 37475 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$31 org.make.core.proposal.SearchFilters.apply$default$31
564 44195 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$8 org.make.core.proposal.SearchFilters.apply$default$8
564 31419 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$17 org.make.core.proposal.SearchFilters.apply$default$17
564 32747 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$10 org.make.core.proposal.SearchFilters.apply$default$10
565 37119 22819 - 22853 Apply org.make.core.proposal.ContentSearchFilter.apply org.make.core.proposal.ContentSearchFilter.apply(content.value)
565 50238 22819 - 22858 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some
565 46024 22839 - 22852 Select org.make.core.Validation.StringWithMaxLength.value content.value
566 46345 22942 - 22957 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)
566 39510 22921 - 22958 Apply org.make.core.proposal.QuestionSearchFilter.apply org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))
566 31626 22921 - 22963 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some
567 36144 23040 - 23053 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId)
567 46063 23023 - 23059 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some
567 44426 23044 - 23052 Select org.make.core.user.User.userId u.userId
567 31943 23023 - 23054 Apply org.make.core.proposal.UserSearchFilter.apply org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))
568 42385 22744 - 23114 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some
572 44012 23295 - 25090 ApplyToImplicitArgs scala.concurrent.Future.map count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)
572 31190 23302 - 23302 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
575 49006 23501 - 23501 ApplyToImplicitArgs cats.instances.FutureInstances.catsStdInstancesForFuture cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)
575 44508 23416 - 24832 Apply org.make.api.proposal.ProposalService.createExternalProposal DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber)
575 36393 23501 - 23501 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
576 42422 23551 - 23564 Select org.make.core.Validation.StringWithMaxLength.value content.value
579 34550 23777 - 23800 Select cats.data.NonEmptyList.head question.countries.head
580 31406 23881 - 23903 Select org.make.core.Validation.NonEmptyString.value originalLanguage.value
580 44750 23872 - 23904 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply(originalLanguage.value)
581 36951 23968 - 23985 Select org.make.api.question.InjectProposalsRequest.anonymous request.anonymous
582 48967 24052 - 24072 Select org.make.core.Validation.NonEmptyString.value externalUserId.value
583 34587 24131 - 24539 Apply org.make.api.question.AuthorRequest.apply AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36)
584 45846 24208 - 24223 Select org.make.core.Validation.NonEmptyString.value firstName.value
586 37968 24347 - 24351 Select scala.None scala.None
587 50765 24416 - 24420 Select scala.None scala.None
588 43487 24485 - 24489 Select scala.None scala.None
590 31443 24601 - 24621 Select org.make.core.auth.UserRights.userId userAuth.user.userId
594 45600 24883 - 24904 Apply scala.Tuple2.apply scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)
594 38005 23416 - 24905 Apply cats.Functor.Ops.as cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning))
595 42915 24976 - 24994 Apply scala.Tuple2.apply scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)
595 35390 24958 - 24995 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None))
595 50527 24989 - 24993 Select scala.None scala.None
598 50561 25168 - 25172 Select scala.None scala.None
598 34539 25137 - 25174 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None))
598 42954 25155 - 25173 Apply scala.Tuple2.apply scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)
600 43761 21160 - 25254 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective
600 36185 25243 - 25243 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]
600 47662 21160 - 25520 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]](org.make.api.technical.Traverses.RichTraverse[(scala.collection.immutable.Map[String,String], Int)](lines.zipWithIndex.toList).sequentialTraverse[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((x0$2: (scala.collection.immutable.Map[String,String], Int)) => x0$2 match { case (_1: scala.collection.immutable.Map[String,String], _2: Int): (scala.collection.immutable.Map[String,String], Int)((line @ _), (index @ _)) => { val lineNumber: Int = index.+(2); val trimLine: scala.collection.immutable.Map[String,String] = line.map[String, String](((x0$3: (String, String)) => x0$3 match { case (_1: String, _2: String): (String, String)((key @ _), (value @ _)) => scala.Tuple2.apply[String, String](key.trim(), value.trim()) })); val validation: cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)] = DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber); validation match { case (a: (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)): cats.data.Validated.Valid[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]((_1: org.make.core.Validation.StringWithMaxLength, _2: org.make.core.Validation.StringWithMinLength, _3: org.make.core.Validation.NonEmptyString, _4: Option[org.make.core.technical.Multilingual[String]], _5: org.make.core.Validation.NonEmptyString, _6: Option[Int], _7: org.make.core.Validation.NonEmptyString, _8: Unit): (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)((content @ _), _, (originalLanguage @ _), (translations @ _), (firstName @ _), (age @ _), (externalUserId @ _), _)) => { val warning: Option[String] = DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber); DefaultModerationQuestionComponent.this.userService.getUserByEmail(("".+(question.questionId.value).+("-").+(externalUserId.value).+("@example.com"): String)).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((user: Option[org.make.core.user.User]) => user.fold[scala.concurrent.Future[Long]](scala.concurrent.Future.successful[Long](0L))(((u: org.make.core.user.User) => DefaultModerationQuestionComponent.this.elasticsearchProposalAPI.countProposals(org.make.core.proposal.SearchQuery.apply(cats.implicits.catsSyntaxOptionId[org.make.core.proposal.SearchFilters]({ <artifact> val x$1: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some; <artifact> val x$2: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.QuestionSearchFilter](org.make.core.proposal.QuestionSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId))).some; <artifact> val x$3: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = cats.implicits.catsSyntaxOptionId[org.make.core.proposal.UserSearchFilter](org.make.core.proposal.UserSearchFilter.apply(scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId))).some; <artifact> val x$4: Option[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$1; <artifact> val x$5: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2; <artifact> val x$6: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3; <artifact> val x$7: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4; <artifact> val x$8: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5; <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.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$4, x$5, x$6, x$7, x$8, x$2, x$1, x$9, x$10, x$11, x$12, x$13, x$14, x$3, 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) }).some, 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)))).flatMap[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((count: Long) => count match { case 0L => cats.implicits.toFunctorOps[scala.concurrent.Future, org.make.core.proposal.ProposalId](DefaultModerationQuestionComponent.this.proposalService.createExternalProposal(content.value, translations, question, question.countries.head, org.make.core.reference.Language.apply(originalLanguage.value), request.anonymous, externalUserId.value, { <artifact> val x$32: String = firstName.value; <artifact> val x$33: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = age; <artifact> val x$34: None.type = scala.None; <artifact> val x$35: None.type = scala.None; <artifact> val x$36: None.type = scala.None; AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36) }, userAuth.user.userId, requestContext, lineNumber))(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)).as[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](validation, warning)) case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) }.map[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])](((result: (cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])) => result))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global) } case _ => scala.concurrent.Future.successful[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type)](scala.Tuple2.apply[cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], None.type](validation, scala.None)) } } }))).asDirective)(util.this.ApplyConverter.hac1[List[(cats.data.ValidatedNec[org.make.core.ValidationError,(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]]).apply(((res: List[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) => { <synthetic> <artifact> private[this] val x$10: (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]) = res.unzip[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String]](scala.Predef.$conforms[(cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)], Option[String])]) match { case (_1: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], _2: List[Option[String]]): (List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]])((validations @ _), (warnings @ _)) => scala.Tuple2.apply[List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], List[Option[String]]](validations, warnings) }; val validations: List[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]] = x$10._1; val warnings: List[Option[String]] = x$10._2; org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))) }))
601 48953 25301 - 25301 Select scala.Tuple2._1 x$10._1
601 41090 25314 - 25314 Select scala.Tuple2._2 x$10._2
602 37253 25368 - 25405 Apply org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils.throwIfInvalid org.make.core.technical.ValidatedUtils.ValidatedNecWithUtils[List[(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](cats.implicits.toTraverseOps[List, cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]](validations)(cats.implicits.catsStdInstancesForList).sequence[[+A]cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)](scala.this.<:<.refl[cats.data.Validated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError],(org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, org.make.core.Validation.NonEmptyString, Option[org.make.core.technical.Multilingual[String]], org.make.core.Validation.NonEmptyString, Option[Int], org.make.core.Validation.NonEmptyString, Unit)]], data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChainImpl.Type[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]))).throwIfInvalid()
603 50355 25468 - 25468 ApplyToImplicitArgs akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCodeAndValue marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]]))
603 50026 25468 - 25468 ApplyToImplicitArgs io.circe.Encoder.encodeList circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString)
603 34576 25471 - 25487 ApplyToImplicitArgs scala.collection.StrictOptimizedIterableOps.flatten warnings.flatten[String](scala.Predef.$conforms[Option[String]])
603 43799 25468 - 25468 TypeApply scala.Predef.$conforms scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success]
603 43514 25447 - 25487 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])))
603 50602 25447 - 25467 Select akka.http.scaladsl.model.StatusCodes.Accepted akka.http.scaladsl.model.StatusCodes.Accepted
603 36220 25468 - 25468 Select io.circe.Encoder.encodeString circe.this.Encoder.encodeString
603 41128 25468 - 25468 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]]
603 35640 25438 - 25488 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[String])](scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]])))(marshalling.this.Marshaller.fromStatusCodeAndValue[akka.http.scaladsl.model.StatusCodes.Success, List[String]](scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success], DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]]))))
603 37715 25468 - 25468 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller DefaultModerationQuestionComponent.this.marshaller[List[String]](circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString), DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]])
603 47629 25447 - 25487 Apply scala.Predef.ArrowAssoc.-> scala.Predef.ArrowAssoc[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.Accepted).->[List[String]](warnings.flatten[String](scala.Predef.$conforms[Option[String]]))
603 42706 25480 - 25480 TypeApply scala.Predef.$conforms scala.Predef.$conforms[Option[String]]
617 39912 25742 - 27737 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.get).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.path[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationSearchQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$11: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order])](DefaultModerationQuestionApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("slug").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("_sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac8[Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order]]).apply(((maybeSlug: Option[String], operationId: Option[org.make.core.operation.OperationId], country: Option[org.make.core.reference.Country], language: Option[org.make.core.reference.Language], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[String], order: Option[org.make.core.Order]) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply({ val questionIds: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)) scala.None else scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions); val request: org.make.api.question.SearchQuestionRequest = SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order); val searchResults: scala.concurrent.Future[(Int, Seq[org.make.core.question.Question])] = DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global); server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) })) })))))))))
617 49819 25742 - 25745 Select akka.http.scaladsl.server.directives.MethodDirectives.get org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.get
618 48334 25754 - 27731 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.path[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationSearchQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$11: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order])](DefaultModerationQuestionApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("slug").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("_sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac8[Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order]]).apply(((maybeSlug: Option[String], operationId: Option[org.make.core.operation.OperationId], country: Option[org.make.core.reference.Country], language: Option[org.make.core.reference.Language], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[String], order: Option[org.make.core.Order]) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply({ val questionIds: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)) scala.None else scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions); val request: org.make.api.question.SearchQuestionRequest = SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order); val searchResults: scala.concurrent.Future[(Int, Seq[org.make.core.question.Question])] = DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global); server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) })) }))))))))
618 50846 25772 - 25772 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
618 42218 25759 - 25771 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
618 35431 25754 - 25786 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit]))
618 42698 25759 - 25785 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])
618 34087 25774 - 25785 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
619 48226 25811 - 25837 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationSearchQuestion"
619 44335 25797 - 25797 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
619 49234 25797 - 25838 Apply org.make.api.technical.MakeDirectives.makeOperation org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation("ModerationSearchQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
619 35928 25797 - 25797 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
619 41715 25810 - 25810 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
619 34991 25797 - 27723 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationSearchQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$11: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order])](DefaultModerationQuestionApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("slug").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("_sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac8[Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order]]).apply(((maybeSlug: Option[String], operationId: Option[org.make.core.operation.OperationId], country: Option[org.make.core.reference.Country], language: Option[org.make.core.reference.Language], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[String], order: Option[org.make.core.Order]) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply({ val questionIds: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)) scala.None else scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions); val request: org.make.api.question.SearchQuestionRequest = SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order); val searchResults: scala.concurrent.Future[(Int, Seq[org.make.core.question.Question])] = DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global); server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) })) })))))))
620 48546 25856 - 26165 Apply akka.http.scaladsl.server.directives.ParameterDirectivesInstances.parameters DefaultModerationQuestionApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("slug").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("_sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order])))))
620 40115 25866 - 25866 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac8 util.this.ApplyConverter.hac8[Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order]]
621 48265 25880 - 25888 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("slug").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
621 34854 25887 - 25887 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
621 33840 25880 - 25886 Literal <nosymbol> "slug"
621 50342 25880 - 25888 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("slug").?
621 42458 25887 - 25887 TypeApply akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
622 35961 25902 - 25933 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?
622 40372 25902 - 25915 Literal <nosymbol> "operationId"
622 33879 25902 - 25933 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller))
622 42171 25932 - 25932 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller)
622 49007 25932 - 25932 Select org.make.core.ParameterExtractors.operationIdFromStringUnmarshaller DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller
623 42493 25947 - 25970 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?
623 51408 25947 - 25956 Literal <nosymbol> "country"
623 48713 25969 - 25969 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller)
623 39874 25947 - 25970 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller))
623 35666 25969 - 25969 Select org.make.core.ParameterExtractors.countryFromStringUnmarshaller DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller
624 42206 26008 - 26008 Select org.make.core.ParameterExtractors.languageFromStringUnmarshaller DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller
624 49039 25984 - 26009 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?
624 34328 26008 - 26008 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)
624 50130 25984 - 26009 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller))
624 37024 25984 - 25994 Literal <nosymbol> "language"
625 35749 26023 - 26055 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller))
625 40321 26054 - 26054 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller)
625 48745 26054 - 26054 Select org.make.core.ParameterExtractors.startFromIntUnmarshaller DefaultModerationQuestionComponent.this.startFromIntUnmarshaller
625 43559 26023 - 26031 Literal <nosymbol> "_start"
625 35421 26023 - 26055 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?
626 41963 26069 - 26096 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?
626 46858 26095 - 26095 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller)
626 42291 26069 - 26096 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller))
626 49845 26069 - 26075 Literal <nosymbol> "_end"
626 34368 26095 - 26095 Select org.make.core.ParameterExtractors.endFromIntUnmarshaller DefaultModerationQuestionComponent.this.endFromIntUnmarshaller
627 49590 26110 - 26119 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("_sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
627 35455 26110 - 26117 Literal <nosymbol> "_sort"
627 36507 26118 - 26118 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
627 40362 26118 - 26118 TypeApply akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
627 48511 26110 - 26119 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_sort").?
628 35210 26133 - 26153 ApplyToImplicitArgs akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))
628 33577 26133 - 26153 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?
628 42004 26133 - 26141 Literal <nosymbol> "_order"
628 46893 26152 - 26152 ApplyToImplicitArgs org.make.core.ParameterExtractors.enumeratumEnumUnmarshaller DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))
628 42482 26152 - 26152 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order])))
629 38819 25856 - 27713 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order])](DefaultModerationQuestionApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("slug").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationQuestionComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationQuestionComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationQuestionApi.this._string2NR("_sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac8[Option[String], Option[org.make.core.operation.OperationId], Option[org.make.core.reference.Country], Option[org.make.core.reference.Language], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[String], Option[org.make.core.Order]]).apply(((maybeSlug: Option[String], operationId: Option[org.make.core.operation.OperationId], country: Option[org.make.core.reference.Country], language: Option[org.make.core.reference.Language], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[String], order: Option[org.make.core.Order]) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply({ val questionIds: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)) scala.None else scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions); val request: org.make.api.question.SearchQuestionRequest = SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order); val searchResults: scala.concurrent.Future[(Int, Seq[org.make.core.question.Question])] = DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global); server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) })) })))))
630 46683 26253 - 27701 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply({ val questionIds: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)) scala.None else scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions); val request: org.make.api.question.SearchQuestionRequest = SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order); val searchResults: scala.concurrent.Future[(Int, Seq[org.make.core.question.Question])] = DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global); server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) })) })))
630 49028 26253 - 26253 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
630 36255 26253 - 26263 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
631 41763 26336 - 26349 Select scalaoauth2.provider.AuthInfo.user userAuth.user
631 33616 26314 - 26350 Apply org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)
631 33911 26314 - 27687 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply({ val questionIds: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)) scala.None else scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions); val request: org.make.api.question.SearchQuestionRequest = SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order); val searchResults: scala.concurrent.Future[(Int, Seq[org.make.core.question.Question])] = DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global); server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) })) })
632 43548 26416 - 26455 Apply scala.collection.SeqOps.contains userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)
632 46929 26445 - 26454 Select org.make.core.user.Role.RoleAdmin org.make.core.user.Role.RoleAdmin
633 47760 26477 - 26481 Block scala.None scala.None
633 34646 26477 - 26481 Select scala.None scala.None
635 40153 26530 - 26562 Select org.make.core.auth.UserRights.availableQuestions userAuth.user.availableQuestions
635 50099 26525 - 26563 Block scala.Some.apply scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
635 32003 26525 - 26563 Apply scala.Some.apply scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
637 46693 26635 - 27039 Apply org.make.api.question.SearchQuestionRequest.apply SearchQuestionRequest.apply(questionIds, operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op))), country, language, maybeSlug, offset, end, sort, order)
639 41197 26768 - 26775 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.operation.OperationId](op)
639 33653 26746 - 26776 Apply scala.Option.map operationId.map[Seq[org.make.core.operation.OperationId]](((op: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](op)))
649 33074 27124 - 27294 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultModerationQuestionComponent.this.questionService.countQuestion(request).flatMap[(Int, Seq[org.make.core.question.Question])](((count: Int) => DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)))(scala.concurrent.ExecutionContext.Implicits.global)
649 40191 27171 - 27171 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
650 48498 27202 - 27274 ApplyToImplicitArgs scala.concurrent.Future.map DefaultModerationQuestionComponent.this.questionService.searchQuestion(request).map[(Int, Seq[org.make.core.question.Question])](((results: Seq[org.make.core.question.Question]) => scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)))(scala.concurrent.ExecutionContext.Implicits.global)
650 42280 27257 - 27273 Apply scala.Predef.ArrowAssoc.-> scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)
650 35717 27245 - 27245 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
653 39627 27321 - 27321 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac2 util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]
653 48823 27322 - 27322 TypeApply akka.http.scaladsl.server.util.Tuple.forTuple2 util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]
653 41717 27322 - 27322 ApplyToImplicitArgs akka.http.scaladsl.server.util.Tupler.forTuple util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]])
653 41785 27312 - 27671 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(Int, Seq[org.make.core.question.Question])](DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))))(util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]).apply(((x0$1: Int, x1$1: Seq[org.make.core.question.Question]) => scala.Tuple2.apply[Int, Seq[org.make.core.question.Question]](x0$1, x1$1) match { case (_1: Int, _2: Seq[org.make.core.question.Question]): (Int, Seq[org.make.core.question.Question])((count @ _), (results @ _)) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))) }))
653 47500 27312 - 27336 Apply akka.http.scaladsl.server.directives.FutureDirectives.onSuccess DefaultModerationQuestionApi.this.onSuccess(directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]])))
653 34117 27322 - 27335 ApplyToImplicitArgs akka.http.scaladsl.server.directives.OnSuccessMagnet.apply directives.this.OnSuccessMagnet.apply[(Int, Seq[org.make.core.question.Question])](searchResults)(util.this.Tupler.forTuple[(Int, Seq[org.make.core.question.Question])](util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]))
655 49922 27402 - 27653 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]]))))
656 46647 27434 - 27434 Select org.make.api.question.ModerationQuestionResponse.codec question.this.ModerationQuestionResponse.codec
656 34956 27434 - 27434 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]]
656 39666 27434 - 27434 ApplyToImplicitArgs io.circe.Encoder.encodeSeq circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec)
656 34151 27434 - 27631 Apply scala.Tuple3.apply scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question))))
656 40144 27434 - 27434 ApplyToImplicitArgs akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCodeAndHeadersAndValue marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]]))
656 48296 27434 - 27434 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])
656 32251 27434 - 27631 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, Seq[org.make.api.technical.X-Total-Count], Seq[org.make.api.question.ModerationQuestionResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString())), results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.question.ModerationQuestionResponse]](DefaultModerationQuestionComponent.this.marshaller[Seq[org.make.api.question.ModerationQuestionResponse]](circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec), DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]])))
657 34441 27460 - 27474 Select akka.http.scaladsl.model.StatusCodes.OK akka.http.scaladsl.model.StatusCodes.OK
658 48536 27520 - 27534 Apply scala.Any.toString count.toString()
658 40653 27504 - 27535 Apply akka.http.scaladsl.model.headers.ModeledCustomHeaderCompanion.apply org.make.api.technical.X-Total-Count.apply(count.toString())
658 33113 27500 - 27536 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(count.toString()))
659 41748 27562 - 27607 Apply scala.collection.IterableOps.map results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))
659 49887 27574 - 27606 Apply org.make.api.question.ModerationQuestionResponse.apply ModerationQuestionResponse.apply(question)
670 32292 27777 - 27780 Select akka.http.scaladsl.server.directives.MethodDirectives.get org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.get
670 39444 27777 - 28231 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.get).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationGetQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$12: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse]))))))))))))))
671 45089 27794 - 27806 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
671 46964 27789 - 28225 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationGetQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$12: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse])))))))))))))
671 46449 27821 - 27821 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]
671 33948 27807 - 27807 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
671 34432 27789 - 27834 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]))
671 48090 27793 - 27793 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]
671 41543 27809 - 27820 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
671 38854 27794 - 27833 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])
672 46159 27859 - 27859 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
672 40979 27859 - 27897 Apply org.make.api.technical.MakeDirectives.makeOperation org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation("ModerationGetQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
672 39947 27873 - 27896 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationGetQuestion"
672 33146 27872 - 27872 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
672 33654 27859 - 28217 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("ModerationGetQuestion", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$12: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse])))))))))))
672 32047 27859 - 27859 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
673 39652 27915 - 27915 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
673 42075 27915 - 28207 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((userAuth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse])))))))))
673 46483 27915 - 27925 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
674 45956 27974 - 28195 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse])))))))
674 35491 27996 - 28009 Select scalaoauth2.provider.AuthInfo.user userAuth.user
674 47516 27974 - 28010 Apply org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)
675 32086 28027 - 28088 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound
675 39704 28027 - 28066 Apply org.make.api.question.QuestionService.getQuestion DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)
675 32891 28027 - 28181 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse]))))))
675 46196 28067 - 28067 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.question.Question]
676 33901 28154 - 28154 Select org.make.api.question.ModerationQuestionResponse.codec question.this.ModerationQuestionResponse.codec
676 46240 28154 - 28154 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse]
676 39409 28154 - 28154 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse])
676 40434 28119 - 28165 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse]))))
676 48045 28128 - 28164 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[org.make.api.question.ModerationQuestionResponse](ModerationQuestionResponse.apply(question))(marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse])))
676 31796 28154 - 28154 ApplyToImplicitArgs akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller marshalling.this.Marshaller.liftMarshaller[org.make.api.question.ModerationQuestionResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse]))
676 42042 28128 - 28164 Apply org.make.api.question.ModerationQuestionResponse.apply ModerationQuestionResponse.apply(question)
685 45157 28287 - 29501 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("image"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("uploadQuestionConsultationImage", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$13: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) }))))))))))))
685 31561 28287 - 28291 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
686 46473 28347 - 28347 ApplyToImplicitArgs akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join org.make.api.question.moderationquestionapitest TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
686 33688 28347 - 28347 TypeApply akka.http.scaladsl.server.util.TupleFoldInstances.t0 org.make.api.question.moderationquestionapitest TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
686 47839 28306 - 28306 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]
686 37569 28349 - 28356 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("image")
686 32036 28320 - 28320 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
686 31596 28302 - 28357 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("image"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
686 45996 28334 - 28334 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]
686 40472 28322 - 28333 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
686 38597 28307 - 28356 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("image"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
686 48077 28307 - 28319 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
686 32361 28302 - 29493 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("image"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("uploadQuestionConsultationImage", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$13: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))))))))
687 32077 28384 - 28384 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
687 40226 28398 - 28431 Literal <nosymbol> org.make.api.question.moderationquestionapitest "uploadQuestionConsultationImage"
687 39977 28384 - 29483 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("uploadQuestionConsultationImage", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$13: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))))))
687 38317 28384 - 28432 Apply org.make.api.technical.MakeDirectives.makeOperation org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation("uploadQuestionConsultationImage", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
687 45135 28384 - 28384 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
687 33731 28397 - 28397 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
688 44682 28452 - 29471 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))))
688 46228 28452 - 28462 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOAuth2
688 38636 28452 - 28452 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
689 31337 28487 - 29457 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))
689 31510 28504 - 28513 Select scalaoauth2.provider.AuthInfo.user user.user
689 48571 28487 - 28514 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(user.user)
690 45169 28589 - 28589 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]
690 40261 28533 - 28588 Apply org.make.api.operation.OperationOfQuestionService.findByQuestionId DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)
690 39653 28533 - 29441 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) }))))
690 31829 28533 - 28610 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound
691 46267 28654 - 28739 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound
691 46754 28654 - 29423 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) }))
691 38392 28718 - 28718 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]
691 38349 28685 - 28716 Select org.make.core.operation.OperationOfQuestion.operationId operationOfQuestion.operationId
691 34186 28654 - 28717 Apply org.make.api.operation.OperationService.findOneSimple DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)
694 44886 28894 - 29177 Apply org.make.api.technical.storage.StorageService.uploadImage DefaultModerationQuestionComponent.this.storageService.uploadImage(org.make.api.technical.storage.FileType.Operation, ("".+(operation.slug).+("/").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+(extension): String), contentType, fileContent)
695 31553 28973 - 28991 Select org.make.api.technical.storage.FileType.Operation org.make.api.technical.storage.FileType.Operation
701 40177 29237 - 29243 Literal <nosymbol> "data"
701 31869 29245 - 29255 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.uploadFile uploadFile(extension, contentType, fileContent)
701 45706 29269 - 29273 Select scala.None scala.None
701 34225 29236 - 29236 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac2 util.this.ApplyConverter.hac2[String, java.io.File]
701 33435 29220 - 29403 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) }))
701 38112 29220 - 29274 Apply org.make.api.technical.MakeDirectives.uploadImageAsync DefaultModerationQuestionComponent.this.uploadImageAsync("data", ((extension: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(extension, contentType, fileContent)), scala.None)
702 46721 29315 - 29328 Apply java.io.File.delete file.delete()
703 45741 29360 - 29380 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))
703 44649 29374 - 29374 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]
703 38428 29360 - 29380 Apply org.make.api.technical.storage.UploadResponse.apply org.make.api.technical.storage.UploadResponse.apply(path)
703 40216 29374 - 29374 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])
703 32323 29374 - 29374 ApplyToImplicitArgs akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]))
703 31584 29374 - 29374 Select org.make.api.technical.storage.UploadResponse.encoder storage.this.UploadResponse.encoder
703 38145 29351 - 29381 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]))))
715 38708 29556 - 30733 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("report"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("uploadConsultationReport", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$14: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) }))))))))))))
715 37897 29556 - 29560 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
716 50705 29576 - 29588 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
716 40011 29616 - 29616 TypeApply akka.http.scaladsl.server.util.TupleFoldInstances.t0 org.make.api.question.moderationquestionapitest TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
716 46518 29591 - 29602 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
716 43904 29618 - 29626 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("report")
716 30748 29603 - 29603 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)]
716 50453 29575 - 29575 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]
716 37330 29571 - 29627 Apply akka.http.scaladsl.server.directives.PathDirectives.path org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("report"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
716 42593 29571 - 30725 Apply scala.Function1.apply org.make.api.question.moderationquestionapitest server.this.Directive.addDirectiveApply[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.path[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("report"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.question.QuestionId]).apply(((questionId: org.make.core.question.QuestionId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("uploadConsultationReport", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$14: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))))))))
716 44916 29576 - 29626 ApplyToImplicitArgs akka.http.scaladsl.server.PathMatcher./ org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.question.QuestionId,)](DefaultModerationQuestionApi.this.questionId)(TupleOps.this.Join.join0P[(org.make.core.question.QuestionId,)])./[Unit](DefaultModerationQuestionApi.this._segmentStringToPathMatcher("report"))(TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
716 31856 29616 - 29616 ApplyToImplicitArgs akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join org.make.api.question.moderationquestionapitest TupleOps.this.Join.join[(org.make.core.question.QuestionId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.question.QuestionId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
716 38381 29589 - 29589 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
717 51019 29654 - 30715 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationQuestionComponent.this.makeOperation("uploadConsultationReport", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$14: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))))))
717 44637 29654 - 29695 Apply org.make.api.technical.MakeDirectives.makeOperation DefaultModerationQuestionComponent.this.makeOperation("uploadConsultationReport", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
717 30506 29654 - 29654 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 DefaultModerationQuestionComponent.this.makeOperation$default$3
717 36076 29667 - 29667 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.RequestContext]
717 46552 29668 - 29694 Literal <nosymbol> "uploadConsultationReport"
717 38417 29654 - 29654 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 DefaultModerationQuestionComponent.this.makeOperation$default$2
718 37684 29715 - 30703 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationQuestionComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((user: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))))
718 32925 29715 - 29725 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
718 44952 29715 - 29715 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
719 51189 29750 - 29777 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(user.user)
719 45982 29750 - 30689 Apply scala.Function1.apply server.this.Directive.addByNameNullaryApply(DefaultModerationQuestionComponent.this.requireAdminRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) })))))
719 37853 29767 - 29776 Select scalaoauth2.provider.AuthInfo.user user.user
720 46590 29796 - 29851 Apply org.make.api.operation.OperationOfQuestionService.findByQuestionId DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)
720 30544 29852 - 29852 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]
720 32149 29796 - 30673 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.operation.OperationOfQuestion,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]).apply(((operationOfQuestion: org.make.core.operation.OperationOfQuestion) => server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) }))))
720 39479 29796 - 29873 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.OperationOfQuestion](DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)).asDirectiveOrNotFound
721 46030 29981 - 29981 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]
721 32964 29917 - 30002 Select org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound
721 44397 29948 - 29979 Select org.make.core.operation.OperationOfQuestion.operationId operationOfQuestion.operationId
721 36812 29917 - 29980 Apply org.make.api.operation.OperationService.findOneSimple DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)
721 36067 29917 - 30655 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(org.make.core.operation.SimpleOperation,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.operation.SimpleOperation](DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]).apply(((operation: org.make.core.operation.SimpleOperation) => { def uploadFile(name: String, contentType: String, fileContent: org.make.api.technical.storage.Content): scala.concurrent.Future[String] = DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent); server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) })) }))
724 51223 30152 - 30429 Apply org.make.api.technical.storage.StorageService.uploadReport DefaultModerationQuestionComponent.this.storageService.uploadReport(org.make.api.technical.storage.FileType.Report, ("".+(operation.slug).+("_").+(DefaultModerationQuestionComponent.this.idGenerator.nextId()).+("_").+(name): String), contentType, fileContent)
725 37888 30232 - 30247 Select org.make.api.technical.storage.FileType.Report org.make.api.technical.storage.FileType.Report
731 39517 30495 - 30505 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.uploadFile uploadFile(name, contentType, fileContent)
731 31077 30472 - 30506 Apply org.make.api.technical.MakeDirectives.uploadPDFAsync DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent)))
731 46505 30487 - 30493 Literal <nosymbol> "data"
731 44465 30472 - 30635 Apply scala.Function1.apply server.this.Directive.addDirectiveApply[(String, java.io.File)](DefaultModerationQuestionComponent.this.uploadPDFAsync("data", ((name: String, contentType: String, fileContent: org.make.api.technical.storage.Content) => uploadFile(name, contentType, fileContent))))(util.this.ApplyConverter.hac2[String, java.io.File]).apply(((path: String, file: java.io.File) => { file.delete(); DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))) }))
731 44432 30486 - 30486 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac2 util.this.ApplyConverter.hac2[String, java.io.File]
732 36849 30547 - 30560 Apply java.io.File.delete file.delete()
733 42834 30606 - 30606 ApplyToImplicitArgs akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]))
733 31113 30583 - 30613 Apply akka.http.scaladsl.server.directives.RouteDirectives.complete DefaultModerationQuestionApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]))))
733 38670 30592 - 30612 ApplyToImplicitArgs akka.http.scaladsl.marshalling.ToResponseMarshallable.apply marshalling.this.ToResponseMarshallable.apply[org.make.api.technical.storage.UploadResponse](org.make.api.technical.storage.UploadResponse.apply(path))(marshalling.this.Marshaller.liftMarshaller[org.make.api.technical.storage.UploadResponse](DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])))
733 32111 30592 - 30612 Apply org.make.api.technical.storage.UploadResponse.apply org.make.api.technical.storage.UploadResponse.apply(path)
733 46068 30606 - 30606 Select org.make.api.technical.storage.UploadResponse.encoder storage.this.UploadResponse.encoder
733 50987 30606 - 30606 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller DefaultModerationQuestionComponent.this.marshaller[org.make.api.technical.storage.UploadResponse](storage.this.UploadResponse.encoder, DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse])
733 37649 30606 - 30606 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]
768 31585 31632 - 31675 ApplyToImplicitArgs io.circe.generic.semiauto.deriveDecoder io.circe.generic.semiauto.deriveDecoder[org.make.api.question.CreateInitialProposalRequest]({ val inst$macro$28: io.circe.generic.decoding.DerivedDecoder[org.make.api.question.CreateInitialProposalRequest] = { final class anon$lazy$macro$27 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$27 = { anon$lazy$macro$27.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.decoding.DerivedDecoder[org.make.api.question.CreateInitialProposalRequest] = decoding.this.DerivedDecoder.deriveDecoder[org.make.api.question.CreateInitialProposalRequest, shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.question.CreateInitialProposalRequest, (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("country")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil, eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]] :: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.question.CreateInitialProposalRequest, (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("country")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil](::.apply[Symbol @@ String("content"), (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("country")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil.type](scala.Symbol.apply("content").asInstanceOf[Symbol @@ String("content")], ::.apply[Symbol @@ String("contentTranslations"), (Symbol @@ String("country")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil.type](scala.Symbol.apply("contentTranslations").asInstanceOf[Symbol @@ String("contentTranslations")], ::.apply[Symbol @@ String("country"), (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil.type](scala.Symbol.apply("country").asInstanceOf[Symbol @@ String("country")], ::.apply[Symbol @@ String("submittedAsLanguage"), (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil.type](scala.Symbol.apply("submittedAsLanguage").asInstanceOf[Symbol @@ String("submittedAsLanguage")], ::.apply[Symbol @@ String("author"), (Symbol @@ String("tags")) :: shapeless.HNil.type](scala.Symbol.apply("author").asInstanceOf[Symbol @@ String("author")], ::.apply[Symbol @@ String("tags"), shapeless.HNil.type](scala.Symbol.apply("tags").asInstanceOf[Symbol @@ String("tags")], HNil))))))), Generic.instance[org.make.api.question.CreateInitialProposalRequest, eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]] :: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil](((x0$3: org.make.api.question.CreateInitialProposalRequest) => x0$3 match { case (content: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]], contentTranslations: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]], country: org.make.core.reference.Country, submittedAsLanguage: org.make.core.reference.Language, author: org.make.api.question.AuthorRequest, tags: Seq[org.make.core.tag.TagId]): org.make.api.question.CreateInitialProposalRequest((content$macro$20 @ _), (contentTranslations$macro$21 @ _), (country$macro$22 @ _), (submittedAsLanguage$macro$23 @ _), (author$macro$24 @ _), (tags$macro$25 @ _)) => ::.apply[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]], Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil.type](content$macro$20, ::.apply[Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]], org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil.type](contentTranslations$macro$21, ::.apply[org.make.core.reference.Country, org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil.type](country$macro$22, ::.apply[org.make.core.reference.Language, org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil.type](submittedAsLanguage$macro$23, ::.apply[org.make.api.question.AuthorRequest, Seq[org.make.core.tag.TagId] :: shapeless.HNil.type](author$macro$24, ::.apply[Seq[org.make.core.tag.TagId], shapeless.HNil.type](tags$macro$25, HNil)))))).asInstanceOf[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]] :: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil] }), ((x0$4: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]] :: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil) => x0$4 match { case (head: eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]], tail: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil): eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]] :: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil((content$macro$14 @ _), (head: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]], tail: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil): Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil((contentTranslations$macro$15 @ _), (head: org.make.core.reference.Country, tail: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil): org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil((country$macro$16 @ _), (head: org.make.core.reference.Language, tail: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil): org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil((submittedAsLanguage$macro$17 @ _), (head: org.make.api.question.AuthorRequest, tail: Seq[org.make.core.tag.TagId] :: shapeless.HNil): org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil((author$macro$18 @ _), (head: Seq[org.make.core.tag.TagId], tail: shapeless.HNil): Seq[org.make.core.tag.TagId] :: shapeless.HNil((tags$macro$19 @ _), HNil)))))) => question.this.CreateInitialProposalRequest.apply(content$macro$14, contentTranslations$macro$15, country$macro$16, submittedAsLanguage$macro$17, author$macro$18, tags$macro$19) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("content"), eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]], (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("country")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil, Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]] :: org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("contentTranslations"), Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]], (Symbol @@ String("country")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil, org.make.core.reference.Country :: org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("country"), org.make.core.reference.Country, (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil, org.make.core.reference.Language :: org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("submittedAsLanguage"), org.make.core.reference.Language, (Symbol @@ String("author")) :: (Symbol @@ String("tags")) :: shapeless.HNil, org.make.api.question.AuthorRequest :: Seq[org.make.core.tag.TagId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("author"), org.make.api.question.AuthorRequest, (Symbol @@ String("tags")) :: shapeless.HNil, Seq[org.make.core.tag.TagId] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("tags"), Seq[org.make.core.tag.TagId], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("tags")]](scala.Symbol.apply("tags").asInstanceOf[Symbol @@ String("tags")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("tags")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("author")]](scala.Symbol.apply("author").asInstanceOf[Symbol @@ String("author")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("author")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("submittedAsLanguage")]](scala.Symbol.apply("submittedAsLanguage").asInstanceOf[Symbol @@ String("submittedAsLanguage")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("submittedAsLanguage")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("country")]](scala.Symbol.apply("country").asInstanceOf[Symbol @@ String("country")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("country")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("contentTranslations")]](scala.Symbol.apply("contentTranslations").asInstanceOf[Symbol @@ String("contentTranslations")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("contentTranslations")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("content")]](scala.Symbol.apply("content").asInstanceOf[Symbol @@ String("content")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("content")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$27.this.inst$macro$26)).asInstanceOf[io.circe.generic.decoding.DerivedDecoder[org.make.api.question.CreateInitialProposalRequest]]; <stable> <accessor> lazy val inst$macro$26: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForcontent: io.circe.Decoder[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] = io.circe.refined.`package`.refinedDecoder[String, eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml], eu.timepit.refined.api.Refined](circe.this.Decoder.decodeString, boolean.this.And.andValidate[String, eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]], this.R, org.make.core.Validation.ValidHtml, this.R](boolean.this.And.andValidate[String, eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength], this.R, eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength], this.R](collection.this.Size.sizeValidate[String, eu.timepit.refined.numeric.GreaterEqual[org.make.core.FrontConfiguration.defaultProposalMinLength], this.R](boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Less[org.make.core.FrontConfiguration.defaultProposalMinLength], this.R](numeric.this.Less.lessValidate[Int, org.make.core.FrontConfiguration.defaultProposalMinLength](internal.this.WitnessAs.singletonWitnessAs[Int, org.make.core.FrontConfiguration.defaultProposalMinLength](Witness.mkWitness[Int(12)](12.asInstanceOf[Int(12)])), math.this.Numeric.IntIsIntegral)), ((s: String) => scala.Predef.wrapString(s))), collection.this.Size.sizeValidate[String, eu.timepit.refined.numeric.Interval.Closed[shapeless.nat._0,org.make.core.BusinessConfig.defaultProposalMaxLength], this.R](boolean.this.And.andValidate[Int, eu.timepit.refined.numeric.GreaterEqual[shapeless.nat._0], this.R, eu.timepit.refined.numeric.LessEqual[org.make.core.BusinessConfig.defaultProposalMaxLength], this.R](boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Less[shapeless.nat._0], this.R](numeric.this.Less.lessValidate[Int, shapeless.nat._0](internal.this.WitnessAs.natWitnessAs[Int, shapeless.nat._0](shapeless.this.Witness.witness0, nat.this.ToInt.toInt0, math.this.Numeric.IntIsIntegral), math.this.Numeric.IntIsIntegral)), boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Greater[org.make.core.BusinessConfig.defaultProposalMaxLength], this.R](numeric.this.Greater.greaterValidate[Int, org.make.core.BusinessConfig.defaultProposalMaxLength](internal.this.WitnessAs.singletonWitnessAs[Int, org.make.core.BusinessConfig.defaultProposalMaxLength](Witness.mkWitness[Int(140)](140.asInstanceOf[Int(140)])), math.this.Numeric.IntIsIntegral))), ((s: String) => scala.Predef.wrapString(s)))), org.make.core.Validation.validateHtml), api.this.RefType.refinedRefType); private[this] val circeGenericDecoderForcontentTranslations: io.circe.Decoder[Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] = circe.this.Decoder.decodeOption[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]](technical.this.Multilingual.circeDecoder[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]](io.circe.refined.`package`.refinedDecoder[String, eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml], eu.timepit.refined.api.Refined](circe.this.Decoder.decodeString, boolean.this.And.andValidate[String, eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]], this.R, org.make.core.Validation.ValidHtml, this.R](boolean.this.And.andValidate[String, eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength], this.R, eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength], this.R](collection.this.Size.sizeValidate[String, eu.timepit.refined.numeric.GreaterEqual[org.make.core.FrontConfiguration.defaultProposalMinLength], this.R](boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Less[org.make.core.FrontConfiguration.defaultProposalMinLength], this.R](numeric.this.Less.lessValidate[Int, org.make.core.FrontConfiguration.defaultProposalMinLength](internal.this.WitnessAs.singletonWitnessAs[Int, org.make.core.FrontConfiguration.defaultProposalMinLength](Witness.mkWitness[Int(12)](12.asInstanceOf[Int(12)])), math.this.Numeric.IntIsIntegral)), ((s: String) => scala.Predef.wrapString(s))), collection.this.Size.sizeValidate[String, eu.timepit.refined.numeric.Interval.Closed[shapeless.nat._0,org.make.core.BusinessConfig.defaultProposalTranslationMaxLength], this.R](boolean.this.And.andValidate[Int, eu.timepit.refined.numeric.GreaterEqual[shapeless.nat._0], this.R, eu.timepit.refined.numeric.LessEqual[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength], this.R](boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Less[shapeless.nat._0], this.R](numeric.this.Less.lessValidate[Int, shapeless.nat._0](internal.this.WitnessAs.natWitnessAs[Int, shapeless.nat._0](shapeless.this.Witness.witness0, nat.this.ToInt.toInt0, math.this.Numeric.IntIsIntegral), math.this.Numeric.IntIsIntegral)), boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Greater[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength], this.R](numeric.this.Greater.greaterValidate[Int, org.make.core.BusinessConfig.defaultProposalTranslationMaxLength](internal.this.WitnessAs.singletonWitnessAs[Int, org.make.core.BusinessConfig.defaultProposalTranslationMaxLength](Witness.mkWitness[Int(200)](200.asInstanceOf[Int(200)])), math.this.Numeric.IntIsIntegral))), ((s: String) => scala.Predef.wrapString(s)))), org.make.core.Validation.validateHtml), api.this.RefType.refinedRefType))); private[this] val circeGenericDecoderForcountry: io.circe.Decoder[org.make.core.reference.Country] = reference.this.Country.countryDecoder; private[this] val circeGenericDecoderForsubmittedAsLanguage: io.circe.Decoder[org.make.core.reference.Language] = reference.this.Language.LanguageDecoder; private[this] val circeGenericDecoderForauthor: io.circe.Decoder[org.make.api.question.AuthorRequest] = question.this.AuthorRequest.decoder; private[this] val circeGenericDecoderFortags: io.circe.Decoder[Seq[org.make.core.tag.TagId]] = circe.this.Decoder.decodeSeq[org.make.core.tag.TagId](tag.this.TagId.tagIdDecoder); final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("content"), eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]], shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontent.tryDecode(c.downField("content")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("contentTranslations"), Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]], shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontentTranslations.tryDecode(c.downField("contentTranslations")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("country"), org.make.core.reference.Country, shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcountry.tryDecode(c.downField("country")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("submittedAsLanguage"), org.make.core.reference.Language, shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForsubmittedAsLanguage.tryDecode(c.downField("submittedAsLanguage")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("author"), org.make.api.question.AuthorRequest, shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForauthor.tryDecode(c.downField("author")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("tags"), Seq[org.make.core.tag.TagId], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortags.tryDecode(c.downField("tags")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("content"), eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]], shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontent.tryDecodeAccumulating(c.downField("content")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("contentTranslations"), Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]], shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontentTranslations.tryDecodeAccumulating(c.downField("contentTranslations")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("country"), org.make.core.reference.Country, shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcountry.tryDecodeAccumulating(c.downField("country")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("submittedAsLanguage"), org.make.core.reference.Language, shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForsubmittedAsLanguage.tryDecodeAccumulating(c.downField("submittedAsLanguage")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("author"), org.make.api.question.AuthorRequest, shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForauthor.tryDecodeAccumulating(c.downField("author")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("tags"), Seq[org.make.core.tag.TagId], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortags.tryDecodeAccumulating(c.downField("tags")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("content"),eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalMaxLength]],org.make.core.Validation.ValidHtml]]] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.boolean.And[eu.timepit.refined.boolean.And[eu.timepit.refined.collection.MinSize[org.make.core.FrontConfiguration.defaultProposalMinLength],eu.timepit.refined.collection.MaxSize[org.make.core.BusinessConfig.defaultProposalTranslationMaxLength]],org.make.core.Validation.ValidHtml]]]]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),org.make.core.reference.Country] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),org.make.core.reference.Language] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.question.AuthorRequest] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.tag.TagId]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$27().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.decoding.DerivedDecoder[org.make.api.question.CreateInitialProposalRequest]](inst$macro$28) })
774 44230 31830 - 31867 ApplyToImplicitArgs io.circe.generic.semiauto.deriveDecoder io.circe.generic.semiauto.deriveDecoder[org.make.api.question.InjectProposalsRequest]({ val inst$macro$8: io.circe.generic.decoding.DerivedDecoder[org.make.api.question.InjectProposalsRequest] = { final class anon$lazy$macro$7 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$7 = { anon$lazy$macro$7.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.decoding.DerivedDecoder[org.make.api.question.InjectProposalsRequest] = decoding.this.DerivedDecoder.deriveDecoder[org.make.api.question.InjectProposalsRequest, shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.question.InjectProposalsRequest, (Symbol @@ String("anonymous")) :: shapeless.HNil, Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.question.InjectProposalsRequest, (Symbol @@ String("anonymous")) :: shapeless.HNil](::.apply[Symbol @@ String("anonymous"), shapeless.HNil.type](scala.Symbol.apply("anonymous").asInstanceOf[Symbol @@ String("anonymous")], HNil)), Generic.instance[org.make.api.question.InjectProposalsRequest, Boolean :: shapeless.HNil](((x0$3: org.make.api.question.InjectProposalsRequest) => x0$3 match { case (anonymous: Boolean): org.make.api.question.InjectProposalsRequest((anonymous$macro$5 @ _)) => ::.apply[Boolean, shapeless.HNil.type](anonymous$macro$5, HNil).asInstanceOf[Boolean :: shapeless.HNil] }), ((x0$4: Boolean :: shapeless.HNil) => x0$4 match { case (head: Boolean, tail: shapeless.HNil): Boolean :: shapeless.HNil((anonymous$macro$4 @ _), HNil) => question.this.InjectProposalsRequest.apply(anonymous$macro$4) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("anonymous"), Boolean, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("anonymous")]](scala.Symbol.apply("anonymous").asInstanceOf[Symbol @@ String("anonymous")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("anonymous")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$7.this.inst$macro$6)).asInstanceOf[io.circe.generic.decoding.DerivedDecoder[org.make.api.question.InjectProposalsRequest]]; <stable> <accessor> lazy val inst$macro$6: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForanonymous: io.circe.Decoder[Boolean] = circe.this.Decoder.decodeBoolean; final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("anonymous"), Boolean, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForanonymous.tryDecode(c.downField("anonymous")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("anonymous"), Boolean, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForanonymous.tryDecodeAccumulating(c.downField("anonymous")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("anonymous"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$7().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.decoding.DerivedDecoder[org.make.api.question.InjectProposalsRequest]](inst$macro$8) })