| 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)
})
|