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 37149 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 46354 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)
276 50490 9628 - 9641 Select org.make.api.question.ModerationQuestionApi.listQuestions org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.listQuestions
276 43701 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 39260 9741 - 9756 Select org.make.api.question.ModerationQuestionApi.injectProposals org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.injectProposals
276 30578 9658 - 9676 Select org.make.api.question.ModerationQuestionApi.addInitialProposal org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.addInitialProposal
276 32707 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 46033 9704 - 9723 Select org.make.api.question.ModerationQuestionApi.uploadQuestionImage org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.uploadQuestionImage
276 31663 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 36143 9679 - 9701 Select org.make.api.question.ModerationQuestionApi.refuseInitialProposals org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.refuseInitialProposals
276 39498 9628 - 9655 Apply akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~ org.make.api.question.moderationquestionapitest ModerationQuestionApi.this._enhanceRouteWithConcatenation(ModerationQuestionApi.this.listQuestions).~(ModerationQuestionApi.this.getQuestion)
276 50243 9726 - 9738 Select org.make.api.question.ModerationQuestionApi.uploadReport org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.uploadReport
276 46316 9644 - 9655 Select org.make.api.question.ModerationQuestionApi.getQuestion org.make.api.question.moderationquestionapitest ModerationQuestionApi.this.getQuestion
308 33869 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 44437 10705 - 10709 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
309 46064 10736 - 10736 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
309 44200 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])))
309 41987 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 35895 10723 - 10735 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
309 37668 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 50976 10765 - 10784 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals")
309 31692 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 39294 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 46863 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 36638 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 32747 10738 - 10749 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
310 50738 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 42612 10823 - 10823 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
310 32784 10824 - 10864 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationAddInitialProposalToQuestion"
310 49558 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 37703 10810 - 10810 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
310 45828 10810 - 10810 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
311 39331 10896 - 10906 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
311 30903 10896 - 10896 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
311 36501 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])))))))))) }))))))))
312 35847 10955 - 10986 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)
312 44238 10972 - 10985 Select scalaoauth2.provider.AuthInfo.user userAuth.user
312 40347 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])))))))))) }))))))
313 48753 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])))))))))) })))))
313 31934 11003 - 11016 Select akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest DefaultModerationQuestionApi.this.decodeRequest
314 50774 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 35453 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 45863 11044 - 11044 Select org.make.api.question.CreateInitialProposalRequest.decoder question.this.CreateInitialProposalRequest.decoder
314 37465 11044 - 11044 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller DefaultModerationQuestionComponent.this.unmarshaller[org.make.api.question.CreateInitialProposalRequest](question.this.CreateInitialProposalRequest.decoder)
314 38478 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 30938 11041 - 11041 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.api.question.CreateInitialProposalRequest]
314 42646 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)))
315 43997 11107 - 11146 Apply org.make.api.question.QuestionService.getQuestion DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)
315 42276 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 35885 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 31973 11147 - 11147 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.question.Question]
317 48937 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 35926 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 37498 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))
320 45778 11377 - 11384 Select eu.timepit.refined.api.Refined.value x$2.value
321 50807 11426 - 11444 TypeApply org.make.core.technical.Multilingual.empty org.make.core.technical.Multilingual.empty[String]
322 42406 11490 - 11517 Select org.make.api.question.CreateInitialProposalRequest.submittedAsLanguage request.submittedAsLanguage
322 38517 11519 - 11540 Select eu.timepit.refined.api.Refined.value request.content.value
322 31408 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)
323 44031 11569 - 11579 Literal <nosymbol> "contents"
327 41147 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 45035 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$22 org.make.core.proposal.SearchFilters.apply$default$22
328 36978 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$1 org.make.core.proposal.SearchFilters.apply$default$1
328 36422 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$11 org.make.core.proposal.SearchFilters.apply$default$11
328 50322 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$2 org.make.core.proposal.SearchQuery.apply$default$2
328 31194 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$9 org.make.core.proposal.SearchFilters.apply$default$9
328 44511 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$6 org.make.core.proposal.SearchQuery.apply$default$6
328 31182 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$5 org.make.core.proposal.SearchQuery.apply$default$5
328 50525 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$15 org.make.core.proposal.SearchFilters.apply$default$15
328 36218 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$30 org.make.core.proposal.SearchFilters.apply$default$30
328 48976 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$2 org.make.core.proposal.SearchFilters.apply$default$2
328 38030 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$14 org.make.core.proposal.SearchFilters.apply$default$14
328 48925 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$21 org.make.core.proposal.SearchFilters.apply$default$21
328 41113 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 43778 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$29 org.make.core.proposal.SearchFilters.apply$default$29
328 42937 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$16 org.make.core.proposal.SearchFilters.apply$default$16
328 49992 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$31 org.make.core.proposal.SearchFilters.apply$default$31
328 34611 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$4 org.make.core.proposal.SearchQuery.apply$default$4
328 50563 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$24 org.make.core.proposal.SearchFilters.apply$default$24
328 37993 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$4 org.make.core.proposal.SearchFilters.apply$default$4
328 30654 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$28 org.make.core.proposal.SearchFilters.apply$default$28
328 43457 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$25 org.make.core.proposal.SearchFilters.apply$default$25
328 36181 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$20 org.make.core.proposal.SearchFilters.apply$default$20
328 43502 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$7 org.make.core.proposal.SearchFilters.apply$default$7
328 50760 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$5 org.make.core.proposal.SearchFilters.apply$default$5
328 43493 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$3 org.make.core.proposal.SearchQuery.apply$default$3
328 49480 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$12 org.make.core.proposal.SearchFilters.apply$default$12
328 50027 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 43989 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$10 org.make.core.proposal.SearchFilters.apply$default$10
328 31231 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$18 org.make.core.proposal.SearchFilters.apply$default$18
328 35128 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$17 org.make.core.proposal.SearchFilters.apply$default$17
328 45571 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$3 org.make.core.proposal.SearchFilters.apply$default$3
328 35388 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$8 org.make.core.proposal.SearchFilters.apply$default$8
328 44019 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$19 org.make.core.proposal.SearchFilters.apply$default$19
328 45607 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$13 org.make.core.proposal.SearchFilters.apply$default$13
328 37245 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$23 org.make.core.proposal.SearchFilters.apply$default$23
328 35974 11738 - 11738 Select org.make.core.proposal.SearchQuery.apply$default$7 org.make.core.proposal.SearchQuery.apply$default$7
328 34577 11760 - 11760 Select org.make.core.proposal.SearchFilters.apply$default$27 org.make.core.proposal.SearchFilters.apply$default$27
329 37955 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 51332 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 45817 11833 - 11848 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)
330 31445 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 39047 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)
330 44758 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 42443 11928 - 11960 Select org.make.core.proposal.ProposalType.ProposalTypeInitial org.make.core.proposal.ProposalType.ProposalTypeInitial
331 37981 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 37737 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 51047 12072 - 12072 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[Long]
334 50834 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]))))))))))
335 41700 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 43252 12387 - 12418 TypeApply scala.collection.IterableOnceOps.toSet question.languages.toList.toSet[org.make.core.reference.Language]
338 35676 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 31220 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 36170 12505 - 12520 ApplyImplicitView org.make.core.Validation.AnyWithParsers org.make.core.Validation.AnyWithParsers[org.make.core.reference.Country](request.country)
340 44270 12505 - 12520 Select org.make.api.question.CreateInitialProposalRequest.country request.country
341 50065 12558 - 12583 Select cats.data.NonEmptyList.toList question.countries.toList
341 41661 12585 - 12594 Literal <nosymbol> "country"
341 37775 12550 - 12550 Select org.make.core.Validation.AnyWithParsers.toOneOf$default$3 qual$1.toOneOf$default$3
341 50808 12505 - 12595 Apply org.make.core.Validation.AnyWithParsers.toOneOf qual$1.toOneOf(x$32, "country", x$34)
342 42682 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 36206 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"))
344 48195 12739 - 12741 Literal <nosymbol> 20L
344 44309 12743 - 12777 Apply scala.Some.apply scala.Some.apply[String]("Too many initial proposals")
344 35714 12726 - 12737 Literal <nosymbol> "proposals"
345 49204 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 35665 12858 - 12858 TypeApply cats.instances.EitherInstances.catsStdInstancesForEither cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]
346 42479 12858 - 12858 TypeApply cats.instances.EitherInstances.catsStdInstancesForEither cats.implicits.catsStdInstancesForEither[org.make.core.ValidationFailedError]
349 50344 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 37531 13040 - 13061 Select eu.timepit.refined.api.Refined.value request.content.value
351 42708 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))
351 50307 13145 - 13152 Select eu.timepit.refined.api.Refined.value x$4.value
351 35627 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))))
353 48235 13230 - 13243 Select org.make.core.Validation.OneOf.value country.value
354 44067 13277 - 13304 Select org.make.api.question.CreateInitialProposalRequest.submittedAsLanguage request.submittedAsLanguage
355 35959 13338 - 13343 Literal <nosymbol> false
356 49235 13377 - 13389 Select org.make.api.question.CreateInitialProposalRequest.tags request.tags
357 42155 13423 - 13437 Select org.make.api.question.CreateInitialProposalRequest.author request.author
358 33880 13471 - 13491 Select org.make.core.auth.UserRights.userId userAuth.user.userId
361 35997 13615 - 13615 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
361 48683 13603 - 13611 Apply akka.http.scaladsl.server.directives.RouteDirectives.failWith DefaultModerationQuestionApi.this.failWith(error)
361 41948 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]))))))
361 33831 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 43559 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
362 44299 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]))
362 42191 13701 - 13731 Apply org.make.api.proposal.ProposalIdResponse.apply org.make.api.proposal.ProposalIdResponse.apply(proposalId)
362 48716 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 33293 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 49810 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 35748 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 35419 13698 - 13698 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.proposal.ProposalIdResponse]
362 50096 13698 - 13698 TypeApply scala.Predef.$conforms scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success]
362 49773 13678 - 13697 Select akka.http.scaladsl.model.StatusCodes.Created akka.http.scaladsl.model.StatusCodes.Created
362 42508 13698 - 13698 Select org.make.api.proposal.ProposalIdResponse.codec proposal.this.ProposalIdResponse.codec
374 40165 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 50599 13938 - 13942 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
375 36251 13998 - 14017 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("initial-proposals")
375 50633 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 35210 13971 - 13982 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
375 40387 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 48016 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 33616 14020 - 14028 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("refuse")
375 42465 13956 - 13968 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
375 40138 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 34647 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 47982 13969 - 13969 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
375 48999 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 43526 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 48302 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 42024 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])
376 35734 14068 - 14102 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationRefuseInitialProposals"
376 49033 14054 - 14054 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
376 33655 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 41938 14054 - 14054 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
376 46663 14067 - 14067 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
376 34990 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 42788 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)))))) })))
377 42264 14134 - 14144 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOAuth2
377 34679 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]]
378 46652 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 40177 14193 - 14224 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)
378 48470 14210 - 14223 Select scalaoauth2.provider.AuthInfo.user userAuth.user
382 36804 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 34119 14545 - 14545 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
383 41978 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
383 33912 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 48796 14467 - 14544 Apply org.make.api.proposal.ProposalService.searchInIndex DefaultModerationQuestionComponent.this.proposalService.searchInIndex(query, requestContext)
385 42301 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))
385 34153 14652 - 14652 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
385 47470 14645 - 14649 Select org.make.core.proposal.indexed.IndexedProposal.id x$6.id
385 46618 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 41734 14652 - 14652 TypeApply scala.collection.BuildFromLowPriority2.buildFromIterableOps collection.this.BuildFrom.buildFromIterableOps[Seq, org.make.core.proposal.ProposalId, Option[org.make.api.proposal.ModerationProposalResponse]]
387 48831 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 35196 14803 - 14823 Select org.make.core.auth.UserRights.userId userAuth.user.userId
391 31792 14889 - 14972 Apply org.make.api.proposal.RefuseProposalRequest.apply org.make.api.proposal.RefuseProposalRequest.apply(false, scala.Some.apply[String]("Other"))
391 40640 14958 - 14971 Apply scala.Some.apply scala.Some.apply[String]("Other")
391 48505 14935 - 14940 Literal <nosymbol> false
394 41769 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))))
394 43359 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 35236 15036 - 15036 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]
395 40130 15096 - 15096 Select akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode marshalling.this.Marshaller.fromStatusCode
395 32533 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 49340 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 48268 15084 - 15105 Select akka.http.scaladsl.model.StatusCodes.NoContent akka.http.scaladsl.model.StatusCodes.NoContent
411 33401 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 32292 15532 - 15565 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply(contentOriginalLanguage)
412 48782 15503 - 15566 Apply scala.collection.SetOps.contains t.providedLanguages.contains(org.make.core.reference.Language.apply(contentOriginalLanguage))
412 41529 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 46691 15849 - 15928 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[String]("content", "contentOriginalLanguage", "firstName", "age", "externalUserId")
420 48061 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 34432 15981 - 16031 Apply scala.Boolean.|| notLanguagesHeaders.contains[String](key).||(value.isEmpty())
421 38839 16018 - 16031 Apply java.lang.String.isEmpty value.isEmpty()
423 39932 16066 - 16075 Select scala.collection.IterableOnceOps.isEmpty t.isEmpty
423 32326 16079 - 16083 Select scala.None scala.None
424 49842 16115 - 16122 Apply scala.Some.apply scala.Some.apply[scala.collection.immutable.Map[String,String]](t)
447 40964 16689 - 16728 Select org.make.core.BusinessConfig.defaultProposalMaxLength org.make.core.BusinessConfig.defaultProposalMaxLength
448 33436 16759 - 16802 Select org.make.core.FrontConfiguration.defaultProposalMinLength org.make.core.FrontConfiguration.defaultProposalMinLength
449 46452 16889 - 16912 Apply org.make.core.technical.Multilingual.fromMap org.make.core.technical.Multilingual.fromMap[String](t)
449 39641 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)))
450 48336 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 35489 16930 - 16970 Apply scala.collection.MapOps.getOrElse line.getOrElse[String]("content", "")
453 49876 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 48254 17040 - 17049 Literal <nosymbol> "content"
456 39963 17063 - 17067 Select scala.None scala.None
457 32087 17081 - 17167 Apply scala.Some.apply scala.Some.apply[String](("content should be less than ".+(maxProposalLength).+(" characters on line ").+(lineNumber): String))
460 41004 17189 - 17229 Apply scala.collection.MapOps.getOrElse line.getOrElse[String]("content", "")
461 35528 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 33901 17299 - 17308 Literal <nosymbol> "content"
464 46489 17322 - 17326 Select scala.None scala.None
465 39393 17340 - 17426 Apply scala.Some.apply scala.Some.apply[String](("content should be more than ".+(minProposalLength).+(" characters on line ").+(lineNumber): String))
467 32892 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 48294 17482 - 17507 Literal <nosymbol> "contentOriginalLanguage"
469 40419 17519 - 17583 Apply scala.Some.apply scala.Some.apply[String](("contentOriginalLanguage is required on line ".+(lineNumber): String))
472 39430 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 45925 17676 - 17699 TypeApply scala.collection.IterableOnceOps.toSet questionLanguages.toSet[org.make.core.reference.Language]
475 41515 17748 - 17773 Literal <nosymbol> "contentOriginalLanguage"
475 46933 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)))
475 33938 17779 - 17790 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply(x$8)
478 40456 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 35566 17860 - 17871 Literal <nosymbol> "firstName"
478 48048 17873 - 17923 Apply scala.Some.apply scala.Some.apply[String](("firstName is required on line ".+(lineNumber): String))
480 45965 17953 - 17953 Select cats.instances.OptionInstances.catsStdInstancesForOption cats.implicits.catsStdInstancesForOption
480 32037 17934 - 17960 Apply scala.collection.MapOps.get line.get("age")
481 33691 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 46443 17980 - 17980 TypeApply cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
481 31035 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 41552 17994 - 18078 Apply scala.Some.apply scala.Some.apply[String](("age should be over than ".+(org.make.core.Validation.minLegalAgeForExternalProposal).+(" on line ").+(lineNumber): String))
481 38585 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])
482 40214 18131 - 18186 Apply scala.Some.apply scala.Some.apply[String](("externalUserId is required on line ".+(lineNumber): String))
482 48087 18113 - 18129 Literal <nosymbol> "externalUserId"
482 32078 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 45394 18197 - 18223 Apply scala.collection.MapOps.get line.get("externalUserId")
484 41314 18255 - 18257 Literal <nosymbol> ()
484 33731 18255 - 18266 TypeApply cats.syntax.ValidatedIdOpsBinCompat0.validNec cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing]
486 46199 18306 - 18322 Apply scala.collection.MapOps.get userData.get(id)
487 38623 18392 - 18403 Literal <nosymbol> "firstName"
487 31785 18382 - 18424 Select scala.Boolean.unary_! line.get("firstName").contains[String](firstName).unary_!
488 45142 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 47843 18479 - 18490 Literal <nosymbol> "firstName"
490 39716 18510 - 18528 Literal <nosymbol> "unexpected_value"
491 32111 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 42049 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 33480 18717 - 18739 Apply java.lang.Object.!= line.get("age").!=(age)
494 48574 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 46235 18794 - 18799 Literal <nosymbol> "age"
496 38657 18819 - 18837 Literal <nosymbol> "unexpected_value"
497 31553 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 40779 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 31870 19043 - 19074 Apply scala.collection.MapOps.getOrElse line.getOrElse[String]("firstName", "")
500 38099 19034 - 19092 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.UserData.apply DefaultModerationQuestionApi.this.UserData.apply(line.getOrElse[String]("firstName", ""), line.get("age"))
500 33679 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 46274 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 45954 19076 - 19091 Apply scala.collection.MapOps.get line.get("age")
501 38415 19110 - 19112 Literal <nosymbol> ()
501 31587 19110 - 19121 TypeApply cats.syntax.ValidatedIdOpsBinCompat0.validNec cats.implicits.catsSyntaxValidatedIdBinCompat0[Unit](()).validNec[Nothing]
504 33721 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 45710 19154 - 19154 TypeApply cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
504 31905 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 40201 19154 - 19154 TypeApply cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
504 38134 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 36163 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 46722 19286 - 19290 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
509 31338 19319 - 19330 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
509 46757 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 32360 19346 - 19364 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("inject-proposals")
509 45749 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 38368 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 33466 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]))
509 40236 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 39216 19304 - 19316 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
509 47832 19317 - 19317 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
509 44264 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 37885 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])
510 31377 19404 - 19431 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationInjectProposals"
510 31858 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 48153 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 39997 19390 - 19390 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
510 44163 19390 - 19390 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
510 44889 19403 - 19403 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
511 37381 19463 - 19473 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOAuth2
511 33507 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 35669 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 38405 19522 - 19553 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(userAuth.user)
512 46521 19539 - 19552 Select scalaoauth2.provider.AuthInfo.user userAuth.user
512 43248 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]])))) })) })) } })))))) })))))
513 40034 19610 - 19610 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.question.Question]
513 30511 19570 - 19609 Apply org.make.api.question.QuestionService.getQuestion DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)
513 51044 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 43920 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
514 37732 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 44924 19662 - 19662 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[akka.http.scaladsl.server.RequestContext]
514 32927 19662 - 19683 Select akka.http.scaladsl.server.directives.BasicDirectives.extractRequestContext DefaultModerationQuestionApi.this.extractRequestContext
515 38121 19753 - 19769 Select akka.http.scaladsl.server.RequestContext.materializer ctx.materializer
516 39466 19797 - 19797 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[String]
516 47325 19788 - 19805 Apply akka.http.scaladsl.server.directives.FormFieldDirectivesInstances.formField DefaultModerationQuestionApi.this.formField(FormFieldDirectives.this.FieldSpec.forString("body"))
516 42160 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 50455 19798 - 19804 ApplyImplicitView akka.http.scaladsl.server.directives.FormFieldDirectives.FieldSpec.forString FormFieldDirectives.this.FieldSpec.forString("body")
517 44643 19854 - 19854 ApplyToImplicitArgs de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.fromByteStringUnmarshaller DefaultModerationQuestionComponent.this.fromByteStringUnmarshaller[org.make.api.question.InjectProposalsRequest](question.this.InjectProposalsRequest.decoder)
517 37875 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 51183 19879 - 19879 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.api.question.InjectProposalsRequest]
517 32964 19854 - 19854 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
517 50022 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 31327 19854 - 19854 Select org.make.api.question.InjectProposalsRequest.decoder question.this.InjectProposalsRequest.decoder
517 44958 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 39796 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))
518 39502 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])]
518 47073 19926 - 19949 Apply akka.http.scaladsl.server.directives.FileUploadDirectives.fileUpload DefaultModerationQuestionApi.this.fileUpload("proposals")
518 35966 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]])))) })) })) } }))
520 50947 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 37913 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 31361 20127 - 20145 Select akka.http.scaladsl.server.directives.FileInfo.fieldName fileInfo.fieldName
523 44406 20177 - 20193 Literal <nosymbol> "invalid_format"
524 32712 20225 - 20280 Apply java.lang.Object.== fileInfo.contentType.mediaType.==(akka.http.scaladsl.model.MediaTypes.text/csv)
524 39987 20259 - 20280 Select akka.http.scaladsl.model.MediaTypes.text/csv akka.http.scaladsl.model.MediaTypes.text/csv
525 46035 20312 - 20332 Literal <nosymbol> "File must be a csv"
538 46512 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 31117 21026 - 21026 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[Seq[Map[String,String]]]
539 44505 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]])))) })) }))
539 39542 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
540 44442 21094 - 21129 TypeApply scala.collection.MapFactory.Delegate.empty scala.collection.mutable.Map.empty[String, DefaultModerationQuestionApi.this.UserData]
541 36063 21160 - 21185 Select scala.collection.IterableOnceOps.toList lines.zipWithIndex.toList
541 31225 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 32149 21312 - 21321 Apply scala.Int.+ index.+(2)
544 46275 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 37672 21450 - 21460 Apply java.lang.String.trim value.trim()
545 50444 21439 - 21461 Apply scala.Tuple2.apply scala.Tuple2.apply[String, String](key.trim(), value.trim())
545 45533 21440 - 21448 Apply java.lang.String.trim key.trim()
548 30539 21585 - 21656 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.validateLine DefaultModerationQuestionApi.this.validateLine(trimLine, userData, question.languages.toList, lineNumber)
548 38694 21618 - 21643 Select cats.data.NonEmptyList.toList question.languages.toList
554 44206 22057 - 22079 Select org.make.core.Validation.NonEmptyString.value originalLanguage.value
554 36098 22015 - 22092 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.getDuplicateLanguageWarning DefaultModerationQuestionApi.this.getDuplicateLanguageWarning(translations, originalLanguage.value, lineNumber)
556 41912 22182 - 22182 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
556 37745 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)
560 32184 22471 - 22492 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[Long](0L)
560 49420 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 36138 22458 - 22458 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
563 50530 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 35881 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$5 org.make.core.proposal.SearchQuery.apply$default$5
564 38474 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$2 org.make.core.proposal.SearchQuery.apply$default$2
564 43994 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$4 org.make.core.proposal.SearchQuery.apply$default$4
564 31658 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$5 org.make.core.proposal.SearchFilters.apply$default$5
564 49099 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$20 org.make.core.proposal.SearchFilters.apply$default$20
564 43115 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$15 org.make.core.proposal.SearchFilters.apply$default$15
564 36631 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$19 org.make.core.proposal.SearchFilters.apply$default$19
564 49132 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$29 org.make.core.proposal.SearchFilters.apply$default$29
564 39254 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$4 org.make.core.proposal.SearchFilters.apply$default$4
564 44164 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$8 org.make.core.proposal.SearchFilters.apply$default$8
564 38189 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 31415 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$17 org.make.core.proposal.SearchFilters.apply$default$17
564 48895 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$6 org.make.core.proposal.SearchQuery.apply$default$6
564 42606 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$24 org.make.core.proposal.SearchFilters.apply$default$24
564 44959 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$30 org.make.core.proposal.SearchFilters.apply$default$30
564 44995 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$7 org.make.core.proposal.SearchQuery.apply$default$7
564 36394 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$28 org.make.core.proposal.SearchFilters.apply$default$28
564 37662 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$12 org.make.core.proposal.SearchFilters.apply$default$12
564 50967 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$13 org.make.core.proposal.SearchFilters.apply$default$13
564 44196 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$18 org.make.core.proposal.SearchFilters.apply$default$18
564 36597 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$9 org.make.core.proposal.SearchFilters.apply$default$9
564 37458 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$31 org.make.core.proposal.SearchFilters.apply$default$31
564 44232 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$27 org.make.core.proposal.SearchFilters.apply$default$27
564 45784 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$11 org.make.core.proposal.SearchFilters.apply$default$11
564 42653 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$3 org.make.core.proposal.SearchFilters.apply$default$3
564 45823 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$21 org.make.core.proposal.SearchFilters.apply$default$21
564 50937 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$2 org.make.core.proposal.SearchFilters.apply$default$2
564 31450 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$26 org.make.core.proposal.SearchFilters.apply$default$26
564 32742 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$10 org.make.core.proposal.SearchFilters.apply$default$10
564 50733 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$23 org.make.core.proposal.SearchFilters.apply$default$23
564 37697 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$22 org.make.core.proposal.SearchFilters.apply$default$22
564 39288 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$16 org.make.core.proposal.SearchFilters.apply$default$16
564 50766 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 31647 22722 - 22722 Select org.make.core.proposal.SearchQuery.apply$default$3 org.make.core.proposal.SearchQuery.apply$default$3
564 38163 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$1 org.make.core.proposal.SearchFilters.apply$default$1
564 38435 22744 - 22744 Select org.make.core.proposal.SearchFilters.apply$default$25 org.make.core.proposal.SearchFilters.apply$default$25
565 37104 22819 - 22853 Apply org.make.core.proposal.ContentSearchFilter.apply org.make.core.proposal.ContentSearchFilter.apply(content.value)
565 45988 22839 - 22852 Select org.make.core.Validation.StringWithMaxLength.value content.value
565 50197 22819 - 22858 Select cats.syntax.OptionIdOps.some cats.implicits.catsSyntaxOptionId[org.make.core.proposal.ContentSearchFilter](org.make.core.proposal.ContentSearchFilter.apply(content.value)).some
566 31622 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
566 46309 22942 - 22957 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.question.QuestionId](questionId)
566 39490 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))
567 44395 23044 - 23052 Select org.make.core.user.User.userId u.userId
567 36135 23040 - 23053 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.user.UserId](u.userId)
567 46027 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 31938 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 42363 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 43981 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 31187 23302 - 23302 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
575 36383 23501 - 23501 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
575 48970 23501 - 23501 ApplyToImplicitArgs cats.instances.FutureInstances.catsStdInstancesForFuture cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)
575 44477 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)
576 42400 23551 - 23564 Select org.make.core.Validation.StringWithMaxLength.value content.value
579 34545 23777 - 23800 Select cats.data.NonEmptyList.head question.countries.head
580 44718 23872 - 23904 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply(originalLanguage.value)
580 31402 23881 - 23903 Select org.make.core.Validation.NonEmptyString.value originalLanguage.value
581 36938 23968 - 23985 Select org.make.api.question.InjectProposalsRequest.anonymous request.anonymous
582 48931 24052 - 24072 Select org.make.core.Validation.NonEmptyString.value externalUserId.value
583 34582 24131 - 24539 Apply org.make.api.question.AuthorRequest.apply AuthorRequest.apply(x$33, x$32, x$34, x$35, x$36)
584 45810 24208 - 24223 Select org.make.core.Validation.NonEmptyString.value firstName.value
586 37950 24347 - 24351 Select scala.None scala.None
587 50721 24416 - 24420 Select scala.None scala.None
588 43462 24485 - 24489 Select scala.None scala.None
590 31439 24601 - 24621 Select org.make.core.auth.UserRights.userId userAuth.user.userId
594 37987 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))
594 45565 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)
595 35383 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 42892 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 50484 24989 - 24993 Select scala.None scala.None
598 34534 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 42931 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)
598 50518 25168 - 25172 Select scala.None scala.None
600 36176 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 47626 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]])))) }))
600 43732 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
601 48917 25301 - 25301 Select scala.Tuple2._1 x$10._1
601 41070 25314 - 25314 Select scala.Tuple2._2 x$10._2
602 37237 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 34571 25471 - 25487 ApplyToImplicitArgs scala.collection.StrictOptimizedIterableOps.flatten warnings.flatten[String](scala.Predef.$conforms[Option[String]])
603 41108 25468 - 25468 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[List[String]]
603 50313 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 50558 25447 - 25467 Select akka.http.scaladsl.model.StatusCodes.Accepted akka.http.scaladsl.model.StatusCodes.Accepted
603 35632 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 42684 25480 - 25480 TypeApply scala.Predef.$conforms scala.Predef.$conforms[Option[String]]
603 37698 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 43488 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 43769 25468 - 25468 TypeApply scala.Predef.$conforms scala.Predef.$conforms[akka.http.scaladsl.model.StatusCodes.Success]
603 49986 25468 - 25468 ApplyToImplicitArgs io.circe.Encoder.encodeList circe.this.Encoder.encodeList[String](circe.this.Encoder.encodeString)
603 47593 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 36210 25468 - 25468 Select io.circe.Encoder.encodeString circe.this.Encoder.encodeString
617 49779 25742 - 25745 Select akka.http.scaladsl.server.directives.MethodDirectives.get org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.get
617 39892 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]])))) })) })))))))))
618 48298 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 35423 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 42196 25759 - 25771 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
618 34082 25774 - 25785 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
618 50802 25772 - 25772 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
618 42676 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])
619 48190 25811 - 25837 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationSearchQuestion"
619 49198 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 35919 25797 - 25797 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
619 44304 25797 - 25797 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
619 41693 25810 - 25810 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
619 34985 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 48510 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 40095 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 34849 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 48229 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 42436 25887 - 25887 TypeApply akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
621 33835 25880 - 25886 Literal <nosymbol> "slug"
621 50300 25880 - 25888 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("slug").?
622 48971 25932 - 25932 Select org.make.core.ParameterExtractors.operationIdFromStringUnmarshaller DefaultModerationQuestionComponent.this.operationIdFromStringUnmarshaller
622 33874 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 42149 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 35952 25902 - 25933 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?
622 40352 25902 - 25915 Literal <nosymbol> "operationId"
623 48677 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 42471 25947 - 25970 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("country").as[org.make.core.reference.Country].?
623 51362 25947 - 25956 Literal <nosymbol> "country"
623 39854 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 35657 25969 - 25969 Select org.make.core.ParameterExtractors.countryFromStringUnmarshaller DefaultModerationQuestionComponent.this.countryFromStringUnmarshaller
624 50089 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 42184 26008 - 26008 Select org.make.core.ParameterExtractors.languageFromStringUnmarshaller DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller
624 49003 25984 - 26009 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("language").as[org.make.core.reference.Language].?
624 37010 25984 - 25994 Literal <nosymbol> "language"
624 34323 26008 - 26008 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationQuestionComponent.this.languageFromStringUnmarshaller)
625 35740 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 35413 26023 - 26055 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?
625 48709 26054 - 26054 Select org.make.core.ParameterExtractors.startFromIntUnmarshaller DefaultModerationQuestionComponent.this.startFromIntUnmarshaller
625 43532 26023 - 26031 Literal <nosymbol> "_start"
625 40301 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)
626 49805 26069 - 26075 Literal <nosymbol> "_end"
626 42269 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 46822 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 34363 26095 - 26095 Select org.make.core.ParameterExtractors.endFromIntUnmarshaller DefaultModerationQuestionComponent.this.endFromIntUnmarshaller
626 41941 26069 - 26096 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?
627 35447 26110 - 26117 Literal <nosymbol> "_sort"
627 40342 26118 - 26118 TypeApply akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
627 48475 26110 - 26119 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_sort").?
627 49551 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 36497 26118 - 26118 ApplyToImplicitArgs akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
628 41982 26133 - 26141 Literal <nosymbol> "_order"
628 42460 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])))
628 33572 26133 - 26153 Select akka.http.scaladsl.common.NameReceptacle.? DefaultModerationQuestionApi.this._string2NR("_order").as[org.make.core.Order].?
628 35203 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 46857 26152 - 26152 ApplyToImplicitArgs org.make.core.ParameterExtractors.enumeratumEnumUnmarshaller DefaultModerationQuestionComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))
629 38800 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 46647 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 36245 26253 - 26263 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
630 48992 26253 - 26253 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
631 33611 26314 - 26350 Apply org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)
631 33906 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]])))) })) })
631 41741 26336 - 26349 Select scalaoauth2.provider.AuthInfo.user userAuth.user
632 43521 26416 - 26455 Apply scala.collection.SeqOps.contains userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)
632 46893 26445 - 26454 Select org.make.core.user.Role.RoleAdmin org.make.core.user.Role.RoleAdmin
633 34641 26477 - 26481 Select scala.None scala.None
633 47724 26477 - 26481 Block scala.None scala.None
635 40133 26530 - 26562 Select org.make.core.auth.UserRights.availableQuestions userAuth.user.availableQuestions
635 50058 26525 - 26563 Block scala.Some.apply scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
635 31998 26525 - 26563 Apply scala.Some.apply scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
637 46657 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 41177 26768 - 26775 Apply scala.collection.SeqFactory.Delegate.apply scala.`package`.Seq.apply[org.make.core.operation.OperationId](op)
639 33648 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 33069 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 40171 27171 - 27171 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
650 48462 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 42258 27257 - 27273 Apply scala.Predef.ArrowAssoc.-> scala.Predef.ArrowAssoc[Int](count).->[Seq[org.make.core.question.Question]](results)
650 35708 27245 - 27245 Select scala.concurrent.ExecutionContext.Implicits.global scala.concurrent.ExecutionContext.Implicits.global
653 39607 27321 - 27321 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac2 util.this.ApplyConverter.hac2[Int, Seq[org.make.core.question.Question]]
653 41763 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 48787 27322 - 27322 TypeApply akka.http.scaladsl.server.util.Tuple.forTuple2 util.this.Tuple.forTuple2[Int, Seq[org.make.core.question.Question]]
653 34112 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]]))
653 47464 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 41695 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]])
655 49882 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 46611 27434 - 27434 Select org.make.api.question.ModerationQuestionResponse.codec question.this.ModerationQuestionResponse.codec
656 34146 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 40124 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 34950 27434 - 27434 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[Seq[org.make.api.question.ModerationQuestionResponse]]
656 32246 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]])))
656 48260 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 39646 27434 - 27434 ApplyToImplicitArgs io.circe.Encoder.encodeSeq circe.this.Encoder.encodeSeq[org.make.api.question.ModerationQuestionResponse](question.this.ModerationQuestionResponse.codec)
657 34436 27460 - 27474 Select akka.http.scaladsl.model.StatusCodes.OK akka.http.scaladsl.model.StatusCodes.OK
658 33108 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()))
658 48500 27520 - 27534 Apply scala.Any.toString count.toString()
658 40633 27504 - 27535 Apply akka.http.scaladsl.model.headers.ModeledCustomHeaderCompanion.apply org.make.api.technical.X-Total-Count.apply(count.toString())
659 41726 27562 - 27607 Apply scala.collection.IterableOps.map results.map[org.make.api.question.ModerationQuestionResponse](((question: org.make.core.question.Question) => ModerationQuestionResponse.apply(question)))
659 49847 27574 - 27606 Apply org.make.api.question.ModerationQuestionResponse.apply ModerationQuestionResponse.apply(question)
670 39424 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]))))))))))))))
670 32287 27777 - 27780 Select akka.http.scaladsl.server.directives.MethodDirectives.get org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.get
671 33943 27807 - 27807 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
671 46928 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 46413 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 34427 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 48054 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 38834 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,)])
671 41522 27809 - 27820 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
671 45056 27794 - 27806 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
672 39927 27873 - 27896 Literal <nosymbol> org.make.api.question.moderationquestionapitest "ModerationGetQuestion"
672 40959 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 33141 27872 - 27872 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
672 33649 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 46123 27859 - 27859 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
672 32042 27859 - 27859 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
673 42053 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 39632 27915 - 27915 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
673 46447 27915 - 27925 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
674 35483 27996 - 28009 Select scalaoauth2.provider.AuthInfo.user userAuth.user
674 45920 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 47480 27974 - 28010 Apply org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole DefaultModerationQuestionComponent.this.requireModerationRole(userAuth.user)
675 39684 28027 - 28066 Apply org.make.api.question.QuestionService.getQuestion DefaultModerationQuestionComponent.this.questionService.getQuestion(questionId)
675 32886 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 32081 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 46160 28067 - 28067 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.question.Question]
676 39389 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 46204 28154 - 28154 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.question.ModerationQuestionResponse]
676 40414 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 42020 28128 - 28164 Apply org.make.api.question.ModerationQuestionResponse.apply ModerationQuestionResponse.apply(question)
676 48009 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 31791 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 33896 28154 - 28154 Select org.make.api.question.ModerationQuestionResponse.codec question.this.ModerationQuestionResponse.codec
685 45124 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 31557 28287 - 28291 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
686 33683 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 38578 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 31592 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 37552 28349 - 28356 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("image")
686 46437 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 32031 28320 - 28320 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
686 40452 28322 - 28333 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
686 47803 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 32356 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])))) })) })))))))))))
686 45960 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 48041 28307 - 28319 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
687 39957 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 38299 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 45102 28384 - 28384 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$3
687 33726 28397 - 28397 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 org.make.api.question.moderationquestionapitest util.this.ApplyConverter.hac1[org.make.core.RequestContext]
687 32072 28384 - 28384 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOperation$default$2
687 40206 28398 - 28431 Literal <nosymbol> org.make.api.question.moderationquestionapitest "uploadQuestionConsultationImage"
688 38617 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]]
688 46192 28452 - 28462 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 org.make.api.question.moderationquestionapitest DefaultModerationQuestionComponent.this.makeOAuth2
688 44650 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])))) })) })))))))
689 48535 28487 - 28514 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(user.user)
689 31333 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 31506 28504 - 28513 Select scalaoauth2.provider.AuthInfo.user user.user
690 40241 28533 - 28588 Apply org.make.api.operation.OperationOfQuestionService.findByQuestionId DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)
690 45136 28589 - 28589 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]
690 39633 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 31824 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 38330 28685 - 28716 Select org.make.core.operation.OperationOfQuestion.operationId operationOfQuestion.operationId
691 46231 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 46718 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 34181 28654 - 28717 Apply org.make.api.operation.OperationService.findOneSimple DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)
691 38373 28718 - 28718 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]
694 44853 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 31549 28973 - 28991 Select org.make.api.technical.storage.FileType.Operation org.make.api.technical.storage.FileType.Operation
701 40157 29237 - 29243 Literal <nosymbol> "data"
701 31864 29245 - 29255 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.uploadFile uploadFile(extension, contentType, fileContent)
701 34220 29236 - 29236 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac2 util.this.ApplyConverter.hac2[String, java.io.File]
701 33430 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 45670 29269 - 29273 Select scala.None scala.None
701 38094 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 46685 29315 - 29328 Apply java.io.File.delete file.delete()
703 45705 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 31580 29374 - 29374 Select org.make.api.technical.storage.UploadResponse.encoder storage.this.UploadResponse.encoder
703 40196 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 32318 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 38409 29360 - 29380 Apply org.make.api.technical.storage.UploadResponse.apply org.make.api.technical.storage.UploadResponse.apply(path)
703 44617 29374 - 29374 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]
703 38127 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 38689 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 37879 29556 - 29560 Select akka.http.scaladsl.server.directives.MethodDirectives.post org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this.post
716 46482 29591 - 29602 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("questions")
716 37313 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 38362 29589 - 29589 TypeApply akka.http.scaladsl.server.util.TupleOps.Join.join0P org.make.api.question.moderationquestionapitest TupleOps.this.Join.join0P[Unit]
716 31851 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 43873 29618 - 29626 ApplyImplicitView akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher org.make.api.question.moderationquestionapitest DefaultModerationQuestionApi.this._segmentStringToPathMatcher("report")
716 39991 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 50410 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 30747 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 44883 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 50661 29576 - 29588 Literal <nosymbol> org.make.api.question.moderationquestionapitest "moderation"
716 42571 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])))) })) })))))))))))
717 50974 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 38398 29654 - 29654 Select org.make.api.technical.MakeDirectives.makeOperation$default$2 DefaultModerationQuestionComponent.this.makeOperation$default$2
717 30505 29654 - 29654 Select org.make.api.technical.MakeDirectives.makeOperation$default$3 DefaultModerationQuestionComponent.this.makeOperation$default$3
717 36067 29667 - 29667 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.RequestContext]
717 46516 29668 - 29694 Literal <nosymbol> "uploadConsultationReport"
717 44605 29654 - 29695 Apply org.make.api.technical.MakeDirectives.makeOperation DefaultModerationQuestionComponent.this.makeOperation("uploadConsultationReport", DefaultModerationQuestionComponent.this.makeOperation$default$2, DefaultModerationQuestionComponent.this.makeOperation$default$3)
718 32920 29715 - 29725 Select org.make.api.technical.auth.MakeAuthentication.makeOAuth2 DefaultModerationQuestionComponent.this.makeOAuth2
718 37667 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 44919 29715 - 29715 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
719 45946 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 37835 29767 - 29776 Select scalaoauth2.provider.AuthInfo.user user.user
719 51143 29750 - 29777 Apply org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole DefaultModerationQuestionComponent.this.requireAdminRole(user.user)
720 46554 29796 - 29851 Apply org.make.api.operation.OperationOfQuestionService.findByQuestionId DefaultModerationQuestionComponent.this.operationOfQuestionService.findByQuestionId(questionId)
720 32144 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 39459 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
720 30543 29852 - 29852 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.OperationOfQuestion]
721 32959 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 36799 29917 - 29980 Apply org.make.api.operation.OperationService.findOneSimple DefaultModerationQuestionComponent.this.operationService.findOneSimple(operationOfQuestion.operationId)
721 45994 29981 - 29981 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac1 util.this.ApplyConverter.hac1[org.make.core.operation.SimpleOperation]
721 36058 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])))) })) }))
721 44366 29948 - 29979 Select org.make.core.operation.OperationOfQuestion.operationId operationOfQuestion.operationId
724 51177 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 37870 30232 - 30247 Select org.make.api.technical.storage.FileType.Report org.make.api.technical.storage.FileType.Report
731 44434 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 44401 30486 - 30486 TypeApply akka.http.scaladsl.server.util.ApplyConverterInstances.hac2 util.this.ApplyConverter.hac2[String, java.io.File]
731 31074 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 46469 30487 - 30493 Literal <nosymbol> "data"
731 39497 30495 - 30505 Apply org.make.api.question.DefaultModerationQuestionComponent.DefaultModerationQuestionApi.uploadFile uploadFile(name, contentType, fileContent)
732 36836 30547 - 30560 Apply java.io.File.delete file.delete()
733 32106 30592 - 30612 Apply org.make.api.technical.storage.UploadResponse.apply org.make.api.technical.storage.UploadResponse.apply(path)
733 31110 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 37632 30606 - 30606 TypeApply de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2 DefaultModerationQuestionComponent.this.marshaller$default$2[org.make.api.technical.storage.UploadResponse]
733 46032 30606 - 30606 Select org.make.api.technical.storage.UploadResponse.encoder storage.this.UploadResponse.encoder
733 42811 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 38651 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 50942 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])
768 31581 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 44199 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) })