| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
560
|
35917
|
18830
-
18881
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)
|
|
560
|
30685
|
18830
-
18848
|
Select
|
org.make.api.proposal.ModerationProposalApi.searchAllProposals
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.searchAllProposals
|
|
561
|
45809
|
18830
-
18904
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)
|
|
561
|
44782
|
18857
-
18881
|
Select
|
org.make.api.proposal.ModerationProposalApi.legacySearchAllProposals
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.legacySearchAllProposals
|
|
562
|
49685
|
18890
-
18904
|
Select
|
org.make.api.proposal.ModerationProposalApi.updateProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.updateProposal
|
|
562
|
51325
|
18830
-
18927
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)
|
|
563
|
35336
|
18830
-
18950
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)
|
|
563
|
38015
|
18913
-
18927
|
Select
|
org.make.api.proposal.ModerationProposalApi.acceptProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.acceptProposal
|
|
564
|
43196
|
18936
-
18950
|
Select
|
org.make.api.proposal.ModerationProposalApi.refuseProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.refuseProposal
|
|
564
|
44818
|
18830
-
18975
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)
|
|
565
|
49726
|
18830
-
18988
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)
|
|
565
|
31438
|
18959
-
18975
|
Select
|
org.make.api.proposal.ModerationProposalApi.postponeProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.postponeProposal
|
|
566
|
36972
|
18984
-
18988
|
Select
|
org.make.api.proposal.ModerationProposalApi.lock
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.lock
|
|
566
|
37443
|
18830
-
19009
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)
|
|
567
|
41874
|
18997
-
19009
|
Select
|
org.make.api.proposal.ModerationProposalApi.lockMultiple
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.lockMultiple
|
|
567
|
42961
|
18830
-
19037
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)
|
|
568
|
51360
|
19018
-
19037
|
Select
|
org.make.api.proposal.ModerationProposalApi.changeProposalsIdea
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.changeProposalsIdea
|
|
568
|
30643
|
18830
-
19067
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)
|
|
569
|
35381
|
19046
-
19067
|
Select
|
org.make.api.proposal.ModerationProposalApi.getModerationProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.getModerationProposal
|
|
569
|
37008
|
18830
-
19096
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)).~(ModerationProposalApi.this.nextAuthorToModerate)
|
|
570
|
41910
|
18830
-
19127
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)).~(ModerationProposalApi.this.nextAuthorToModerate)).~(ModerationProposalApi.this.nextProposalToModerate)
|
|
570
|
43979
|
19076
-
19096
|
Select
|
org.make.api.proposal.ModerationProposalApi.nextAuthorToModerate
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.nextAuthorToModerate
|
|
571
|
50516
|
18830
-
19154
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)).~(ModerationProposalApi.this.nextAuthorToModerate)).~(ModerationProposalApi.this.nextProposalToModerate)).~(ModerationProposalApi.this.getTagsForProposal)
|
|
571
|
49477
|
19105
-
19127
|
Select
|
org.make.api.proposal.ModerationProposalApi.nextProposalToModerate
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.nextProposalToModerate
|
|
572
|
35124
|
18830
-
19178
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)).~(ModerationProposalApi.this.nextAuthorToModerate)).~(ModerationProposalApi.this.nextProposalToModerate)).~(ModerationProposalApi.this.getTagsForProposal)).~(ModerationProposalApi.this.bulkTagProposal)
|
|
572
|
37481
|
19136
-
19154
|
Select
|
org.make.api.proposal.ModerationProposalApi.getTagsForProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.getTagsForProposal
|
|
573
|
42997
|
19163
-
19178
|
Select
|
org.make.api.proposal.ModerationProposalApi.bulkTagProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.bulkTagProposal
|
|
573
|
44014
|
18830
-
19208
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)).~(ModerationProposalApi.this.nextAuthorToModerate)).~(ModerationProposalApi.this.nextProposalToModerate)).~(ModerationProposalApi.this.getTagsForProposal)).~(ModerationProposalApi.this.bulkTagProposal)).~(ModerationProposalApi.this.bulkDeleteTagProposal)
|
|
574
|
49512
|
18830
-
19244
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)).~(ModerationProposalApi.this.updateProposal)).~(ModerationProposalApi.this.acceptProposal)).~(ModerationProposalApi.this.refuseProposal)).~(ModerationProposalApi.this.postponeProposal)).~(ModerationProposalApi.this.lock)).~(ModerationProposalApi.this.lockMultiple)).~(ModerationProposalApi.this.changeProposalsIdea)).~(ModerationProposalApi.this.getModerationProposal)).~(ModerationProposalApi.this.nextAuthorToModerate)).~(ModerationProposalApi.this.nextProposalToModerate)).~(ModerationProposalApi.this.getTagsForProposal)).~(ModerationProposalApi.this.bulkTagProposal)).~(ModerationProposalApi.this.bulkDeleteTagProposal)).~(ModerationProposalApi.this.bulkRefuseInitialsProposals)
|
|
574
|
30673
|
19187
-
19208
|
Select
|
org.make.api.proposal.ModerationProposalApi.bulkDeleteTagProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.bulkDeleteTagProposal
|
|
575
|
36927
|
19217
-
19244
|
Select
|
org.make.api.proposal.ModerationProposalApi.bulkRefuseInitialsProposals
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.bulkRefuseInitialsProposals
|
|
602
|
50557
|
20085
-
20118
|
Apply
|
akka.http.scaladsl.server.PathMatcher.PathMatcher1Ops.map
|
org.make.api.proposal.moderationproposalapitest
|
server.this.PathMatcher.PathMatcher1Ops[String](DefaultModerationProposalApi.this.Segment).map[org.make.core.proposal.ProposalId](((id: String) => org.make.core.proposal.ProposalId.apply(id)))
|
|
602
|
41406
|
20085
-
20092
|
Select
|
akka.http.scaladsl.server.PathMatchers.Segment
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.Segment
|
|
602
|
37236
|
20103
-
20117
|
Apply
|
org.make.core.proposal.ProposalId.apply
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.proposal.ProposalId.apply(id)
|
|
605
|
42773
|
20176
-
20890
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.get).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("GetModerationProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$1: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((moderationProposalResponse: org.make.api.proposal.ModerationProposalResponse) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))
|
|
605
|
43451
|
20176
-
20179
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
606
|
47939
|
20210
-
20221
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
606
|
49984
|
20222
-
20222
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
606
|
41164
|
20195
-
20244
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])
|
|
606
|
37276
|
20190
-
20245
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]))
|
|
606
|
36965
|
20224
-
20244
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
606
|
35164
|
20195
-
20207
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
606
|
43768
|
20208
-
20208
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
606
|
51071
|
20194
-
20194
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
606
|
50299
|
20190
-
20882
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("GetModerationProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$1: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((moderationProposalResponse: org.make.api.proposal.ModerationProposalResponse) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))))
|
|
607
|
36724
|
20285
-
20285
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
607
|
43806
|
20272
-
20310
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("GetModerationProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
607
|
33273
|
20272
-
20872
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("GetModerationProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$1: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((moderationProposalResponse: org.make.api.proposal.ModerationProposalResponse) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))
|
|
607
|
35365
|
20272
-
20272
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
607
|
47683
|
20272
-
20272
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
607
|
43486
|
20286
-
20309
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"GetModerationProposal"
|
|
608
|
50021
|
20330
-
20340
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
608
|
41692
|
20330
-
20860
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((moderationProposalResponse: org.make.api.proposal.ModerationProposalResponse) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))
|
|
608
|
41898
|
20330
-
20330
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
609
|
51106
|
20387
-
20419
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
609
|
37035
|
20409
-
20418
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
609
|
49261
|
20387
-
20846
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((moderationProposalResponse: org.make.api.proposal.ModerationProposalResponse) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))
|
|
611
|
43246
|
20438
-
20510
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)
|
|
612
|
35117
|
20438
-
20551
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound
|
|
612
|
48430
|
20530
-
20530
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
613
|
36796
|
20438
-
20830
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((moderationProposalResponse: org.make.api.proposal.ModerationProposalResponse) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))
|
|
615
|
49500
|
20650
-
20723
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)
|
|
615
|
44329
|
20674
-
20683
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
615
|
43757
|
20650
-
20810
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)).apply(DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))
|
|
615
|
36761
|
20685
-
20722
|
Select
|
org.make.api.proposal.ModerationProposalResponse.questionId
|
|
moderationProposalResponse.questionId
|
|
616
|
35151
|
20759
-
20785
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))
|
|
616
|
50866
|
20759
-
20759
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])
|
|
616
|
48189
|
20750
-
20786
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](moderationProposalResponse)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))
|
|
616
|
41654
|
20759
-
20759
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
616
|
43283
|
20759
-
20759
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))
|
|
616
|
34081
|
20759
-
20759
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
627
|
34911
|
20957
-
20960
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
627
|
31321
|
20957
-
27489
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.get).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("legacy"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("SearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))))(util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], createdBefore: Option[java.time.ZonedDateTime], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagsIds: Option[Seq[org.make.core.tag.TagId]], operationId: Option[org.make.core.operation.OperationId], questionIds: Option[Seq[org.make.core.question.QuestionId]], ideaId: Option[Seq[org.make.core.idea.IdeaId]], content: Option[String], source: Option[String], location: Option[String], question: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], minVotesCount: Option[Int], toEnrich: Option[Boolean], minScore: Option[Double], language: Option[org.make.core.reference.Language], country: Option[org.make.core.reference.Country], userTypes: Option[Seq[org.make.core.user.UserType]], keywords: Option[Seq[org.make.core.proposal.ProposalKeywordKey]], userId: Option[org.make.core.user.UserId]) => server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
})))))))))))
|
|
628
|
33315
|
20976
-
21013
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("legacy"))(TupleOps.this.Join.join0P[Unit])
|
|
628
|
39816
|
20991
-
21002
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
628
|
39457
|
20971
-
27481
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("legacy"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("SearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))))(util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], createdBefore: Option[java.time.ZonedDateTime], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagsIds: Option[Seq[org.make.core.tag.TagId]], operationId: Option[org.make.core.operation.OperationId], questionIds: Option[Seq[org.make.core.question.QuestionId]], ideaId: Option[Seq[org.make.core.idea.IdeaId]], content: Option[String], source: Option[String], location: Option[String], question: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], minVotesCount: Option[Int], toEnrich: Option[Boolean], minScore: Option[Double], language: Option[org.make.core.reference.Language], country: Option[org.make.core.reference.Country], userTypes: Option[Seq[org.make.core.user.UserType]], keywords: Option[Seq[org.make.core.proposal.ProposalKeywordKey]], userId: Option[org.make.core.user.UserId]) => server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
}))))))))))
|
|
628
|
50339
|
20971
-
21014
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("legacy"))(TupleOps.this.Join.join0P[Unit]))
|
|
628
|
35951
|
20989
-
20989
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
628
|
48227
|
20976
-
20988
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
628
|
41453
|
21003
-
21003
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
628
|
49297
|
21005
-
21013
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("legacy")
|
|
629
|
34948
|
21027
-
21027
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
629
|
47319
|
21027
-
27471
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("SearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))))(util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], createdBefore: Option[java.time.ZonedDateTime], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagsIds: Option[Seq[org.make.core.tag.TagId]], operationId: Option[org.make.core.operation.OperationId], questionIds: Option[Seq[org.make.core.question.QuestionId]], ideaId: Option[Seq[org.make.core.idea.IdeaId]], content: Option[String], source: Option[String], location: Option[String], question: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], minVotesCount: Option[Int], toEnrich: Option[Boolean], minScore: Option[Double], language: Option[org.make.core.reference.Language], country: Option[org.make.core.reference.Country], userTypes: Option[Seq[org.make.core.user.UserType]], keywords: Option[Seq[org.make.core.proposal.ProposalKeywordKey]], userId: Option[org.make.core.user.UserId]) => server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
})))))))))
|
|
629
|
39853
|
21027
-
21053
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("SearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
629
|
35992
|
21040
-
21040
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
629
|
48732
|
21027
-
21027
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
629
|
43235
|
21041
-
21052
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"SearchAll"
|
|
630
|
41485
|
21086
-
21086
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
630
|
49764
|
21086
-
21096
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
630
|
51202
|
21086
-
27459
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))))(util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], createdBefore: Option[java.time.ZonedDateTime], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagsIds: Option[Seq[org.make.core.tag.TagId]], operationId: Option[org.make.core.operation.OperationId], questionIds: Option[Seq[org.make.core.question.QuestionId]], ideaId: Option[Seq[org.make.core.idea.IdeaId]], content: Option[String], source: Option[String], location: Option[String], question: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], minVotesCount: Option[Int], toEnrich: Option[Boolean], minScore: Option[Double], language: Option[org.make.core.reference.Language], country: Option[org.make.core.reference.Country], userTypes: Option[Seq[org.make.core.user.UserType]], keywords: Option[Seq[org.make.core.proposal.ProposalKeywordKey]], userId: Option[org.make.core.user.UserId]) => server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
})))))))
|
|
631
|
33351
|
21169
-
21182
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
631
|
50086
|
21147
-
21183
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
631
|
37416
|
21147
-
27445
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))))(util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], createdBefore: Option[java.time.ZonedDateTime], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagsIds: Option[Seq[org.make.core.tag.TagId]], operationId: Option[org.make.core.operation.OperationId], questionIds: Option[Seq[org.make.core.question.QuestionId]], ideaId: Option[Seq[org.make.core.idea.IdeaId]], content: Option[String], source: Option[String], location: Option[String], question: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], minVotesCount: Option[Int], toEnrich: Option[Boolean], minScore: Option[Double], language: Option[org.make.core.reference.Language], country: Option[org.make.core.reference.Country], userTypes: Option[Seq[org.make.core.user.UserType]], keywords: Option[Seq[org.make.core.proposal.ProposalKeywordKey]], userId: Option[org.make.core.user.UserId]) => server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
})))))
|
|
632
|
39915
|
21202
-
22127
|
Apply
|
akka.http.scaladsl.server.directives.ParameterDirectivesInstances.parameters
|
|
DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)))
|
|
632
|
32631
|
21212
-
21212
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac20
|
|
util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]
|
|
633
|
35411
|
21232
-
21267
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?
|
|
633
|
43273
|
21232
-
21245
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
633
|
36520
|
21266
-
21266
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))
|
|
633
|
49804
|
21232
-
21267
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller)))
|
|
633
|
39890
|
21266
-
21266
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller)
|
|
633
|
48774
|
21266
-
21266
|
Select
|
org.make.core.ParameterExtractors.proposalIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller
|
|
634
|
41407
|
21287
-
21302
|
Literal
|
<nosymbol>
|
|
"createdBefore"
|
|
634
|
43031
|
21321
-
21321
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)
|
|
634
|
34420
|
21287
-
21322
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?
|
|
634
|
35446
|
21287
-
21322
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller))
|
|
634
|
46412
|
21321
-
21321
|
Select
|
org.make.core.ParameterExtractors.zonedDateTimeFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller
|
|
635
|
40952
|
21342
-
21374
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType]
|
|
635
|
49550
|
21342
-
21374
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType])))
|
|
635
|
36555
|
21360
-
21360
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))
|
|
635
|
48212
|
21342
-
21356
|
Literal
|
<nosymbol>
|
|
"proposalType"
|
|
636
|
47975
|
21394
-
21420
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller)))
|
|
636
|
46910
|
21419
-
21419
|
Select
|
org.make.core.ParameterExtractors.tagIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller
|
|
636
|
43069
|
21419
-
21419
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller)
|
|
636
|
34665
|
21419
-
21419
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))
|
|
636
|
33858
|
21394
-
21420
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?
|
|
636
|
41444
|
21394
-
21403
|
Literal
|
<nosymbol>
|
|
"tagsIds"
|
|
637
|
36317
|
21440
-
21471
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?
|
|
637
|
33610
|
21440
-
21471
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller))
|
|
637
|
40377
|
21440
-
21453
|
Literal
|
<nosymbol>
|
|
"operationId"
|
|
637
|
41474
|
21470
-
21470
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)
|
|
637
|
49587
|
21470
-
21470
|
Select
|
org.make.core.ParameterExtractors.operationIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller
|
|
638
|
31996
|
21491
-
21525
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller)))
|
|
638
|
34705
|
21524
-
21524
|
Select
|
org.make.core.ParameterExtractors.questionIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller
|
|
638
|
46368
|
21491
-
21503
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
638
|
42817
|
21491
-
21525
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?
|
|
638
|
48006
|
21524
-
21524
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller)
|
|
638
|
40909
|
21524
-
21524
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))
|
|
639
|
41237
|
21545
-
21571
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?
|
|
639
|
47424
|
21570
-
21570
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller)
|
|
639
|
49089
|
21545
-
21553
|
Literal
|
<nosymbol>
|
|
"ideaId"
|
|
639
|
34737
|
21545
-
21571
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller)))
|
|
639
|
33645
|
21570
-
21570
|
Select
|
org.make.core.ParameterExtractors.ideaIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller
|
|
639
|
42257
|
21570
-
21570
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))
|
|
640
|
47762
|
21591
-
21600
|
Literal
|
<nosymbol>
|
|
"content"
|
|
640
|
49538
|
21601
-
21601
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
640
|
33068
|
21601
-
21601
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
640
|
40942
|
21591
-
21602
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("content").?
|
|
640
|
41270
|
21591
-
21602
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
|
|
641
|
47801
|
21622
-
21632
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
|
|
641
|
34174
|
21622
-
21630
|
Literal
|
<nosymbol>
|
|
"source"
|
|
641
|
38576
|
21631
-
21631
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
641
|
35187
|
21631
-
21631
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
641
|
47461
|
21622
-
21632
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("source").?
|
|
642
|
40698
|
21652
-
21662
|
Literal
|
<nosymbol>
|
|
"location"
|
|
642
|
41724
|
21663
-
21663
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
642
|
49576
|
21663
-
21663
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
642
|
34210
|
21652
-
21664
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
|
|
642
|
33106
|
21652
-
21664
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("location").?
|
|
643
|
39098
|
21684
-
21696
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("question").?
|
|
643
|
47208
|
21684
-
21694
|
Literal
|
<nosymbol>
|
|
"question"
|
|
643
|
47713
|
21695
-
21695
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
643
|
35230
|
21695
-
21695
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
643
|
40735
|
21684
-
21696
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
|
|
644
|
31822
|
21716
-
21724
|
Literal
|
<nosymbol>
|
|
"status"
|
|
644
|
41762
|
21728
-
21728
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))
|
|
644
|
49331
|
21716
-
21744
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus]
|
|
644
|
33352
|
21716
-
21744
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus])))
|
|
645
|
40154
|
21764
-
21789
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller))
|
|
645
|
47753
|
21788
-
21788
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)
|
|
645
|
34982
|
21788
-
21788
|
Select
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.intFromStringUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller
|
|
645
|
39139
|
21764
-
21789
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?
|
|
645
|
47249
|
21764
-
21779
|
Literal
|
<nosymbol>
|
|
"minVotesCount"
|
|
646
|
45669
|
21809
-
21833
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?
|
|
646
|
40986
|
21832
-
21832
|
Select
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.booleanFromStringUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller
|
|
646
|
32342
|
21809
-
21819
|
Literal
|
<nosymbol>
|
|
"toEnrich"
|
|
646
|
46682
|
21809
-
21833
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller))
|
|
646
|
33394
|
21832
-
21832
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)
|
|
647
|
38889
|
21853
-
21863
|
Literal
|
<nosymbol>
|
|
"minScore"
|
|
647
|
39926
|
21875
-
21875
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)
|
|
647
|
35021
|
21853
-
21876
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?
|
|
647
|
47506
|
21875
-
21875
|
Select
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.doubleFromStringUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller
|
|
647
|
33094
|
21853
-
21876
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller))
|
|
648
|
33428
|
21920
-
21920
|
Select
|
org.make.core.ParameterExtractors.languageFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller
|
|
648
|
45420
|
21896
-
21906
|
Literal
|
<nosymbol>
|
|
"language"
|
|
648
|
39630
|
21896
-
21921
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller))
|
|
648
|
41026
|
21896
-
21921
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?
|
|
648
|
47201
|
21920
-
21920
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)
|
|
649
|
39954
|
21963
-
21963
|
Select
|
org.make.core.ParameterExtractors.countryFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller
|
|
649
|
32846
|
21963
-
21963
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)
|
|
649
|
47545
|
21941
-
21964
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?
|
|
649
|
46157
|
21941
-
21964
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller))
|
|
649
|
35555
|
21941
-
21950
|
Literal
|
<nosymbol>
|
|
"country"
|
|
650
|
47239
|
21998
-
21998
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))
|
|
650
|
41060
|
21984
-
21994
|
Literal
|
<nosymbol>
|
|
"userType"
|
|
650
|
39388
|
21984
-
22008
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType])))
|
|
650
|
33179
|
21984
-
22008
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType]
|
|
651
|
31245
|
22028
-
22038
|
Literal
|
<nosymbol>
|
|
"keywords"
|
|
651
|
47583
|
22028
-
22068
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?
|
|
651
|
45370
|
22067
-
22067
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))
|
|
651
|
32883
|
22067
-
22067
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller)
|
|
651
|
41508
|
22028
-
22068
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller)))
|
|
651
|
40482
|
22067
-
22067
|
Select
|
org.make.core.ParameterExtractors.proposalKeywordKeyFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller
|
|
652
|
33216
|
22088
-
22096
|
Literal
|
<nosymbol>
|
|
"userId"
|
|
652
|
48040
|
22088
-
22109
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))
|
|
652
|
39421
|
22108
-
22108
|
Select
|
org.make.core.ParameterExtractors.userIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller
|
|
652
|
31282
|
22108
-
22108
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)
|
|
652
|
46994
|
22088
-
22109
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?
|
|
653
|
45697
|
21202
-
27429
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalId]](DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[java.time.ZonedDateTime](DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.tag.TagId]](DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.tag.TagId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.operation.OperationId](DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.operation.OperationId](DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.question.QuestionId]](DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.question.QuestionId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.idea.IdeaId]](DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.idea.IdeaId]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("source").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("location").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("question").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), ParameterDirectives.this.ParamSpec.forNOR[Int](DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Boolean](DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[Double](DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Language](DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.reference.Country](DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Country](DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller)), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), ParameterDirectives.this.ParamSpec.forNOR[Seq[org.make.core.proposal.ProposalKeywordKey]](DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Seq[org.make.core.proposal.ProposalKeywordKey]](akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))))(util.this.ApplyConverter.hac20[Option[Seq[org.make.core.proposal.ProposalId]], Option[java.time.ZonedDateTime], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[org.make.core.operation.OperationId], Option[Seq[org.make.core.question.QuestionId]], Option[Seq[org.make.core.idea.IdeaId]], Option[String], Option[String], Option[String], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Int], Option[Boolean], Option[Double], Option[org.make.core.reference.Language], Option[org.make.core.reference.Country], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalKeywordKey]], Option[org.make.core.user.UserId]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], createdBefore: Option[java.time.ZonedDateTime], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagsIds: Option[Seq[org.make.core.tag.TagId]], operationId: Option[org.make.core.operation.OperationId], questionIds: Option[Seq[org.make.core.question.QuestionId]], ideaId: Option[Seq[org.make.core.idea.IdeaId]], content: Option[String], source: Option[String], location: Option[String], question: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], minVotesCount: Option[Int], toEnrich: Option[Boolean], minScore: Option[Double], language: Option[org.make.core.reference.Language], country: Option[org.make.core.reference.Country], userTypes: Option[Seq[org.make.core.user.UserType]], keywords: Option[Seq[org.make.core.proposal.ProposalKeywordKey]], userId: Option[org.make.core.user.UserId]) => server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
}))))
|
|
676
|
34247
|
23214
-
23429
|
Apply
|
akka.http.scaladsl.server.directives.ParameterDirectivesInstances.parameters
|
|
DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order])))))
|
|
676
|
46230
|
23224
-
23224
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac4
|
|
util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]
|
|
677
|
39182
|
23248
-
23278
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller))
|
|
677
|
37833
|
23248
-
23278
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?
|
|
677
|
46436
|
23277
-
23277
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)
|
|
677
|
45413
|
23248
-
23255
|
Literal
|
<nosymbol>
|
|
"limit"
|
|
677
|
33130
|
23277
-
23277
|
Select
|
org.make.core.ParameterExtractors.limitFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller
|
|
678
|
32068
|
23331
-
23331
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)
|
|
678
|
39670
|
23331
-
23331
|
Select
|
org.make.core.ParameterExtractors.startFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller
|
|
678
|
31030
|
23302
-
23308
|
Literal
|
<nosymbol>
|
|
"skip"
|
|
678
|
45452
|
23302
-
23332
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller))
|
|
678
|
48080
|
23302
-
23332
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?
|
|
679
|
33168
|
23356
-
23364
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("sort").?
|
|
679
|
37588
|
23356
-
23362
|
Literal
|
<nosymbol>
|
|
"sort"
|
|
679
|
31071
|
23356
-
23364
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("sort").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
|
|
679
|
39379
|
23363
-
23363
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
679
|
46190
|
23363
-
23363
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
680
|
37630
|
23388
-
23407
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))
|
|
680
|
32103
|
23406
-
23406
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))
|
|
680
|
45910
|
23406
-
23406
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order])))
|
|
680
|
39709
|
23388
-
23407
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?
|
|
680
|
48600
|
23388
-
23395
|
Literal
|
<nosymbol>
|
|
"order"
|
|
681
|
32919
|
23214
-
27411
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Limit](DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Limit](DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.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](DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac4[Option[org.make.core.technical.Pagination.Limit], Option[org.make.core.technical.Pagination.Offset], Option[String], Option[org.make.core.Order]]).apply(((limit: Option[org.make.core.technical.Pagination.Limit], offset: Option[org.make.core.technical.Pagination.Offset], sort: Option[String], order: Option[org.make.core.Order]) => {
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*));
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val contextFilterRequest: Option[org.make.api.proposal.ContextFilterRequest] = ContextFilterRequest.parse(operationId, source, location, question);
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagsIds;
<artifact> val x$4: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = operationId;
<artifact> val x$5: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$6: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ideaId;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$8: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = contextFilterRequest;
<artifact> val x$9: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$10: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = minVotesCount;
<artifact> val x$11: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = toEnrich;
<artifact> val x$12: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = minScore;
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = language;
<artifact> val x$14: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = country;
<artifact> val x$15: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort;
<artifact> val x$16: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$17: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = limit;
<artifact> val x$18: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$19: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = createdBefore;
<artifact> val x$20: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$21: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = keywords;
<artifact> val x$22: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$23: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$24: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$24;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
};
val query: org.make.core.proposal.SearchQuery = exhaustiveSearchRequest.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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
}))
|
|
688
|
37578
|
23714
-
25192
|
Apply
|
org.make.core.Validation.validate
|
|
org.make.core.Validation.validate((scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]]): _*))
|
|
688
|
37541
|
23738
-
24248
|
Apply
|
scala.Option.map
|
|
country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode)))))
|
|
689
|
45942
|
23794
-
24222
|
Apply
|
org.make.core.Validation.validChoices
|
|
org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode)))
|
|
690
|
39409
|
23859
-
23868
|
Literal
|
<nosymbol>
|
|
"country"
|
|
691
|
31546
|
23908
-
24065
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String))
|
|
694
|
43617
|
24095
-
24112
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue)
|
|
695
|
32622
|
24142
-
24194
|
Apply
|
scala.collection.IterableOps.map
|
|
org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))
|
|
695
|
40774
|
24180
-
24193
|
Select
|
org.make.core.CountryConfiguration.countryCode
|
|
x$3.countryCode
|
|
697
|
40812
|
24250
-
25178
|
Apply
|
scala.Option.map
|
|
sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))
|
|
699
|
34281
|
24342
-
24745
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language")
|
|
710
|
44081
|
24772
-
25152
|
Apply
|
org.make.core.Validation.validChoices
|
|
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
|
|
711
|
46267
|
24837
-
24843
|
Literal
|
<nosymbol>
|
|
"sort"
|
|
712
|
39172
|
24883
-
25043
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String))
|
|
715
|
31577
|
25073
-
25087
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[String](sortValue)
|
|
718
|
45704
|
23734
-
25187
|
ApplyToImplicitArgs
|
scala.collection.IterableOps.flatten
|
|
scala.`package`.Seq.apply[Option[org.make.core.Requirement]](country.map[org.make.core.Requirement](((countryValue: org.make.core.reference.Country) => org.make.core.Validation.validChoices[org.make.core.reference.Country]("country", scala.Some.apply[String](("Invalid country. Expected one of ".+(org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$2: org.make.core.CountryConfiguration) => x$2.countryCode))): String)), scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue), org.make.core.BusinessConfig.supportedCountries.map[org.make.core.reference.Country](((x$3: org.make.core.CountryConfiguration) => x$3.countryCode))))), sort.map[org.make.core.Requirement](((sortValue: String) => {
val choices: Seq[String] = scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language");
org.make.core.Validation.validChoices[String]("sort", scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String)), scala.`package`.Seq.apply[String](sortValue), choices)
}))).flatten[org.make.core.Requirement](scala.Predef.$conforms[Option[org.make.core.Requirement]])
|
|
718
|
32657
|
25180
-
25180
|
TypeApply
|
scala.Predef.$conforms
|
|
scala.Predef.$conforms[Option[org.make.core.Requirement]]
|
|
721
|
46778
|
25299
-
25338
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)
|
|
721
|
33716
|
25328
-
25337
|
Select
|
org.make.core.user.Role.RoleAdmin
|
|
org.make.core.user.Role.RoleAdmin
|
|
722
|
39208
|
25370
-
25381
|
Ident
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.questionIds
|
|
questionIds
|
|
725
|
44119
|
25506
-
25575
|
Apply
|
scala.collection.IterableOps.filter
|
|
questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id)))
|
|
725
|
30772
|
25529
-
25574
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id)
|
|
726
|
40232
|
25618
-
25650
|
Select
|
org.make.core.auth.UserRights.availableQuestions
|
|
userAuth.user.availableQuestions
|
|
726
|
45741
|
25445
-
25652
|
Apply
|
scala.Option.orElse
|
|
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions))
|
|
726
|
37338
|
25445
-
25652
|
Block
|
scala.Option.orElse
|
|
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions))
|
|
726
|
32421
|
25613
-
25651
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
|
|
731
|
50659
|
25815
-
25882
|
Apply
|
org.make.api.proposal.ContextFilterRequest.parse
|
|
ContextFilterRequest.parse(operationId, source, location, question)
|
|
733
|
30811
|
25963
-
27072
|
Apply
|
org.make.api.proposal.ExhaustiveSearchRequest.apply
|
|
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$23, x$4, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21, x$22, x$24)
|
|
733
|
46218
|
25963
-
25963
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4
|
|
ExhaustiveSearchRequest.apply$default$4
|
|
733
|
38971
|
25963
-
25963
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24
|
|
ExhaustiveSearchRequest.apply$default$24
|
|
757
|
44155
|
27122
-
27175
|
Apply
|
org.make.api.proposal.ExhaustiveSearchRequest.toSearchQuery
|
|
exhaustiveSearchRequest.toSearchQuery(requestContext)
|
|
759
|
40763
|
27200
-
27304
|
Apply
|
org.make.api.proposal.ProposalService.searchInIndex
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)
|
|
760
|
45499
|
27332
-
27332
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
760
|
31850
|
27200
-
27343
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective
|
|
761
|
47278
|
27386
-
27386
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult])
|
|
761
|
35797
|
27200
-
27389
|
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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((x$4: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))))
|
|
761
|
37375
|
27386
-
27386
|
Select
|
org.make.core.proposal.indexed.ProposalsSearchResult.circeCodec
|
|
indexed.this.ProposalsSearchResult.circeCodec
|
|
761
|
30568
|
27386
-
27387
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult])))
|
|
761
|
43912
|
27377
-
27388
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.core.proposal.indexed.ProposalsSearchResult](x$4)(marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))))
|
|
761
|
38397
|
27386
-
27386
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.marshaller[org.make.core.proposal.indexed.ProposalsSearchResult](indexed.this.ProposalsSearchResult.circeCodec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]))
|
|
761
|
50694
|
27386
-
27386
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
771
|
47679
|
27542
-
30876
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.get).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ModerationSearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], questionIds: Option[Seq[org.make.core.question.QuestionId]], userId: Option[org.make.core.user.UserId], content: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], userTypes: Option[Seq[org.make.core.user.UserType]], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagIds: Option[Seq[org.make.core.tag.TagId]], submittedAsLanguages: Option[Seq[org.make.core.reference.Language]], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], order: Option[org.make.core.Order]) => {
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagIds;
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$6: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field));
<artifact> val x$8: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$9: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)));
<artifact> val x$10: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$11: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$12: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$13: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = submittedAsLanguages;
<artifact> val x$14: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$15: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$5;
<artifact> val x$16: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$7;
<artifact> val x$17: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$9;
<artifact> val x$18: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$11;
<artifact> val x$19: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$12;
<artifact> val x$20: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$13;
<artifact> val x$21: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$14;
<artifact> val x$22: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$15;
<artifact> val x$23: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$20;
<artifact> val x$24: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$22;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
})))))))))
|
|
771
|
43950
|
27542
-
27545
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
772
|
36858
|
27559
-
27571
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
772
|
45731
|
27572
-
27572
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
772
|
32958
|
27574
-
27585
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
772
|
35625
|
27554
-
30870
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ModerationSearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], questionIds: Option[Seq[org.make.core.question.QuestionId]], userId: Option[org.make.core.user.UserId], content: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], userTypes: Option[Seq[org.make.core.user.UserType]], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagIds: Option[Seq[org.make.core.tag.TagId]], submittedAsLanguages: Option[Seq[org.make.core.reference.Language]], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], order: Option[org.make.core.Order]) => {
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagIds;
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$6: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field));
<artifact> val x$8: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$9: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)));
<artifact> val x$10: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$11: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$12: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$13: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = submittedAsLanguages;
<artifact> val x$14: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$15: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$5;
<artifact> val x$16: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$7;
<artifact> val x$17: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$9;
<artifact> val x$18: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$11;
<artifact> val x$19: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$12;
<artifact> val x$20: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$13;
<artifact> val x$21: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$14;
<artifact> val x$22: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$15;
<artifact> val x$23: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$20;
<artifact> val x$24: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$22;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
}))))))))
|
|
772
|
51244
|
27554
-
27586
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit]))
|
|
772
|
37867
|
27559
-
27585
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])
|
|
773
|
43480
|
27597
-
30862
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ModerationSearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], questionIds: Option[Seq[org.make.core.question.QuestionId]], userId: Option[org.make.core.user.UserId], content: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], userTypes: Option[Seq[org.make.core.user.UserType]], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagIds: Option[Seq[org.make.core.tag.TagId]], submittedAsLanguages: Option[Seq[org.make.core.reference.Language]], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], order: Option[org.make.core.Order]) => {
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagIds;
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$6: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field));
<artifact> val x$8: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$9: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)));
<artifact> val x$10: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$11: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$12: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$13: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = submittedAsLanguages;
<artifact> val x$14: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$15: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$5;
<artifact> val x$16: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$7;
<artifact> val x$17: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$9;
<artifact> val x$18: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$11;
<artifact> val x$19: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$12;
<artifact> val x$20: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$13;
<artifact> val x$21: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$14;
<artifact> val x$22: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$15;
<artifact> val x$23: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$20;
<artifact> val x$24: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$22;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
})))))))
|
|
773
|
47067
|
27611
-
27632
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"ModerationSearchAll"
|
|
773
|
31351
|
27597
-
27597
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
773
|
38959
|
27597
-
27597
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
773
|
36898
|
27610
-
27610
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
773
|
43863
|
27597
-
27633
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("ModerationSearchAll", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
774
|
32705
|
27664
-
27674
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
774
|
51064
|
27664
-
30852
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], questionIds: Option[Seq[org.make.core.question.QuestionId]], userId: Option[org.make.core.user.UserId], content: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], userTypes: Option[Seq[org.make.core.user.UserType]], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagIds: Option[Seq[org.make.core.tag.TagId]], submittedAsLanguages: Option[Seq[org.make.core.reference.Language]], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], order: Option[org.make.core.Order]) => {
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagIds;
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$6: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field));
<artifact> val x$8: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$9: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)));
<artifact> val x$10: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$11: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$12: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$13: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = submittedAsLanguages;
<artifact> val x$14: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$15: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$5;
<artifact> val x$16: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$7;
<artifact> val x$17: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$9;
<artifact> val x$18: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$11;
<artifact> val x$19: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$12;
<artifact> val x$20: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$13;
<artifact> val x$21: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$14;
<artifact> val x$22: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$15;
<artifact> val x$23: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$20;
<artifact> val x$24: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$22;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
})))))
|
|
774
|
45488
|
27664
-
27664
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
775
|
50400
|
27723
-
27759
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
775
|
37902
|
27745
-
27758
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
775
|
33276
|
27723
-
30840
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], questionIds: Option[Seq[org.make.core.question.QuestionId]], userId: Option[org.make.core.user.UserId], content: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], userTypes: Option[Seq[org.make.core.user.UserType]], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagIds: Option[Seq[org.make.core.tag.TagId]], submittedAsLanguages: Option[Seq[org.make.core.reference.Language]], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], order: Option[org.make.core.Order]) => {
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagIds;
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$6: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field));
<artifact> val x$8: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$9: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)));
<artifact> val x$10: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$11: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$12: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$13: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = submittedAsLanguages;
<artifact> val x$14: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$15: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$5;
<artifact> val x$16: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$7;
<artifact> val x$17: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$9;
<artifact> val x$18: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$11;
<artifact> val x$19: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$12;
<artifact> val x$20: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$13;
<artifact> val x$21: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$14;
<artifact> val x$22: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$15;
<artifact> val x$23: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$20;
<artifact> val x$24: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$22;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
})))
|
|
776
|
35874
|
27776
-
28377
|
Apply
|
akka.http.scaladsl.server.directives.ParameterDirectivesInstances.parameters
|
|
DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order])))))
|
|
776
|
48888
|
27786
-
27786
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac13
|
|
util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]
|
|
777
|
31109
|
27812
-
27812
|
Select
|
org.make.core.ParameterExtractors.proposalIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller
|
|
777
|
43421
|
27804
-
27808
|
Literal
|
<nosymbol>
|
|
"id"
|
|
777
|
38998
|
27804
-
27824
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId]
|
|
777
|
43902
|
27804
-
27824
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller)
|
|
778
|
45525
|
27858
-
27858
|
Select
|
org.make.core.ParameterExtractors.questionIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller
|
|
778
|
37127
|
27842
-
27870
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller)
|
|
778
|
36056
|
27842
-
27854
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
778
|
32207
|
27842
-
27870
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId]
|
|
779
|
50436
|
27888
-
27896
|
Literal
|
<nosymbol>
|
|
"userId"
|
|
779
|
31143
|
27908
-
27908
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)
|
|
779
|
43650
|
27888
-
27909
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller))
|
|
779
|
38754
|
27908
-
27908
|
Select
|
org.make.core.ParameterExtractors.userIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller
|
|
779
|
42569
|
27888
-
27909
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?
|
|
780
|
45274
|
27937
-
27937
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
780
|
32946
|
27927
-
27938
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("content").?
|
|
780
|
50192
|
27927
-
27938
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]))
|
|
780
|
36091
|
27927
-
27936
|
Literal
|
<nosymbol>
|
|
"content"
|
|
780
|
37168
|
27937
-
27937
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
781
|
30898
|
27968
-
27968
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))
|
|
781
|
43374
|
27956
-
27964
|
Literal
|
<nosymbol>
|
|
"status"
|
|
781
|
39483
|
27956
-
27984
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus]
|
|
781
|
43690
|
27956
-
27984
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus])))
|
|
782
|
46019
|
28016
-
28016
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))
|
|
782
|
49904
|
28002
-
28026
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType]
|
|
782
|
36128
|
28002
-
28012
|
Literal
|
<nosymbol>
|
|
"userType"
|
|
782
|
38221
|
28002
-
28026
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType])))
|
|
783
|
50232
|
28044
-
28058
|
Literal
|
<nosymbol>
|
|
"proposalType"
|
|
783
|
43409
|
28044
-
28076
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType]
|
|
783
|
39246
|
28062
-
28062
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))
|
|
783
|
31096
|
28044
-
28076
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType])))
|
|
784
|
49945
|
28105
-
28105
|
Select
|
org.make.core.ParameterExtractors.tagIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller
|
|
784
|
44747
|
28094
-
28101
|
Literal
|
<nosymbol>
|
|
"tagId"
|
|
784
|
45775
|
28094
-
28112
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller)
|
|
784
|
36651
|
28094
-
28112
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId]
|
|
785
|
43166
|
28156
-
28156
|
Select
|
org.make.core.ParameterExtractors.languageFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller
|
|
785
|
50271
|
28130
-
28166
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language]
|
|
785
|
37655
|
28130
-
28152
|
Literal
|
<nosymbol>
|
|
"submittedAsLanguages"
|
|
785
|
35591
|
28130
-
28166
|
ApplyToImplicitArgs
|
org.make.api.technical.CsvReceptacle.paramSpec
|
|
org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)
|
|
786
|
45262
|
28184
-
28216
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller))
|
|
786
|
49688
|
28215
-
28215
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)
|
|
786
|
44191
|
28184
-
28216
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?
|
|
786
|
36687
|
28215
-
28215
|
Select
|
org.make.core.ParameterExtractors.startFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller
|
|
786
|
30849
|
28184
-
28192
|
Literal
|
<nosymbol>
|
|
"_start"
|
|
787
|
50182
|
28234
-
28261
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?
|
|
787
|
35342
|
28260
-
28260
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)
|
|
787
|
37692
|
28234
-
28240
|
Literal
|
<nosymbol>
|
|
"_end"
|
|
787
|
43203
|
28260
-
28260
|
Select
|
org.make.core.ParameterExtractors.endFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller
|
|
787
|
30887
|
28234
-
28261
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller))
|
|
788
|
45022
|
28322
-
28322
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))
|
|
788
|
35835
|
28279
-
28323
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?
|
|
788
|
44223
|
28279
-
28286
|
Literal
|
<nosymbol>
|
|
"_sort"
|
|
788
|
37449
|
28279
-
28323
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]))))
|
|
788
|
49732
|
28322
-
28322
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumStringEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]))
|
|
789
|
42357
|
28341
-
28361
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?
|
|
789
|
44737
|
28341
-
28361
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.ParameterDirectives.ParamSpec.forNOR
|
|
ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))
|
|
789
|
50222
|
28341
-
28349
|
Literal
|
<nosymbol>
|
|
"_order"
|
|
789
|
30926
|
28360
-
28360
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order])))
|
|
789
|
34832
|
28360
-
28360
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))
|
|
790
|
41161
|
27776
-
30826
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order])](DefaultModerationProposalApi.this.parameters(org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId])(DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.question.QuestionId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId])(DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.user.UserId](DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.user.UserId](DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[String](DefaultModerationProposalApi.this._string2NR("content").?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalStatus](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalStatus]((ProposalStatus: enumeratum.values.StringEnum[org.make.core.proposal.ProposalStatus]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.user.UserType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.user.UserType]((UserType: enumeratum.values.StringEnum[org.make.core.user.UserType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.proposal.ProposalType](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType])(DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.ProposalType]((ProposalType: enumeratum.values.StringEnum[org.make.core.proposal.ProposalType]))), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.tag.TagId](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId])(DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller), org.make.api.technical.CsvReceptacle.paramSpec[org.make.core.reference.Language](org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language])(DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.Offset](DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.Offset](DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.technical.Pagination.End](DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.technical.Pagination.End](DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller)), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.proposal.indexed.ProposalElasticsearchFieldName](DefaultModerationProposalApiComponent.this.enumeratumStringEnumUnmarshaller[org.make.core.proposal.indexed.ProposalElasticsearchFieldName]((ProposalElasticsearchFieldName: enumeratum.values.StringEnum[org.make.core.proposal.indexed.ProposalElasticsearchFieldName])))), ParameterDirectives.this.ParamSpec.forNOR[org.make.core.Order](DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?)(akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.Order](DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))))))(util.this.ApplyConverter.hac13[Option[Seq[org.make.core.proposal.ProposalId]], Option[Seq[org.make.core.question.QuestionId]], Option[org.make.core.user.UserId], Option[String], Option[Seq[org.make.core.proposal.ProposalStatus]], Option[Seq[org.make.core.user.UserType]], Option[Seq[org.make.core.proposal.ProposalType]], Option[Seq[org.make.core.tag.TagId]], Option[Seq[org.make.core.reference.Language]], Option[org.make.core.technical.Pagination.Offset], Option[org.make.core.technical.Pagination.End], Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], Option[org.make.core.Order]]).apply(((proposalIds: Option[Seq[org.make.core.proposal.ProposalId]], questionIds: Option[Seq[org.make.core.question.QuestionId]], userId: Option[org.make.core.user.UserId], content: Option[String], status: Option[Seq[org.make.core.proposal.ProposalStatus]], userTypes: Option[Seq[org.make.core.user.UserType]], proposalTypes: Option[Seq[org.make.core.proposal.ProposalType]], tagIds: Option[Seq[org.make.core.tag.TagId]], submittedAsLanguages: Option[Seq[org.make.core.reference.Language]], offset: Option[org.make.core.technical.Pagination.Offset], end: Option[org.make.core.technical.Pagination.End], sort: Option[org.make.core.proposal.indexed.ProposalElasticsearchFieldName], order: Option[org.make.core.Order]) => {
val resolvedQuestions: Option[Seq[org.make.core.question.QuestionId]] = if (userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin))
questionIds
else
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions));
val exhaustiveSearchRequest: org.make.api.proposal.ExhaustiveSearchRequest = {
<artifact> val x$1: Option[Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = proposalIds;
<artifact> val x$2: Option[Seq[org.make.core.proposal.ProposalType]] @scala.reflect.internal.annotations.uncheckedBounds = proposalTypes;
<artifact> val x$3: Option[Seq[org.make.core.tag.TagId]] @scala.reflect.internal.annotations.uncheckedBounds = tagIds;
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = resolvedQuestions;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = content;
<artifact> val x$6: Option[Seq[org.make.core.proposal.ProposalStatus]] @scala.reflect.internal.annotations.uncheckedBounds = status;
<artifact> val x$7: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field));
<artifact> val x$8: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = order;
<artifact> val x$9: Option[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)));
<artifact> val x$10: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = offset;
<artifact> val x$11: Option[Seq[org.make.core.user.UserType]] @scala.reflect.internal.annotations.uncheckedBounds = userTypes;
<artifact> val x$12: Option[org.make.core.user.UserId] @scala.reflect.internal.annotations.uncheckedBounds = userId;
<artifact> val x$13: Option[Seq[org.make.core.reference.Language]] @scala.reflect.internal.annotations.uncheckedBounds = submittedAsLanguages;
<artifact> val x$14: Option[Seq[org.make.core.reference.LabelId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$4;
<artifact> val x$15: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$5;
<artifact> val x$16: Option[Seq[org.make.core.idea.IdeaId]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$7;
<artifact> val x$17: Option[org.make.api.proposal.ContextFilterRequest] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$9;
<artifact> val x$18: Option[Int] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$11;
<artifact> val x$19: Option[Boolean] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$12;
<artifact> val x$20: Option[Double] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$13;
<artifact> val x$21: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$14;
<artifact> val x$22: Option[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$15;
<artifact> val x$23: Option[java.time.ZonedDateTime] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$20;
<artifact> val x$24: Option[Seq[org.make.core.proposal.ProposalKeywordKey]] @scala.reflect.internal.annotations.uncheckedBounds = ExhaustiveSearchRequest.apply$default$22;
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
}))
|
|
807
|
37486
|
29188
-
29227
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)
|
|
807
|
41369
|
29217
-
29226
|
Select
|
org.make.core.user.Role.RoleAdmin
|
|
org.make.core.user.Role.RoleAdmin
|
|
808
|
51281
|
29253
-
29264
|
Ident
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.questionIds
|
|
questionIds
|
|
811
|
35294
|
29371
-
29440
|
Apply
|
scala.collection.IterableOps.filter
|
|
questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id)))
|
|
811
|
42392
|
29394
-
29439
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id)
|
|
812
|
30677
|
29477
-
29509
|
Select
|
org.make.core.auth.UserRights.availableQuestions
|
|
userAuth.user.availableQuestions
|
|
812
|
36933
|
29316
-
29511
|
Apply
|
scala.Option.orElse
|
|
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions))
|
|
812
|
49680
|
29316
-
29511
|
Block
|
scala.Option.orElse
|
|
questionIds.map[Seq[org.make.core.question.QuestionId]](((questions: Seq[org.make.core.question.QuestionId]) => questions.filter(((id: org.make.core.question.QuestionId) => userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id))))).orElse[Seq[org.make.core.question.QuestionId]](scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions))
|
|
812
|
44778
|
29472
-
29510
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
|
|
816
|
49718
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9
|
|
ExhaustiveSearchRequest.apply$default$9
|
|
816
|
36730
|
29603
-
30237
|
Apply
|
org.make.api.proposal.ExhaustiveSearchRequest.apply
|
|
ExhaustiveSearchRequest.apply(x$1, x$2, x$3, x$14, x$15, x$4, x$16, x$5, x$17, x$6, x$18, x$19, x$20, x$21, x$22, x$7, x$8, x$9, x$10, x$23, x$11, x$24, x$12, x$13)
|
|
816
|
48399
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20
|
|
ExhaustiveSearchRequest.apply$default$20
|
|
816
|
31433
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4
|
|
ExhaustiveSearchRequest.apply$default$4
|
|
816
|
36969
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7
|
|
ExhaustiveSearchRequest.apply$default$7
|
|
816
|
51075
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13
|
|
ExhaustiveSearchRequest.apply$default$13
|
|
816
|
41869
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11
|
|
ExhaustiveSearchRequest.apply$default$11
|
|
816
|
37437
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12
|
|
ExhaustiveSearchRequest.apply$default$12
|
|
816
|
44539
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5
|
|
ExhaustiveSearchRequest.apply$default$5
|
|
816
|
35370
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15
|
|
ExhaustiveSearchRequest.apply$default$15
|
|
816
|
43974
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22
|
|
ExhaustiveSearchRequest.apply$default$22
|
|
816
|
42957
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14
|
|
ExhaustiveSearchRequest.apply$default$14
|
|
823
|
38011
|
29920
-
29937
|
Apply
|
scala.Option.map
|
|
sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field))
|
|
823
|
42111
|
29929
-
29936
|
Select
|
org.make.core.elasticsearch.ElasticsearchFieldName.field
|
|
x$5.field
|
|
825
|
51321
|
30020
-
30033
|
Select
|
org.make.core.technical.Pagination.RichOptionOffset.orZero
|
|
technical.this.Pagination.RichOptionOffset(offset).orZero
|
|
825
|
43455
|
30010
-
30034
|
Apply
|
org.make.core.technical.Pagination.End.toLimit
|
|
x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)
|
|
825
|
35332
|
30002
-
30035
|
Apply
|
scala.Option.map
|
|
end.map[org.make.core.technical.Pagination.Limit](((x$6: org.make.core.technical.Pagination.End) => x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)))
|
|
832
|
49473
|
30307
-
30360
|
Apply
|
org.make.api.proposal.ExhaustiveSearchRequest.toSearchQuery
|
|
exhaustiveSearchRequest.toSearchQuery(requestContext)
|
|
832
|
41903
|
30256
-
30377
|
Apply
|
org.make.api.proposal.ProposalService.searchInIndex
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)
|
|
833
|
50511
|
30399
-
30399
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
833
|
37197
|
30256
-
30410
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective
|
|
834
|
49977
|
30256
-
30810
|
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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))))
|
|
836
|
36959
|
30498
-
30788
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))))
|
|
837
|
41659
|
30534
-
30762
|
Apply
|
scala.Tuple3.apply
|
|
scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal))))
|
|
837
|
50552
|
30534
-
30534
|
ApplyToImplicitArgs
|
io.circe.Encoder.encodeSeq
|
|
circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec)
|
|
837
|
33529
|
30534
-
30534
|
Select
|
org.make.api.proposal.ProposalListResponse.codec
|
|
proposal.this.ProposalListResponse.codec
|
|
837
|
43446
|
30534
-
30534
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]
|
|
837
|
35158
|
30534
-
30534
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]])
|
|
837
|
43762
|
30534
-
30762
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[(akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse])](scala.Tuple3.apply[akka.http.scaladsl.model.StatusCodes.Success, List[org.make.api.technical.X-Total-Count], Seq[org.make.api.proposal.ProposalListResponse]](akka.http.scaladsl.model.StatusCodes.OK, scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString())), proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))))(marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]])))
|
|
837
|
47640
|
30534
-
30534
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCodeAndHeadersAndValue
|
|
marshalling.this.Marshaller.fromStatusCodeAndHeadersAndValue[Seq[org.make.api.proposal.ProposalListResponse]](DefaultModerationProposalApiComponent.this.marshaller[Seq[org.make.api.proposal.ProposalListResponse]](circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec), DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]))
|
|
838
|
42991
|
30564
-
30578
|
Select
|
akka.http.scaladsl.model.StatusCodes.OK
|
|
akka.http.scaladsl.model.StatusCodes.OK
|
|
839
|
47894
|
30613
-
30654
|
Apply
|
akka.http.scaladsl.model.headers.ModeledCustomHeaderCompanion.apply
|
|
org.make.api.technical.X-Total-Count.apply(proposals.total.toString())
|
|
839
|
35120
|
30629
-
30653
|
Apply
|
scala.Any.toString
|
|
proposals.total.toString()
|
|
839
|
43723
|
30608
-
30655
|
Apply
|
scala.collection.IterableFactory.apply
|
|
scala.`package`.List.apply[org.make.api.technical.X-Total-Count](org.make.api.technical.X-Total-Count.apply(proposals.total.toString()))
|
|
840
|
49506
|
30685
-
30734
|
Apply
|
scala.collection.IterableOps.map
|
|
proposals.results.map[org.make.api.proposal.ProposalListResponse](((proposal: org.make.core.proposal.indexed.IndexedProposal) => ProposalListResponse.apply(proposal)))
|
|
840
|
36921
|
30707
-
30733
|
Apply
|
org.make.api.proposal.ProposalListResponse.apply
|
|
ProposalListResponse.apply(proposal)
|
|
851
|
43801
|
30914
-
30953
|
Select
|
org.make.core.BusinessConfig.defaultProposalMaxLength
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.BusinessConfig.defaultProposalMaxLength
|
|
852
|
36719
|
31001
-
31051
|
Select
|
org.make.core.BusinessConfig.defaultProposalTranslationMaxLength
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.BusinessConfig.defaultProposalTranslationMaxLength
|
|
853
|
50015
|
31088
-
31131
|
Select
|
org.make.core.FrontConfiguration.defaultProposalMinLength
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.FrontConfiguration.defaultProposalMinLength
|
|
855
|
46988
|
31174
-
34794
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.put).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("EditProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
}))))))))))))))))
|
|
855
|
41608
|
31174
-
31177
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.put
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.put
|
|
856
|
35112
|
31220
-
31240
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
856
|
36757
|
31186
-
31241
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]))
|
|
856
|
49769
|
31190
-
31190
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
856
|
33640
|
31186
-
34788
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("EditProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))))))))
|
|
856
|
43240
|
31204
-
31204
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
|
TupleOps.this.Join.join0P[Unit]
|
|
856
|
33320
|
31191
-
31203
|
Literal
|
<nosymbol>
|
|
"moderation"
|
|
856
|
40611
|
31191
-
31240
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])
|
|
856
|
51101
|
31206
-
31217
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
856
|
48146
|
31218
-
31218
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
857
|
34870
|
31279
-
31279
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
857
|
41649
|
31280
-
31294
|
Literal
|
<nosymbol>
|
|
"EditProposal"
|
|
857
|
37794
|
31266
-
34780
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("EditProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))))))
|
|
857
|
50863
|
31266
-
31266
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
857
|
43278
|
31266
-
31295
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
|
DefaultModerationProposalApiComponent.this.makeOperation("EditProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
857
|
34073
|
31266
-
31266
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
858
|
45914
|
31326
-
34770
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))))
|
|
858
|
40046
|
31326
-
31326
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
858
|
48185
|
31326
-
31336
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
859
|
32878
|
31385
-
34758
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))
|
|
859
|
36523
|
31407
-
31420
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
859
|
49256
|
31385
-
31421
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
860
|
39714
|
31438
-
34744
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
}))))))))
|
|
860
|
41682
|
31438
-
31451
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
861
|
33829
|
31479
-
31479
|
Select
|
org.make.api.proposal.UpdateProposalRequest.decoder
|
|
proposal.this.UpdateProposalRequest.decoder
|
|
861
|
48219
|
31470
-
31503
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder))))
|
|
861
|
50294
|
31479
-
31479
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)
|
|
861
|
48000
|
31470
-
34728
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.UpdateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]).apply(((request: org.make.api.proposal.UpdateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))
|
|
861
|
34907
|
31477
-
31502
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.UpdateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)))
|
|
861
|
43038
|
31479
-
31479
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.UpdateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder))
|
|
861
|
39811
|
31476
-
31476
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]
|
|
862
|
33309
|
31584
-
31584
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
862
|
41448
|
31535
-
31595
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective
|
|
862
|
35945
|
31552
-
31570
|
Select
|
org.make.api.proposal.UpdateProposalRequest.questionId
|
|
request.questionId
|
|
862
|
31240
|
31535
-
34710
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))
|
|
862
|
49022
|
31535
-
31583
|
Apply
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.retrieveQuestion
|
|
DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)
|
|
863
|
43231
|
31674
-
31693
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
863
|
34941
|
31669
-
31694
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
863
|
47980
|
31630
-
31695
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
|
|
863
|
46335
|
31654
-
31667
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
863
|
39383
|
31630
-
34690
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(userAuth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))
|
|
864
|
37000
|
31720
-
31795
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound
|
|
864
|
49758
|
31774
-
31774
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
864
|
46950
|
31720
-
34668
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
}))
|
|
864
|
39847
|
31720
-
31773
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)
|
|
866
|
41478
|
31901
-
31946
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
866
|
49582
|
31877
-
32338
|
Apply
|
scala.Option.fold
|
|
request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))
|
|
868
|
49542
|
32018
-
32298
|
Apply
|
scala.Tuple3.apply
|
|
scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})
|
|
869
|
42992
|
32093
-
32105
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
869
|
48770
|
32060
-
32060
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$1.withMaxLength$default$4
|
|
869
|
35405
|
32060
-
32060
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$3
|
|
qual$1.withMaxLength$default$3
|
|
869
|
40913
|
32052
-
32106
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
|
|
869
|
46373
|
32074
-
32091
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalLength
|
|
DefaultModerationProposalApi.this.maxProposalLength
|
|
869
|
34380
|
32052
-
32059
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
870
|
41936
|
32181
-
32193
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
870
|
34416
|
32148
-
32148
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$3
|
|
qual$2.withMinLength$default$3
|
|
870
|
47428
|
32148
-
32148
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$2.withMinLength$default$4
|
|
870
|
49797
|
32162
-
32179
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
870
|
32762
|
32140
-
32147
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
870
|
43026
|
32140
-
32194
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
|
|
871
|
32802
|
32228
-
32266
|
Apply
|
org.make.core.Validation.StringWithParsers.toSanitizedInput
|
|
qual$3.toSanitizedInput("newContent", x$10)
|
|
871
|
47934
|
32253
-
32265
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
871
|
40948
|
32236
-
32236
|
Select
|
org.make.core.Validation.StringWithParsers.toSanitizedInput$default$2
|
|
qual$3.toSanitizedInput$default$2
|
|
871
|
35442
|
32228
-
32235
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
872
|
33566
|
32299
-
32299
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
872
|
41437
|
32299
-
32299
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
872
|
31957
|
32018
-
32310
|
Select
|
cats.Functor.Ops.void
|
|
cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
|
|
872
|
40088
|
32299
-
32299
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
872
|
35192
|
32018
-
32305
|
ApplyToImplicitArgs
|
cats.syntax.Tuple3SemigroupalOps.tupled
|
|
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("newContent") = "newContent";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("newContent") = "newContent";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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]))
|
|
872
|
46326
|
32299
-
32299
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
872
|
43063
|
32299
-
32299
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
872
|
47970
|
32299
-
32299
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
875
|
41197
|
32454
-
32499
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
875
|
33592
|
32418
-
32961
|
Apply
|
scala.Option.fold
|
|
request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$7: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))))
|
|
876
|
46360
|
32532
-
32532
|
Select
|
cats.instances.LazyListInstances.catsStdInstancesForLazyList
|
|
cats.implicits.catsStdInstancesForLazyList
|
|
876
|
33605
|
32530
-
32544
|
Select
|
org.make.core.technical.Multilingual.translations
|
|
x$7.translations
|
|
876
|
40695
|
32552
-
32552
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
876
|
41720
|
32530
-
32933
|
ApplyToImplicitArgs
|
cats.Foldable.Ops.foldMap
|
|
cats.implicits.toFoldableOps[LazyList, String](x$7.translations)(cats.implicits.catsStdInstancesForLazyList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((translations: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))
|
|
876
|
45586
|
32552
-
32552
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataMonoidForValidated
|
|
data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit)
|
|
876
|
33100
|
32552
-
32552
|
Select
|
cats.kernel.instances.UnitInstances.catsKernelStdAlgebraForUnit
|
|
cats.implicits.catsKernelStdAlgebraForUnit
|
|
878
|
40936
|
32632
-
32891
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})
|
|
879
|
40905
|
32681
-
32681
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$3
|
|
qual$4.withMaxLength$default$3
|
|
879
|
38500
|
32668
-
32680
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
879
|
34699
|
32695
-
32723
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalTranslationLength
|
|
DefaultModerationProposalApi.this.maxProposalTranslationLength
|
|
879
|
31988
|
32681
-
32681
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$4.withMaxLength$default$4
|
|
879
|
50051
|
32668
-
32750
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
|
|
879
|
47718
|
32725
-
32749
|
Literal
|
<nosymbol>
|
|
"newContentTranslations"
|
|
880
|
41231
|
32786
-
32798
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
880
|
38532
|
32799
-
32799
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$3
|
|
qual$5.withMinLength$default$3
|
|
880
|
47758
|
32786
-
32857
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
|
|
880
|
33639
|
32813
-
32830
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
880
|
47420
|
32832
-
32856
|
Literal
|
<nosymbol>
|
|
"newContentTranslations"
|
|
880
|
35143
|
32799
-
32799
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$5.withMinLength$default$4
|
|
881
|
33063
|
32892
-
32892
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
881
|
33398
|
32892
-
32892
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
881
|
39600
|
32892
-
32892
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
881
|
47456
|
32632
-
32898
|
ApplyToImplicitArgs
|
cats.syntax.Tuple2SemigroupalOps.tupled
|
|
cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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]))
|
|
881
|
35183
|
32892
-
32892
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
881
|
48496
|
32632
-
32903
|
Select
|
cats.Functor.Ops.void
|
|
cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$13: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$3;
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("newContentTranslations") = "newContentTranslations";
<artifact> val x$17: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$3;
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
|
|
881
|
49533
|
32892
-
32892
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
881
|
41683
|
32892
-
32892
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
886
|
47204
|
33098
-
33126
|
Select
|
org.make.api.proposal.ModerationProposalResponse.contentTranslations
|
|
proposal.contentTranslations
|
|
887
|
39095
|
33167
-
33185
|
TypeApply
|
org.make.core.technical.Multilingual.empty
|
|
org.make.core.technical.Multilingual.empty[String]
|
|
888
|
45622
|
33031
-
33434
|
Apply
|
org.make.core.technical.Multilingual.addTranslation
|
|
request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content))
|
|
889
|
48252
|
33262
-
33326
|
Apply
|
scala.Option.getOrElse
|
|
proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage)
|
|
889
|
34942
|
33301
-
33325
|
Select
|
org.make.core.question.Question.defaultLanguage
|
|
question.defaultLanguage
|
|
890
|
32851
|
33358
-
33404
|
Apply
|
scala.Option.getOrElse
|
|
request.newContent.getOrElse[String](proposal.content)
|
|
890
|
40115
|
33387
-
33403
|
Select
|
org.make.api.proposal.ModerationProposalResponse.content
|
|
proposal.content
|
|
894
|
46638
|
33617
-
33649
|
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](translations, "contents"))
|
|
894
|
33347
|
33622
-
33648
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")
|
|
894
|
38849
|
33513
-
33650
|
Apply
|
org.make.core.technical.MultilingualUtils.hasRequiredTranslations
|
|
org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")))
|
|
894
|
41758
|
33584
-
33615
|
TypeApply
|
scala.collection.IterableOnceOps.toSet
|
|
question.languages.toList.toSet[org.make.core.reference.Language]
|
|
895
|
41512
|
33675
-
33741
|
ApplyToImplicitArgs
|
cats.syntax.Tuple3SemigroupalOps.tupled
|
|
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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]))
|
|
895
|
31250
|
33675
-
33734
|
Apply
|
scala.Tuple3.apply
|
|
scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)
|
|
895
|
39886
|
33735
-
33735
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
895
|
45661
|
33735
-
33735
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
895
|
47745
|
33735
-
33735
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
895
|
33052
|
33735
-
33735
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
896
|
33387
|
33832
-
33832
|
Select
|
cats.data.NonEmptyChainInstances.catsDataInstancesForNonEmptyChainBinCompat1
|
|
data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1
|
|
896
|
46404
|
33832
-
33846
|
Select
|
cats.Foldable.Ops.toList
|
|
cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList
|
|
896
|
31289
|
33801
-
33848
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.failWith
|
|
DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
|
|
896
|
39590
|
33810
-
33847
|
Apply
|
org.make.core.ValidationFailedError.apply
|
|
org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList)
|
|
899
|
33135
|
33920
-
34515
|
Apply
|
org.make.api.proposal.ProposalService.update
|
|
DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)
|
|
901
|
47502
|
34076
-
34096
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
903
|
39920
|
34207
-
34223
|
Apply
|
org.make.core.DefaultDateHelper.now
|
|
org.make.core.DateHelper.now()
|
|
904
|
32803
|
34270
-
34288
|
Select
|
org.make.api.proposal.UpdateProposalRequest.newContent
|
|
request.newContent
|
|
905
|
46116
|
34347
-
34377
|
Select
|
org.make.api.proposal.UpdateProposalRequest.newContentTranslations
|
|
request.newContentTranslations
|
|
907
|
41021
|
34471
-
34483
|
Select
|
org.make.api.proposal.UpdateProposalRequest.tags
|
|
request.tags
|
|
909
|
39622
|
34547
-
34547
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
909
|
47198
|
33920
-
34568
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound
|
|
910
|
37758
|
34606
-
34617
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))
|
|
910
|
31753
|
34615
-
34615
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
910
|
33173
|
33920
-
34618
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.update(proposalId, userAuth.user.userId, requestContext, org.make.core.DateHelper.now(), request.newContent, request.newContentTranslations, question, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$8: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
|
|
910
|
46149
|
34615
-
34616
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$8)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))
|
|
910
|
39677
|
34615
-
34615
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])
|
|
910
|
47539
|
34615
-
34615
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
910
|
32843
|
34615
-
34615
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))
|
|
926
|
39176
|
34985
-
35342
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId).flatMap[org.make.core.question.Question](((x0$1: Option[org.make.core.question.Question]) => x0$1 match {
case (value: org.make.core.question.Question): Some[org.make.core.question.Question]((question @ _)) => scala.concurrent.Future.successful[org.make.core.question.Question](question)
case _ => scala.concurrent.Future.failed[Nothing](org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String))))))
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
926
|
46430
|
35033
-
35033
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
927
|
39414
|
35070
-
35097
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[org.make.core.question.Question](question)
|
|
929
|
33677
|
35134
-
35330
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String))))))
|
|
930
|
37546
|
35165
-
35314
|
Apply
|
org.make.core.ValidationFailedError.apply
|
|
org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String)))))
|
|
931
|
32627
|
35210
-
35295
|
Apply
|
org.make.core.ValidationError.apply
|
|
org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String)))
|
|
931
|
30990
|
35226
-
35238
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
931
|
45410
|
35206
-
35296
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String))))
|
|
931
|
39907
|
35253
-
35294
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String))
|
|
931
|
48035
|
35240
-
35251
|
Literal
|
<nosymbol>
|
|
"not_found"
|
|
936
|
46224
|
35371
-
36286
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId).flatMap[org.make.core.question.Question](((x0$2: Option[org.make.core.proposal.Proposal]) => x0$2 match {
case (value: org.make.core.proposal.Proposal): Some[org.make.core.proposal.Proposal]((proposal @ _)) => proposal.questionId match {
case (value: org.make.core.question.QuestionId): Some[org.make.core.question.QuestionId]((questionId @ _)) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId).flatMap[org.make.core.question.Question](((x0$3: Option[org.make.core.question.Question]) => x0$3 match {
case (value: org.make.core.question.Question): Some[org.make.core.question.Question]((question @ _)) => scala.concurrent.Future.successful[org.make.core.question.Question](question)
case _ => scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException(("question \'".+(questionId).+("\' not found for proposal \'").+(proposalId).+("\'"): String)))
}))(scala.concurrent.ExecutionContext.Implicits.global)
case _ => scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException(("proposal \'".+(proposalId).+("\' has no questionId"): String)))
}
case _ => scala.concurrent.Future.failed[Nothing](org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String))))))
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
936
|
50111
|
35430
-
35430
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
938
|
31026
|
35481
-
35500
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
940
|
45154
|
35616
-
35616
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
940
|
37583
|
35568
-
35913
|
ApplyToImplicitArgs
|
scala.concurrent.Future.flatMap
|
|
DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId).flatMap[org.make.core.question.Question](((x0$3: Option[org.make.core.question.Question]) => x0$3 match {
case (value: org.make.core.question.Question): Some[org.make.core.question.Question]((question @ _)) => scala.concurrent.Future.successful[org.make.core.question.Question](question)
case _ => scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException(("question \'".+(questionId).+("\' not found for proposal \'").+(proposalId).+("\'"): String)))
}))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
941
|
44086
|
35661
-
35688
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[org.make.core.question.Question](question)
|
|
943
|
32063
|
35741
-
35893
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException(("question \'".+(questionId).+("\' not found for proposal \'").+(proposalId).+("\'"): String)))
|
|
944
|
39665
|
35780
-
35869
|
Apply
|
java.lang.IllegalStateException.<init>
|
|
new java.lang.IllegalStateException(("question \'".+(questionId).+("\' not found for proposal \'").+(proposalId).+("\'"): String))
|
|
947
|
33159
|
35954
-
36024
|
Apply
|
java.lang.IllegalStateException.<init>
|
|
new java.lang.IllegalStateException(("proposal \'".+(proposalId).+("\' has no questionId"): String))
|
|
947
|
46184
|
35940
-
36025
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException(("proposal \'".+(proposalId).+("\' has no questionId"): String)))
|
|
950
|
37624
|
36078
-
36274
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String))))))
|
|
951
|
45904
|
36109
-
36258
|
Apply
|
org.make.core.ValidationFailedError.apply
|
|
org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String)))))
|
|
952
|
39371
|
36170
-
36182
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
952
|
30775
|
36184
-
36195
|
Literal
|
<nosymbol>
|
|
"not_found"
|
|
952
|
39702
|
36154
-
36239
|
Apply
|
org.make.core.ValidationError.apply
|
|
org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String)))
|
|
952
|
31815
|
36150
-
36240
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("questionId", "not_found", scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String))))
|
|
952
|
44124
|
36197
-
36238
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String))
|
|
959
|
39134
|
36343
-
36347
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
959
|
41863
|
36343
-
40146
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("accept"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ValidateProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
}))))))))))))))))
|
|
960
|
32615
|
36390
-
36410
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
960
|
31571
|
36356
-
36422
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("accept"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
|
|
960
|
50151
|
36411
-
36411
|
TypeApply
|
akka.http.scaladsl.server.util.TupleFoldInstances.t0
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
|
|
960
|
47283
|
36411
-
36411
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
|
|
960
|
45662
|
36388
-
36388
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
960
|
31537
|
36361
-
36373
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
960
|
44076
|
36360
-
36360
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
960
|
49435
|
36356
-
40140
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("accept"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ValidateProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))))))))
|
|
960
|
39165
|
36361
-
36421
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("accept"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
|
|
960
|
43612
|
36376
-
36387
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
960
|
40768
|
36374
-
36374
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
960
|
38085
|
36413
-
36421
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("accept")
|
|
961
|
40806
|
36461
-
36479
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"ValidateProposal"
|
|
961
|
50617
|
36460
-
36460
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
961
|
36964
|
36447
-
40132
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ValidateProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))))))
|
|
961
|
37571
|
36447
-
36480
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("ValidateProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
961
|
32376
|
36447
-
36447
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
961
|
45702
|
36447
-
36447
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
962
|
38930
|
36511
-
36511
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
962
|
44534
|
36511
-
40122
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))))
|
|
962
|
46771
|
36511
-
36521
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
963
|
44113
|
36566
-
36598
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
963
|
31325
|
36588
-
36597
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
963
|
48356
|
36566
-
40110
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))))
|
|
964
|
36274
|
36615
-
36628
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
964
|
35326
|
36615
-
40096
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
}))))))))
|
|
965
|
45735
|
36656
-
36656
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)
|
|
965
|
43450
|
36647
-
40080
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ValidateProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]).apply(((request: org.make.api.proposal.ValidateProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))))
|
|
965
|
38964
|
36653
-
36653
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]
|
|
965
|
37334
|
36656
-
36656
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder))
|
|
965
|
47232
|
36647
-
36682
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder))))
|
|
965
|
50653
|
36654
-
36681
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.ValidateProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.ValidateProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)))
|
|
965
|
32413
|
36656
-
36656
|
Select
|
org.make.api.proposal.ValidateProposalRequest.decoder
|
|
proposal.this.ValidateProposalRequest.decoder
|
|
966
|
43866
|
36714
-
36762
|
Apply
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.retrieveQuestion
|
|
DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)
|
|
966
|
36311
|
36714
-
36774
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective
|
|
966
|
30807
|
36731
-
36749
|
Select
|
org.make.api.proposal.ValidateProposalRequest.questionId
|
|
request.questionId
|
|
966
|
31844
|
36763
-
36763
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
966
|
51313
|
36714
-
40062
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.question.Question](DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))))
|
|
967
|
45492
|
36833
-
36842
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
967
|
50405
|
36844
-
36869
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
967
|
37234
|
36809
-
40042
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
})))
|
|
967
|
47273
|
36809
-
36870
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
|
|
967
|
37371
|
36849
-
36868
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
968
|
43907
|
36949
-
36949
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
968
|
38392
|
36895
-
36948
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)
|
|
968
|
41821
|
36895
-
40020
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((proposal: org.make.api.proposal.ModerationProposalResponse) => {
val newContent: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void));
val newContentTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))));
val translations: org.make.core.technical.Multilingual[String] = request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content));
val validatedTranslations: cats.data.ValidatedNec[org.make.core.ValidationError,Unit] = org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")));
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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])) match {
case (e: cats.data.NonEmptyChain[org.make.core.ValidationError]): cats.data.Validated.Invalid[cats.data.NonEmptyChain[org.make.core.ValidationError]]((errsNec @ _)) => DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
case (a: (Unit, Unit, Unit)): cats.data.Validated.Valid[(Unit, Unit, Unit)](_) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
}
}))
|
|
968
|
30567
|
36895
-
36970
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)).asDirectiveOrNotFound
|
|
970
|
36817
|
37076
-
37121
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
970
|
43895
|
37052
-
37525
|
Apply
|
scala.Option.fold
|
|
request.newContent.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((content: String) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void))
|
|
972
|
44392
|
37193
-
37485
|
Apply
|
scala.Tuple3.apply
|
|
scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})
|
|
973
|
50442
|
37235
-
37235
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$3
|
|
qual$1.withMaxLength$default$3
|
|
973
|
32913
|
37227
-
37234
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
973
|
42318
|
37235
-
37235
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$1.withMaxLength$default$4
|
|
973
|
37132
|
37268
-
37286
|
Literal
|
<nosymbol>
|
|
"Original content"
|
|
973
|
45691
|
37249
-
37266
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalLength
|
|
DefaultModerationProposalApi.this.maxProposalLength
|
|
973
|
39452
|
37227
-
37287
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
|
|
974
|
43653
|
37343
-
37360
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
974
|
32952
|
37329
-
37329
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$3
|
|
qual$2.withMinLength$default$3
|
|
974
|
31316
|
37321
-
37328
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
974
|
37859
|
37321
-
37381
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
|
|
974
|
45446
|
37329
-
37329
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$2.withMinLength$default$4
|
|
974
|
36856
|
37362
-
37380
|
Literal
|
<nosymbol>
|
|
"Original content"
|
|
975
|
43377
|
37440
-
37452
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
975
|
31064
|
37415
-
37453
|
Apply
|
org.make.core.Validation.StringWithParsers.toSanitizedInput
|
|
qual$3.toSanitizedInput("newContent", x$10)
|
|
975
|
38953
|
37423
-
37423
|
Select
|
org.make.core.Validation.StringWithParsers.toSanitizedInput$default$2
|
|
qual$3.toSanitizedInput$default$2
|
|
975
|
51238
|
37415
-
37422
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
976
|
45481
|
37486
-
37486
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
976
|
31101
|
37193
-
37497
|
Select
|
cats.Functor.Ops.void
|
|
cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml])](cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
|
|
976
|
38715
|
37486
-
37486
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
976
|
43416
|
37486
-
37486
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
976
|
36893
|
37486
-
37486
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
976
|
49908
|
37486
-
37486
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
976
|
50395
|
37193
-
37492
|
ApplyToImplicitArgs
|
cats.syntax.Tuple3SemigroupalOps.tupled
|
|
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength, eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]](scala.Tuple3.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,eu.timepit.refined.api.Refined[String,org.make.core.Validation.ValidHtml]]]({
<artifact> val qual$1: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$1: Int = DefaultModerationProposalApi.this.maxProposalLength;
<artifact> val x$2: String("Original content") = "Original content";
<artifact> val x$3: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$3;
<artifact> val x$4: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$1.withMaxLength$default$4;
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
}, {
<artifact> val qual$2: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$5: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$6: String("Original content") = "Original content";
<artifact> val x$7: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$3;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$2.withMinLength$default$4;
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
}, {
<artifact> val qual$3: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(content);
<artifact> val x$9: String("newContent") = "newContent";
<artifact> val x$10: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$3.toSanitizedInput$default$2;
qual$3.toSanitizedInput("newContent", x$10)
})).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]))
|
|
976
|
37625
|
37486
-
37486
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
980
|
31090
|
37740
-
37740
|
Select
|
cats.kernel.instances.UnitInstances.catsKernelStdAlgebraForUnit
|
|
cats.implicits.catsKernelStdAlgebraForUnit
|
|
980
|
49392
|
37717
-
37731
|
Select
|
scala.collection.IterableOnceOps.toList
|
|
x$9.toMap.toList
|
|
980
|
45232
|
37725
-
37725
|
Select
|
cats.instances.ListInstances.catsStdInstancesForList
|
|
cats.implicits.catsStdInstancesForList
|
|
980
|
36050
|
37670
-
37715
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
980
|
35879
|
37717
-
38187
|
ApplyToImplicitArgs
|
cats.Foldable.Ops.foldMap
|
|
cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))
|
|
980
|
49642
|
37605
-
38188
|
Apply
|
scala.Option.fold
|
|
request.newContentTranslations.fold[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](cats.data.Validated.validNec[org.make.core.ValidationError, Unit](()))(((x$9: org.make.core.technical.Multilingual[String]) => cats.implicits.toFoldableOps[List, (org.make.core.reference.Language, String)](x$9.toMap.toList)(cats.implicits.catsStdInstancesForList).foldMap[cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](((x0$1: (org.make.core.reference.Language, String)) => x0$1 match {
case (_1: org.make.core.reference.Language, _2: String): (org.make.core.reference.Language, String)((language @ _), (translations @ _)) => cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
}))(data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit))))
|
|
980
|
35550
|
37740
-
37740
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
980
|
44742
|
37740
-
37740
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataMonoidForValidated
|
|
data.this.Validated.catsDataMonoidForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError], Unit](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError], cats.implicits.catsKernelStdAlgebraForUnit)
|
|
982
|
35508
|
37837
-
38145
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})
|
|
983
|
37659
|
37873
-
37885
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
984
|
43647
|
37873
-
37998
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
|
|
984
|
38748
|
37983
-
37997
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.reference.Language](language)
|
|
984
|
50429
|
37937
-
37965
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalTranslationLength
|
|
DefaultModerationProposalApi.this.maxProposalTranslationLength
|
|
984
|
30854
|
37923
-
37923
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$4.withMaxLength$default$4
|
|
984
|
42562
|
37967
-
37981
|
Literal
|
<nosymbol>
|
|
"Translations"
|
|
985
|
49859
|
38061
-
38078
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
985
|
36084
|
38034
-
38046
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
985
|
37163
|
38096
-
38110
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.reference.Language](language)
|
|
985
|
45267
|
38080
-
38094
|
Literal
|
<nosymbol>
|
|
"Translations"
|
|
985
|
42602
|
38034
-
38111
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
|
|
985
|
50186
|
38047
-
38047
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$5.withMinLength$default$4
|
|
986
|
50227
|
38146
-
38146
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
986
|
35839
|
38146
-
38146
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
986
|
30892
|
38146
-
38146
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
986
|
46014
|
37837
-
38152
|
ApplyToImplicitArgs
|
cats.syntax.Tuple2SemigroupalOps.tupled
|
|
cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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]))
|
|
986
|
43125
|
37837
-
38157
|
Select
|
cats.Functor.Ops.void
|
|
cats.implicits.toFunctorOps[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], (org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength)](cats.implicits.catsSyntaxTuple2Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], org.make.core.Validation.StringWithMaxLength, org.make.core.Validation.StringWithMinLength](scala.Tuple2.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]]({
<artifact> val qual$4: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$11: Int = DefaultModerationProposalApi.this.maxProposalTranslationLength;
<artifact> val x$12: String("Translations") = "Translations";
<artifact> val x$13: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$14: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$4.withMaxLength$default$4;
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
}, {
<artifact> val qual$5: org.make.core.Validation.StringWithParsers = org.make.core.Validation.StringWithParsers(translations);
<artifact> val x$15: Int = DefaultModerationProposalApi.this.minProposalLength;
<artifact> val x$16: String("Translations") = "Translations";
<artifact> val x$17: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$18: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = qual$5.withMinLength$default$4;
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
})).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])))(data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])).void
|
|
986
|
43684
|
38146
-
38146
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
986
|
38217
|
38146
-
38146
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
986
|
49898
|
38146
-
38146
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
990
|
42081
|
38325
-
38353
|
Select
|
org.make.api.proposal.ModerationProposalResponse.contentTranslations
|
|
proposal.contentTranslations
|
|
991
|
37650
|
38394
-
38412
|
TypeApply
|
org.make.core.technical.Multilingual.empty
|
|
org.make.core.technical.Multilingual.empty[String]
|
|
992
|
44185
|
38258
-
38661
|
Apply
|
org.make.core.technical.Multilingual.addTranslation
|
|
request.newContentTranslations.orElse[org.make.core.technical.Multilingual[String]](proposal.contentTranslations).getOrElse[org.make.core.technical.Multilingual[String]](org.make.core.technical.Multilingual.empty[String]).addTranslation(proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage), request.newContent.getOrElse[String](proposal.content))
|
|
993
|
51286
|
38528
-
38552
|
Select
|
org.make.core.question.Question.defaultLanguage
|
|
question.defaultLanguage
|
|
993
|
43163
|
38489
-
38553
|
Apply
|
scala.Option.getOrElse
|
|
proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage)
|
|
994
|
30843
|
38585
-
38631
|
Apply
|
scala.Option.getOrElse
|
|
request.newContent.getOrElse[String](proposal.content)
|
|
994
|
35583
|
38614
-
38630
|
Select
|
org.make.api.proposal.ModerationProposalResponse.content
|
|
proposal.content
|
|
998
|
37408
|
38740
-
38971
|
Apply
|
org.make.core.technical.MultilingualUtils.hasRequiredTranslations
|
|
org.make.core.technical.MultilingualUtils.hasRequiredTranslations(question.languages.toList.toSet[org.make.core.reference.Language], scala.`package`.List.apply[(org.make.core.technical.Multilingual[String], String)](scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")))
|
|
999
|
36407
|
38842
-
38873
|
TypeApply
|
scala.collection.IterableOnceOps.toSet
|
|
question.languages.toList.toSet[org.make.core.reference.Language]
|
|
1000
|
49684
|
38910
-
38940
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")
|
|
1000
|
41570
|
38905
-
38941
|
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](translations, "Translations"))
|
|
1002
|
42914
|
39056
-
39056
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
1002
|
50719
|
38996
-
39055
|
Apply
|
scala.Tuple3.apply
|
|
scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)
|
|
1002
|
35829
|
38996
-
39062
|
ApplyToImplicitArgs
|
cats.syntax.Tuple3SemigroupalOps.tupled
|
|
cats.implicits.catsSyntaxTuple3Semigroupal[[+A]cats.data.ValidatedNec[org.make.core.ValidationError,A], Unit, Unit, Unit](scala.Tuple3.apply[cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit], cats.data.ValidatedNec[org.make.core.ValidationError,Unit]](newContent, newContentTranslations, validatedTranslations)).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]))
|
|
1002
|
30882
|
39056
-
39056
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
1002
|
35335
|
39056
-
39056
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
1002
|
43944
|
39056
-
39056
|
ApplyToImplicitArgs
|
cats.data.ValidatedInstances.catsDataApplicativeErrorForValidated
|
|
data.this.Validated.catsDataApplicativeErrorForValidated[cats.data.NonEmptyChain[org.make.core.ValidationError]](data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError])
|
|
1003
|
37442
|
39131
-
39168
|
Apply
|
org.make.core.ValidationFailedError.apply
|
|
org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList)
|
|
1003
|
41327
|
39153
-
39167
|
Select
|
cats.Foldable.Ops.toList
|
|
cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList
|
|
1003
|
51239
|
39122
-
39169
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.failWith
|
|
DefaultModerationProposalApi.this.failWith(org.make.core.ValidationFailedError.apply(cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList))
|
|
1003
|
49725
|
39153
-
39153
|
Select
|
cats.data.NonEmptyChainInstances.catsDataInstancesForNonEmptyChainBinCompat1
|
|
data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1
|
|
1006
|
48880
|
39241
-
39867
|
Apply
|
org.make.api.proposal.ProposalService.validateProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)
|
|
1008
|
42353
|
39407
-
39423
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1011
|
34828
|
39588
-
39606
|
Select
|
org.make.api.proposal.ValidateProposalRequest.newContent
|
|
request.newContent
|
|
1012
|
47858
|
39665
-
39695
|
Select
|
org.make.api.proposal.ValidateProposalRequest.newContentTranslations
|
|
request.newContentTranslations
|
|
1013
|
43978
|
39753
-
39782
|
Select
|
org.make.api.proposal.ValidateProposalRequest.sendNotificationEmail
|
|
request.sendNotificationEmail
|
|
1014
|
35868
|
39823
-
39835
|
Select
|
org.make.api.proposal.ValidateProposalRequest.tags
|
|
request.tags
|
|
1016
|
37202
|
39899
-
39899
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1016
|
41366
|
39241
-
39920
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound
|
|
1017
|
35289
|
39967
-
39967
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])
|
|
1017
|
49676
|
39241
-
39970
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.validateProposal(proposalId, auth.user.userId, requestContext, question, request.newContent, request.newContentTranslations, request.sendNotificationEmail, request.tags)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$10: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
|
|
1017
|
51276
|
39967
-
39967
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1017
|
42385
|
39967
-
39967
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1017
|
44496
|
39967
-
39968
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))
|
|
1017
|
47899
|
39967
-
39967
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))
|
|
1017
|
36926
|
39958
-
39969
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$10)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))
|
|
1030
|
33739
|
40189
-
40193
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1030
|
41405
|
40189
-
41280
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("RefuseProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))))))))))
|
|
1031
|
50505
|
40202
-
40268
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
|
|
1031
|
33488
|
40207
-
40267
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
|
|
1031
|
49470
|
40257
-
40257
|
TypeApply
|
akka.http.scaladsl.server.util.TupleFoldInstances.t0
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
|
|
1031
|
48393
|
40236
-
40256
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1031
|
43485
|
40222
-
40233
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1031
|
41613
|
40257
-
40257
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
|
|
1031
|
51069
|
40207
-
40219
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1031
|
36122
|
40259
-
40267
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse")
|
|
1031
|
43401
|
40206
-
40206
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
1031
|
35080
|
40220
-
40220
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1031
|
49803
|
40202
-
41274
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("RefuseProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))))))
|
|
1031
|
43968
|
40234
-
40234
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
1032
|
47888
|
40293
-
40293
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1032
|
36161
|
40293
-
40324
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("RefuseProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1032
|
40019
|
40293
-
40293
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1032
|
49938
|
40306
-
40306
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1032
|
35903
|
40293
-
41266
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("RefuseProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))))
|
|
1032
|
35116
|
40307
-
40323
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"RefuseProposal"
|
|
1033
|
33524
|
40355
-
40355
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1033
|
39765
|
40355
-
41256
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))
|
|
1033
|
41653
|
40355
-
40365
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1034
|
48178
|
40410
-
41244
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))
|
|
1034
|
43441
|
40410
-
40442
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1034
|
50265
|
40432
-
40441
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1035
|
35584
|
40459
-
40509
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)
|
|
1035
|
40052
|
40510
-
40510
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1035
|
47638
|
40459
-
40531
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound
|
|
1035
|
34865
|
40459
-
41230
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))
|
|
1036
|
36682
|
40586
-
40595
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1036
|
49972
|
40597
-
40616
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1036
|
43274
|
40562
-
41214
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))
|
|
1036
|
41848
|
40562
-
40617
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)
|
|
1037
|
46532
|
40638
-
41196
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))
|
|
1037
|
33272
|
40638
-
40651
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1038
|
33787
|
40674
-
41176
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.RefuseProposalRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]).apply(((refuseProposalRequest: org.make.api.proposal.RefuseProposalRequest) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))
|
|
1038
|
50298
|
40683
-
40683
|
Select
|
org.make.api.proposal.RefuseProposalRequest.codec
|
|
proposal.this.RefuseProposalRequest.codec
|
|
1038
|
35620
|
40683
-
40683
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec))
|
|
1038
|
43195
|
40683
-
40683
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)
|
|
1038
|
36714
|
40680
-
40680
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]
|
|
1038
|
48380
|
40681
-
40706
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)))
|
|
1038
|
39814
|
40674
-
40707
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.RefuseProposalRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.RefuseProposalRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec))))
|
|
1040
|
41606
|
40757
-
41063
|
Apply
|
org.make.api.proposal.ProposalService.refuseProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)
|
|
1042
|
50011
|
40903
-
40919
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1046
|
34029
|
40757
-
41110
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound
|
|
1046
|
47084
|
41089
-
41089
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1047
|
41641
|
40757
-
41154
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$11: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
|
|
1047
|
36484
|
41151
-
41152
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))
|
|
1047
|
43234
|
41151
-
41151
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1047
|
49762
|
41142
-
41153
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$11)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))
|
|
1047
|
40551
|
41151
-
41151
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))
|
|
1047
|
35105
|
41151
-
41151
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1047
|
48140
|
41151
-
41151
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])
|
|
1058
|
33822
|
41325
-
41329
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1058
|
47380
|
41325
-
42244
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("postpone"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("PostponeProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))))))))
|
|
1059
|
34903
|
41356
-
41356
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1059
|
34338
|
41343
-
41405
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("postpone"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
|
|
1059
|
46291
|
41343
-
41355
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1059
|
42421
|
41358
-
41369
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1059
|
41443
|
41393
-
41393
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
|
|
1059
|
42459
|
41342
-
41342
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
1059
|
49711
|
41393
-
41393
|
TypeApply
|
akka.http.scaladsl.server.util.TupleFoldInstances.t0
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
|
|
1059
|
47940
|
41372
-
41392
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1059
|
46331
|
41338
-
41406
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("postpone"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
|
|
1059
|
32200
|
41395
-
41405
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("postpone")
|
|
1059
|
39805
|
41370
-
41370
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
1059
|
33599
|
41338
-
42238
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("postpone"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("PostponeProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))))
|
|
1060
|
41192
|
41431
-
42230
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("PostponeProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))
|
|
1060
|
35363
|
41445
-
41463
|
Literal
|
<nosymbol>
|
|
"PostponeProposal"
|
|
1060
|
47974
|
41431
-
41431
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1060
|
49753
|
41444
-
41444
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1060
|
31962
|
41431
-
41464
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
|
DefaultModerationProposalApiComponent.this.makeOperation("PostponeProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1060
|
39841
|
41431
-
41431
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1061
|
34378
|
41495
-
41495
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1061
|
41896
|
41495
-
41505
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1061
|
45589
|
41495
-
42220
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))
|
|
1062
|
39272
|
41550
-
41582
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1062
|
46367
|
41572
-
41581
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1062
|
31949
|
41550
-
42208
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))
|
|
1063
|
40908
|
41650
-
41650
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1063
|
47890
|
41599
-
41671
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound
|
|
1063
|
40083
|
41599
-
42194
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))
|
|
1063
|
35400
|
41599
-
41649
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)
|
|
1064
|
31995
|
41726
-
41735
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1064
|
49501
|
41737
-
41756
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1064
|
41932
|
41702
-
41757
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)
|
|
1064
|
47963
|
41702
-
42178
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))
|
|
1065
|
33810
|
41778
-
41791
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1065
|
35188
|
41778
-
42160
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))
|
|
1067
|
39305
|
41814
-
42053
|
Apply
|
org.make.api.proposal.ProposalService.postponeProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)
|
|
1069
|
47423
|
41956
-
41972
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1072
|
35150
|
41814
-
42098
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound
|
|
1072
|
47929
|
42077
-
42077
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1073
|
40325
|
42137
-
42137
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1073
|
33560
|
42137
-
42138
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))
|
|
1073
|
41428
|
42137
-
42137
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))
|
|
1073
|
46843
|
42128
-
42139
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))
|
|
1073
|
49537
|
42137
-
42137
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])
|
|
1073
|
39061
|
41814
-
42140
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$12: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$12)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
|
|
1073
|
32511
|
42137
-
42137
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1083
|
38491
|
42277
-
42281
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1083
|
39914
|
42277
-
43344
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("LockProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))))))))))))
|
|
1084
|
35229
|
42295
-
42307
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1084
|
41225
|
42347
-
42353
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock")
|
|
1084
|
47496
|
42290
-
43338
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((proposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("LockProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))))))))))))
|
|
1084
|
33353
|
42345
-
42345
|
TypeApply
|
akka.http.scaladsl.server.util.TupleFoldInstances.t0
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
|
|
1084
|
45016
|
42322
-
42322
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
1084
|
40120
|
42308
-
42308
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1084
|
33017
|
42324
-
42344
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1084
|
47752
|
42294
-
42294
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
1084
|
39557
|
42295
-
42353
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
|
|
1084
|
35137
|
42290
-
42354
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
|
|
1084
|
47413
|
42345
-
42345
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
|
|
1084
|
47712
|
42310
-
42321
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1085
|
30994
|
42379
-
43330
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("LockProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))))))))))
|
|
1085
|
45053
|
42379
-
42379
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1085
|
33057
|
42379
-
42379
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1085
|
33392
|
42392
-
42392
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1085
|
40652
|
42393
-
42407
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"LockProposal"
|
|
1085
|
41677
|
42379
-
42408
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("LockProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1086
|
47167
|
42439
-
42449
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1086
|
39584
|
42439
-
43320
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))))))))
|
|
1086
|
39596
|
42439
-
42439
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1087
|
31457
|
42516
-
42525
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1087
|
48213
|
42494
-
42526
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1087
|
46399
|
42494
-
43308
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))))))
|
|
1088
|
40689
|
42543
-
42593
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)
|
|
1088
|
33380
|
42543
-
43294
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))))
|
|
1088
|
45581
|
42594
-
42594
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1088
|
33092
|
42543
-
42615
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)).asDirectiveOrNotFound
|
|
1089
|
47200
|
42646
-
42701
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)
|
|
1089
|
41715
|
42670
-
42679
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1089
|
33303
|
42681
-
42700
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1089
|
37798
|
42646
-
43278
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
|
|
1090
|
48247
|
42722
-
42781
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound
|
|
1090
|
45369
|
42722
-
43260
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))
|
|
1090
|
39842
|
42760
-
42760
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.user.User]
|
|
1090
|
39629
|
42742
-
42758
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1090
|
31204
|
42722
-
42759
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)
|
|
1092
|
37763
|
42817
-
43118
|
Apply
|
org.make.api.proposal.ProposalService.lockProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)
|
|
1094
|
32845
|
42957
-
42973
|
Select
|
org.make.core.user.User.userId
|
|
moderator.userId
|
|
1095
|
45619
|
43019
-
43037
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1098
|
33342
|
42817
-
43153
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective
|
|
1098
|
32271
|
42817
-
43240
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$13: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))
|
|
1098
|
46635
|
43142
-
43142
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Unit]
|
|
1099
|
38847
|
43194
-
43215
|
Select
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
1099
|
39881
|
43185
-
43216
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
|
|
1099
|
31244
|
43206
-
43206
|
Select
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode
|
|
marshalling.this.Marshaller.fromStatusCode
|
|
1099
|
48765
|
43194
-
43215
|
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)
|
|
1110
|
32797
|
43385
-
43389
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1110
|
37619
|
43385
-
45696
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("LockMultipleProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
}))))))))))
|
|
1111
|
45474
|
43398
-
45690
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("LockMultipleProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
})))))))))
|
|
1111
|
33129
|
43416
-
43416
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1111
|
31744
|
43403
-
43438
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join0P[Unit])
|
|
1111
|
39343
|
43430
-
43430
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1111
|
46107
|
43403
-
43415
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1111
|
43825
|
43398
-
43439
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock"))(TupleOps.this.Join.join0P[Unit]))
|
|
1111
|
38313
|
43418
-
43429
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1111
|
46435
|
43432
-
43438
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock")
|
|
1112
|
32836
|
43450
-
43450
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1112
|
45875
|
43450
-
43450
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1112
|
39669
|
43464
-
43487
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"LockMultipleProposals"
|
|
1112
|
49903
|
43450
-
45682
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("LockMultipleProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
}))))))))
|
|
1112
|
33167
|
43463
-
43463
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1112
|
37753
|
43450
-
43488
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("LockMultipleProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1113
|
46946
|
43519
-
43529
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1113
|
39376
|
43519
-
43519
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1113
|
36611
|
43519
-
45672
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
}))))))
|
|
1114
|
31504
|
43596
-
43605
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1114
|
44285
|
43574
-
43606
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1114
|
44387
|
43574
-
45660
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
}))))
|
|
1115
|
39708
|
43623
-
43636
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1115
|
31058
|
43623
-
45646
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
})))
|
|
1116
|
35513
|
43655
-
45630
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.LockProposalsRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]).apply(((request: org.make.api.proposal.LockProposalsRequest) => {
val query: org.make.core.proposal.SearchQuery = {
<artifact> val x$32: Some[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
});
<artifact> val x$33: Some[org.make.core.technical.Pagination.Limit] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)));
<artifact> val x$34: Option[org.make.core.proposal.SearchFilters] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$2;
<artifact> val x$35: Option[org.make.core.common.indexed.Sort] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$3;
<artifact> val x$36: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$5;
<artifact> val x$37: Option[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$6;
<artifact> val x$38: Option[org.make.core.proposal.SortAlgorithm] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchQuery.apply$default$7;
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
};
server.this.Directive.addDirectiveApply[(org.make.core.proposal.indexed.ProposalsSearchResult,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
}))
|
|
1116
|
45908
|
43664
-
43664
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)
|
|
1116
|
32585
|
43664
-
43664
|
Select
|
org.make.api.proposal.LockProposalsRequest.codec
|
|
proposal.this.LockProposalsRequest.codec
|
|
1116
|
46981
|
43655
-
43687
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec))))
|
|
1116
|
33633
|
43662
-
43686
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.LockProposalsRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)))
|
|
1116
|
37787
|
43664
-
43664
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.LockProposalsRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec))
|
|
1116
|
39138
|
43661
-
43661
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]
|
|
1117
|
45696
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$2
|
|
org.make.core.proposal.SearchQuery.apply$default$2
|
|
1117
|
31320
|
43731
-
44135
|
Apply
|
org.make.core.proposal.SearchQuery.apply
|
|
org.make.core.proposal.SearchQuery.apply(x$32, x$34, x$35, x$33, x$36, x$37, x$38)
|
|
1117
|
42325
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$6
|
|
org.make.core.proposal.SearchQuery.apply$default$6
|
|
1117
|
38924
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$7
|
|
org.make.core.proposal.SearchQuery.apply$default$7
|
|
1117
|
37832
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$3
|
|
org.make.core.proposal.SearchQuery.apply$default$3
|
|
1117
|
50611
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$5
|
|
org.make.core.proposal.SearchQuery.apply$default$5
|
|
1118
|
31283
|
43774
-
44033
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.proposal.SearchFilters]({
<artifact> val x$1: Some[org.make.core.proposal.ProposalSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq));
<artifact> val x$2: Some[org.make.core.proposal.StatusSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values));
<artifact> val x$3: Option[org.make.core.proposal.InitialProposalFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$2;
<artifact> val x$4: Option[org.make.core.proposal.TagsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$3;
<artifact> val x$5: Option[org.make.core.proposal.LabelsSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$4;
<artifact> val x$6: Option[org.make.core.proposal.OperationSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$5;
<artifact> val x$7: Option[org.make.core.proposal.QuestionSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$6;
<artifact> val x$8: Option[org.make.core.proposal.ContentSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$7;
<artifact> val x$9: Option[org.make.core.proposal.ContextSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$9;
<artifact> val x$10: Option[org.make.core.proposal.SlugSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$10;
<artifact> val x$11: Option[org.make.core.proposal.IdeaSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$11;
<artifact> val x$12: 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$13: Option[org.make.core.proposal.CountrySearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$13;
<artifact> val x$14: Option[org.make.core.proposal.UserSearchFilter] @scala.reflect.internal.annotations.uncheckedBounds = org.make.core.proposal.SearchFilters.apply$default$14;
<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$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
})
|
|
1119
|
37337
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$20
|
|
org.make.core.proposal.SearchFilters.apply$default$20
|
|
1119
|
31021
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$5
|
|
org.make.core.proposal.SearchFilters.apply$default$5
|
|
1119
|
31849
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$27
|
|
org.make.core.proposal.SearchFilters.apply$default$27
|
|
1119
|
45657
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$28
|
|
org.make.core.proposal.SearchFilters.apply$default$28
|
|
1119
|
31529
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$24
|
|
org.make.core.proposal.SearchFilters.apply$default$24
|
|
1119
|
39128
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$23
|
|
org.make.core.proposal.SearchFilters.apply$default$23
|
|
1119
|
33093
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$9
|
|
org.make.core.proposal.SearchFilters.apply$default$9
|
|
1119
|
39660
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$7
|
|
org.make.core.proposal.SearchFilters.apply$default$7
|
|
1119
|
44080
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$6
|
|
org.make.core.proposal.SearchFilters.apply$default$6
|
|
1119
|
47238
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$22
|
|
org.make.core.proposal.SearchFilters.apply$default$22
|
|
1119
|
51159
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$30
|
|
org.make.core.proposal.SearchFilters.apply$default$30
|
|
1119
|
47277
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$31
|
|
org.make.core.proposal.SearchFilters.apply$default$31
|
|
1119
|
45898
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$19
|
|
org.make.core.proposal.SearchFilters.apply$default$19
|
|
1119
|
44624
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$25
|
|
org.make.core.proposal.SearchFilters.apply$default$25
|
|
1119
|
46179
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$13
|
|
org.make.core.proposal.SearchFilters.apply$default$13
|
|
1119
|
44118
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$16
|
|
org.make.core.proposal.SearchFilters.apply$default$16
|
|
1119
|
50856
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$2
|
|
org.make.core.proposal.SearchFilters.apply$default$2
|
|
1119
|
35759
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$26
|
|
org.make.core.proposal.SearchFilters.apply$default$26
|
|
1119
|
30771
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$15
|
|
org.make.core.proposal.SearchFilters.apply$default$15
|
|
1119
|
50108
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$21
|
|
org.make.core.proposal.SearchFilters.apply$default$21
|
|
1119
|
51373
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$12
|
|
org.make.core.proposal.SearchFilters.apply$default$12
|
|
1119
|
37577
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$11
|
|
org.make.core.proposal.SearchFilters.apply$default$11
|
|
1119
|
37021
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$17
|
|
org.make.core.proposal.SearchFilters.apply$default$17
|
|
1119
|
39159
|
43802
-
44011
|
Apply
|
org.make.core.proposal.SearchFilters.apply
|
|
org.make.core.proposal.SearchFilters.apply(x$1, x$3, x$4, x$5, x$6, x$7, x$8, x$2, 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$27, x$28, x$29, x$30, x$31)
|
|
1119
|
31811
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$18
|
|
org.make.core.proposal.SearchFilters.apply$default$18
|
|
1119
|
47449
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$3
|
|
org.make.core.proposal.SearchFilters.apply$default$3
|
|
1119
|
45152
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$10
|
|
org.make.core.proposal.SearchFilters.apply$default$10
|
|
1119
|
38603
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$14
|
|
org.make.core.proposal.SearchFilters.apply$default$14
|
|
1119
|
38076
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$29
|
|
org.make.core.proposal.SearchFilters.apply$default$29
|
|
1119
|
39171
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$4
|
|
org.make.core.proposal.SearchFilters.apply$default$4
|
|
1120
|
44320
|
43857
-
43904
|
Apply
|
org.make.core.proposal.ProposalSearchFilter.apply
|
|
org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq)
|
|
1120
|
40931
|
43852
-
43905
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq))
|
|
1120
|
30986
|
43878
-
43903
|
Select
|
scala.collection.IterableOnceOps.toSeq
|
|
request.proposalIds.toSeq
|
|
1121
|
37540
|
43940
-
43987
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.proposal.StatusSearchFilter](org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values))
|
|
1121
|
32620
|
43964
-
43985
|
Select
|
org.make.core.proposal.ProposalStatus.values
|
|
org.make.core.proposal.ProposalStatus.values
|
|
1121
|
45943
|
43945
-
43986
|
Apply
|
org.make.core.proposal.StatusSearchFilter.apply
|
|
org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values)
|
|
1124
|
44068
|
44085
-
44113
|
Apply
|
scala.Int.+
|
|
request.proposalIds.size.+(1)
|
|
1124
|
32371
|
44063
-
44115
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1)))
|
|
1124
|
35795
|
44068
-
44114
|
Apply
|
org.make.core.technical.Pagination.Limit.apply
|
|
org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1))
|
|
1126
|
43826
|
44154
-
44231
|
Apply
|
org.make.api.proposal.ProposalService.searchInIndex
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)
|
|
1126
|
32407
|
44232
-
44232
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
1126
|
36267
|
44154
-
44243
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.core.proposal.indexed.ProposalsSearchResult](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective
|
|
1126
|
43373
|
44154
-
45612
|
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](DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]).apply(((proposals: org.make.core.proposal.indexed.ProposalsSearchResult) => {
val proposalIds: Seq[org.make.core.proposal.ProposalId] = proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id));
val notFoundIds: scala.collection.immutable.Set[org.make.core.proposal.ProposalId] = request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId]);
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)));
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
}))
|
|
1128
|
37329
|
44319
-
44346
|
Apply
|
scala.collection.IterableOps.map
|
|
proposals.results.map[org.make.core.proposal.ProposalId](((x$14: org.make.core.proposal.indexed.IndexedProposal) => x$14.id))
|
|
1128
|
45451
|
44341
-
44345
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.id
|
|
x$14.id
|
|
1129
|
50645
|
44412
-
44429
|
TypeApply
|
scala.collection.IterableOnceOps.toSet
|
|
proposalIds.toSet[org.make.core.proposal.ProposalId]
|
|
1129
|
43539
|
44387
-
44430
|
Apply
|
scala.collection.immutable.SetOps.diff
|
|
request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId])
|
|
1130
|
32871
|
44453
-
44820
|
Apply
|
org.make.core.Validation.validate
|
|
org.make.core.Validation.validate(org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String)))
|
|
1131
|
36304
|
44498
-
44796
|
Apply
|
org.make.core.Validation.validateField
|
|
org.make.core.Validation.validateField("proposalIds", "invalid_value", notFoundIds.isEmpty, ("Proposals not found: ".+(notFoundIds.mkString(", ")): String))
|
|
1132
|
38958
|
44558
-
44571
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
1133
|
31072
|
44605
-
44620
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1134
|
43862
|
44660
-
44679
|
Select
|
scala.collection.IterableOnceOps.isEmpty
|
|
notFoundIds.isEmpty
|
|
1138
|
37367
|
44919
-
44931
|
Select
|
org.make.core.proposal.indexed.IndexedProposalQuestion.questionId
|
|
x$16.questionId
|
|
1138
|
50399
|
44904
-
44932
|
Apply
|
scala.Option.map
|
|
x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId))
|
|
1138
|
45485
|
44867
-
44876
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1138
|
42279
|
44878
-
44933
|
Apply
|
scala.collection.IterableOps.flatMap
|
|
proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId))))
|
|
1138
|
39408
|
44843
-
44934
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))
|
|
1138
|
50954
|
44843
-
45592
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposals.results.flatMap[org.make.core.question.QuestionId](((x$15: org.make.core.proposal.indexed.IndexedProposal) => x$15.question.map[org.make.core.question.QuestionId](((x$16: org.make.core.proposal.indexed.IndexedProposalQuestion) => x$16.questionId)))))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode)))))))
|
|
1139
|
36814
|
44961
-
45020
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound
|
|
1139
|
48812
|
44999
-
44999
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.user.User]
|
|
1139
|
43901
|
44961
-
44998
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)
|
|
1139
|
37853
|
44961
-
45568
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))))
|
|
1139
|
30561
|
44981
-
44997
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1141
|
50435
|
45062
-
45402
|
Apply
|
org.make.api.proposal.ProposalService.lockProposals
|
|
DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)
|
|
1143
|
45944
|
45223
-
45239
|
Select
|
org.make.core.user.User.userId
|
|
moderator.userId
|
|
1144
|
37125
|
45291
-
45309
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1147
|
39447
|
45432
-
45432
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Unit]
|
|
1147
|
45440
|
45062
-
45542
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Unit,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective)(util.this.ApplyConverter.hac1[Unit]).apply(((x$17: Unit) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))))
|
|
1147
|
43334
|
45062
-
45443
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Unit](DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)).asDirective
|
|
1148
|
31310
|
45490
-
45511
|
Select
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
1148
|
43649
|
45502
-
45502
|
Select
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode
|
|
marshalling.this.Marshaller.fromStatusCode
|
|
1148
|
49863
|
45481
-
45512
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
|
|
1148
|
36853
|
45490
-
45511
|
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)
|
|
1161
|
50387
|
45744
-
45748
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1161
|
39974
|
45744
-
48061
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("change-idea"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ChangeProposalsIdea", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$18: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
}))))))))))))
|
|
1162
|
36042
|
45789
-
45789
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1162
|
49320
|
45762
-
45804
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("change-idea"))(TupleOps.this.Join.join0P[Unit])
|
|
1162
|
31095
|
45775
-
45775
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1162
|
48386
|
45757
-
48055
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("change-idea"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ChangeProposalsIdea", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$18: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
})))))))))))
|
|
1162
|
35000
|
45777
-
45788
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1162
|
42521
|
45762
-
45774
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1162
|
43606
|
45791
-
45804
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("change-idea")
|
|
1162
|
45224
|
45757
-
45805
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("change-idea"))(TupleOps.this.Join.join0P[Unit]))
|
|
1163
|
50146
|
45816
-
45816
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1163
|
37654
|
45830
-
45851
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"ChangeProposalsIdea"
|
|
1163
|
35075
|
45816
-
48047
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("ChangeProposalsIdea", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$18: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
}))))))))))
|
|
1163
|
42554
|
45816
-
45816
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1163
|
34446
|
45816
-
45852
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("ChangeProposalsIdea", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1163
|
30848
|
45829
-
45829
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1164
|
35796
|
45870
-
45870
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1164
|
43201
|
45870
-
48037
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
}))))))))
|
|
1164
|
43642
|
45870
-
45880
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1165
|
49855
|
45942
-
45951
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1165
|
50465
|
45925
-
48025
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
}))))))
|
|
1165
|
40976
|
45925
-
45952
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole
|
|
DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)
|
|
1166
|
37415
|
45969
-
45982
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1166
|
33997
|
45969
-
48011
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
})))))
|
|
1167
|
41855
|
46001
-
47995
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.PatchProposalsIdeaRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]).apply(((changes: org.make.api.proposal.PatchProposalsIdeaRequest) => server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
}))))
|
|
1167
|
35503
|
46010
-
46010
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder))
|
|
1167
|
50181
|
46010
-
46010
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.decoder
|
|
proposal.this.PatchProposalsIdeaRequest.decoder
|
|
1167
|
31606
|
46008
-
46037
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)))
|
|
1167
|
35834
|
46007
-
46007
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]
|
|
1167
|
44701
|
46001
-
46038
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.PatchProposalsIdeaRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder))))
|
|
1167
|
42595
|
46010
-
46010
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)
|
|
1168
|
50220
|
46107
-
46107
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]
|
|
1168
|
49891
|
46091
-
46105
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.ideaId
|
|
changes.ideaId
|
|
1168
|
49430
|
46070
-
47977
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Option[org.make.core.idea.Idea],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]).apply(((maybeIdea: Option[org.make.core.idea.Idea]) => {
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
});
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
}))
|
|
1168
|
42036
|
46070
-
46106
|
Apply
|
org.make.api.idea.IdeaService.fetchOne
|
|
DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)
|
|
1168
|
37607
|
46070
-
46118
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.idea.Idea]](DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)).asDirective
|
|
1169
|
49639
|
46154
-
46350
|
Apply
|
org.make.core.Validation.validate
|
|
org.make.core.Validation.validate({
<artifact> val x$1: () => Option[org.make.core.idea.Idea] @scala.reflect.internal.annotations.uncheckedBounds = (() => maybeIdea);
<artifact> val x$2: String("ideaId") = "ideaId";
<artifact> val x$3: Some[String] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[String]("Invalid idea id");
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
})
|
|
1171
|
35543
|
46304
-
46327
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String]("Invalid idea id")
|
|
1171
|
43123
|
46284
-
46292
|
Literal
|
<nosymbol>
|
|
"ideaId"
|
|
1171
|
31352
|
46284
-
46284
|
Literal
|
<nosymbol>
|
|
"ideaId"
|
|
1171
|
44142
|
46261
-
46261
|
Apply
|
scala.Function0.apply
|
|
x$1.apply()
|
|
1171
|
35873
|
46197
-
46328
|
Apply
|
org.make.core.Validation.requirePresent
|
|
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
|
|
1173
|
44180
|
46371
-
46454
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective
|
|
1173
|
48064
|
46371
-
46442
|
ApplyToImplicitArgs
|
cats.Traverse.Ops.traverse
|
|
cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))
|
|
1173
|
36688
|
46371
-
47957
|
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]]](cats.implicits.toTraverseOps[Seq, org.make.core.proposal.ProposalId](changes.proposalIds)(cats.this.UnorderedFoldable.catsTraverseForSeq).traverse[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]]({
<synthetic> val eta$0$1: org.make.api.proposal.ProposalService = DefaultModerationProposalApiComponent.this.proposalService;
((proposalId: org.make.core.proposal.ProposalId) => eta$0$1.getModerationProposalById(proposalId))
})(cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global))).asDirective)(util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]).apply(((proposals: Seq[Option[org.make.api.proposal.ModerationProposalResponse]]) => {
val invalidProposalIdValues: Seq[String] = changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)));
val invalidProposalIdValuesString: String = invalidProposalIdValues.mkString(", ");
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
});
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
}))
|
|
1173
|
35784
|
46443
-
46443
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]
|
|
1173
|
43159
|
46399
-
46399
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
1173
|
35293
|
46399
-
46399
|
ApplyToImplicitArgs
|
cats.instances.FutureInstances.catsStdInstancesForFuture
|
|
cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)
|
|
1173
|
42076
|
46371
-
46390
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.proposalIds
|
|
changes.proposalIds
|
|
1173
|
37368
|
46379
-
46379
|
Select
|
cats.UnorderedFoldableLowPriority.catsTraverseForSeq
|
|
cats.this.UnorderedFoldable.catsTraverseForSeq
|
|
1173
|
50682
|
46400
-
46441
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
eta$0$1.getModerationProposalById(proposalId)
|
|
1175
|
42313
|
46559
-
46639
|
Apply
|
scala.collection.SeqOps.diff
|
|
changes.proposalIds.map[String](((x$19: org.make.core.proposal.ProposalId) => x$19.value)).diff[String](proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value)))
|
|
1175
|
37402
|
46619
-
46637
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$20.proposalId.value
|
|
1175
|
49681
|
46583
-
46590
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$19.value
|
|
1175
|
50715
|
46597
-
46638
|
Apply
|
scala.collection.IterableOps.map
|
|
proposals.flatten[org.make.api.proposal.ModerationProposalResponse](scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]).map[String](((x$20: org.make.api.proposal.ModerationProposalResponse) => x$20.proposalId.value))
|
|
1175
|
41827
|
46607
-
46607
|
TypeApply
|
scala.Predef.$conforms
|
|
scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]
|
|
1176
|
35331
|
46706
-
46744
|
Apply
|
scala.collection.IterableOnceOps.mkString
|
|
invalidProposalIdValues.mkString(", ")
|
|
1177
|
34488
|
46767
-
47151
|
Apply
|
org.make.core.Validation.validate
|
|
org.make.core.Validation.validate({
<artifact> val x$4: String("proposalIds") = "proposalIds";
<artifact> val x$5: String("invalid_value") = "invalid_value";
<artifact> val x$6: () => String @scala.reflect.internal.annotations.uncheckedBounds = (() => ("Some proposal ids are invalid: ".+(invalidProposalIdValuesString): String));
<artifact> val x$7: () => Boolean @scala.reflect.internal.annotations.uncheckedBounds = (() => invalidProposalIdValues.isEmpty);
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
})
|
|
1178
|
42349
|
46812
-
47127
|
Apply
|
org.make.core.Validation.validateField
|
|
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
|
|
1179
|
48841
|
46872
-
46872
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
1179
|
47814
|
46872
-
46885
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
1180
|
43937
|
46913
-
46928
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1180
|
41324
|
46913
-
46913
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1181
|
51233
|
46966
-
46966
|
Apply
|
scala.Function0.apply
|
|
x$6.apply()
|
|
1182
|
33745
|
47094
-
47094
|
Apply
|
scala.Function0.apply
|
|
x$7.apply()
|
|
1182
|
35823
|
47070
-
47101
|
Select
|
scala.collection.SeqOps.isEmpty
|
|
invalidProposalIdValues.isEmpty
|
|
1186
|
47855
|
47235
-
47254
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.proposalIds
|
|
changes.proposalIds
|
|
1186
|
43973
|
47270
-
47286
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1186
|
48873
|
47174
-
47303
|
Apply
|
org.make.api.proposal.ProposalService.changeProposalsIdea
|
|
DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)
|
|
1186
|
36887
|
47288
-
47302
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.ideaId
|
|
changes.ideaId
|
|
1187
|
40217
|
47174
-
47935
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Seq[org.make.core.proposal.Proposal],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]).apply(((updatedProposals: Seq[org.make.core.proposal.Proposal]) => {
val proposalIdsDiff: Seq[String] = changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)));
if (proposalIdsDiff.nonEmpty)
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
else
();
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
}))
|
|
1187
|
33491
|
47329
-
47329
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]
|
|
1187
|
42063
|
47174
-
47340
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.proposal.Proposal]](DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)).asDirective
|
|
1189
|
48585
|
47452
-
47531
|
Apply
|
scala.collection.SeqOps.diff
|
|
changes.proposalIds.map[String](((x$21: org.make.core.proposal.ProposalId) => x$21.value)).diff[String](updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value)))
|
|
1189
|
43408
|
47511
-
47529
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$22.proposalId.value
|
|
1189
|
35285
|
47490
-
47530
|
Apply
|
scala.collection.IterableOps.map
|
|
updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value))
|
|
1189
|
51271
|
47476
-
47483
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$21.value
|
|
1190
|
43722
|
47562
-
47586
|
Select
|
scala.collection.IterableOnceOps.nonEmpty
|
|
proposalIdsDiff.nonEmpty
|
|
1190
|
34238
|
47558
-
47558
|
Block
|
<nosymbol>
|
|
()
|
|
1190
|
41816
|
47558
-
47558
|
Literal
|
<nosymbol>
|
|
()
|
|
1192
|
49944
|
47618
-
47823
|
Block
|
grizzled.slf4j.Logger.warn
|
|
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
|
|
1192
|
36920
|
47618
-
47823
|
Apply
|
grizzled.slf4j.Logger.warn
|
|
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
|
|
1196
|
48351
|
47878
-
47909
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[akka.http.scaladsl.model.StatusCodes.Success](akka.http.scaladsl.model.StatusCodes.NoContent)(marshalling.this.Marshaller.fromStatusCode))
|
|
1196
|
35318
|
47887
-
47908
|
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)
|
|
1196
|
43445
|
47899
-
47899
|
Select
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode
|
|
marshalling.this.Marshaller.fromStatusCode
|
|
1196
|
51029
|
47887
-
47908
|
Select
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
1208
|
49748
|
48110
-
49950
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next-author-to-moderate"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("NextAuthorToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((context: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))))))))))))))
|
|
1208
|
36116
|
48110
-
48114
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1209
|
49464
|
48128
-
48140
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1209
|
48145
|
48123
-
48183
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next-author-to-moderate"))(TupleOps.this.Join.join0P[Unit]))
|
|
1209
|
35111
|
48128
-
48182
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next-author-to-moderate"))(TupleOps.this.Join.join0P[Unit])
|
|
1209
|
33481
|
48141
-
48141
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1209
|
41609
|
48143
-
48154
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1209
|
43394
|
48155
-
48155
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1209
|
31955
|
48123
-
49944
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next-author-to-moderate"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("NextAuthorToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((context: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]))))))))))))))))))
|
|
1209
|
50221
|
48157
-
48182
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("next-author-to-moderate")
|
|
1210
|
49931
|
48194
-
48194
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1210
|
40869
|
48194
-
49936
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("NextAuthorToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((context: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))))))))))))
|
|
1210
|
33230
|
48207
-
48207
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1210
|
41648
|
48194
-
48231
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("NextAuthorToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1210
|
36157
|
48194
-
48194
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1210
|
40014
|
48208
-
48230
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"NextAuthorToModerate"
|
|
1211
|
43435
|
48255
-
48255
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1211
|
47969
|
48255
-
49926
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.this.makeOAuth2)(util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]).apply(((auth: scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))))))))))
|
|
1211
|
46537
|
48255
-
48265
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1212
|
35577
|
48310
-
48319
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1212
|
47635
|
48288
-
48320
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1212
|
35358
|
48288
-
49914
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))))))))
|
|
1213
|
39768
|
48337
-
48350
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1213
|
38461
|
48337
-
49900
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]))))))))))))
|
|
1214
|
46324
|
48369
-
49884
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))))))
|
|
1214
|
43189
|
48375
-
48375
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]
|
|
1214
|
33269
|
48376
-
48409
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))
|
|
1214
|
42109
|
48378
-
48378
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder))
|
|
1214
|
36675
|
48378
-
48378
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.decoder
|
|
proposal.this.NextProposalToModerateRequest.decoder
|
|
1214
|
46567
|
48369
-
48410
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder))))
|
|
1214
|
49967
|
48378
-
48378
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)
|
|
1216
|
35615
|
48486
-
48513
|
Apply
|
org.make.api.question.QuestionService.getQuestion
|
|
eta$0$1.getQuestion(questionId)
|
|
1217
|
32977
|
48442
-
48570
|
Apply
|
scala.Option.getOrElse
|
|
request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))
|
|
1217
|
39810
|
48546
-
48569
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[None.type](scala.None)
|
|
1217
|
48096
|
48564
-
48568
|
Select
|
scala.None
|
|
scala.None
|
|
1218
|
49717
|
48442
-
48613
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound
|
|
1218
|
41603
|
48592
-
48592
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
1219
|
33565
|
48442
-
49866
|
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](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]]({
<synthetic> val eta$0$1: org.make.api.question.QuestionService = DefaultModerationProposalApiComponent.this.questionService;
((questionId: org.make.core.question.QuestionId) => eta$0$1.getQuestion(questionId))
}).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))))
|
|
1221
|
34024
|
48724
-
48733
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1221
|
47080
|
48740
-
48759
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1221
|
41436
|
48700
-
49844
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))))))
|
|
1221
|
35371
|
48700
-
48761
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
|
|
1221
|
43230
|
48735
-
48760
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
1223
|
40545
|
48790
-
48856
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)
|
|
1223
|
48134
|
48839
-
48855
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1224
|
49757
|
48886
-
48886
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad
|
|
1224
|
32721
|
48790
-
48907
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound
|
|
1225
|
41400
|
48790
-
49770
|
Apply
|
cats.FlatMap.Ops.flatMap
|
|
cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound))
|
|
1225
|
33815
|
48944
-
48944
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]
|
|
1228
|
32162
|
49021
-
49683
|
Apply
|
org.make.api.proposal.ProposalService.searchAndLockAuthorToModerate
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)
|
|
1229
|
41362
|
49152
-
49171
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1230
|
33782
|
49221
-
49237
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1231
|
46524
|
49295
-
49313
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1232
|
42993
|
49363
-
49380
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.languages
|
|
request.languages
|
|
1234
|
34860
|
49491
-
49507
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.toEnrich
|
|
request.toEnrich
|
|
1235
|
48172
|
49561
-
49582
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minVotesCount
|
|
request.minVotesCount
|
|
1236
|
40293
|
49631
-
49647
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minScore
|
|
request.minScore
|
|
1238
|
49504
|
49021
-
49740
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound
|
|
1240
|
31918
|
49806
-
49817
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]))))
|
|
1240
|
47933
|
49815
-
49815
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]))
|
|
1240
|
38709
|
49815
-
49815
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]
|
|
1240
|
46287
|
49815
-
49815
|
Select
|
org.make.api.proposal.ModerationAuthorResponse.codec
|
|
proposal.this.ModerationAuthorResponse.codec
|
|
1240
|
49705
|
48790
-
49818
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationAuthorResponse,)](cats.implicits.toFlatMapOps[akka.http.scaladsl.server.Directive1, org.make.core.user.User](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)).asDirectiveOrNotFound)(org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad).flatMap[org.make.api.proposal.ModerationAuthorResponse](((moderator: org.make.core.user.User) => org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockAuthorToModerate(question.questionId, auth.user.userId, moderator.fullName, request.languages, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)))(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]).apply(((x$23: org.make.api.proposal.ModerationAuthorResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]))))))
|
|
1240
|
34626
|
49815
-
49815
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])
|
|
1240
|
39799
|
49815
-
49816
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationAuthorResponse](x$23)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationAuthorResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationAuthorResponse](proposal.this.ModerationAuthorResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse])))
|
|
1251
|
33335
|
50001
-
51415
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("NextProposalToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((context: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))))))))
|
|
1251
|
41890
|
50001
-
50005
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1252
|
39266
|
50032
-
50032
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1252
|
34376
|
50019
-
50031
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1252
|
40904
|
50019
-
50054
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next"))(TupleOps.this.Join.join0P[Unit])
|
|
1252
|
35395
|
50048
-
50054
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("next")
|
|
1252
|
48422
|
50046
-
50046
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1252
|
37757
|
50014
-
51409
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("NextProposalToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((context: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))))))))))
|
|
1252
|
47384
|
50034
-
50045
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1252
|
33022
|
50014
-
50055
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("next"))(TupleOps.this.Join.join0P[Unit]))
|
|
1253
|
39299
|
50079
-
50079
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1253
|
33518
|
50066
-
50066
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1253
|
41927
|
50066
-
50066
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1253
|
45796
|
50080
-
50104
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"NextProposalToModerate"
|
|
1253
|
47419
|
50066
-
50105
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("NextProposalToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1253
|
45329
|
50066
-
51401
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("NextProposalToModerate", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((context: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))))))
|
|
1254
|
47924
|
50129
-
50129
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1254
|
35142
|
50129
-
50139
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1254
|
32840
|
50129
-
51391
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))))
|
|
1255
|
39836
|
50162
-
51379
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))))
|
|
1255
|
40045
|
50184
-
50193
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1255
|
32508
|
50162
-
50194
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)
|
|
1256
|
48243
|
50211
-
51365
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))))))))
|
|
1256
|
45835
|
50211
-
50224
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1257
|
47670
|
50249
-
50249
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]
|
|
1257
|
39059
|
50250
-
50283
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))
|
|
1257
|
46568
|
50252
-
50252
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder))
|
|
1257
|
31199
|
50243
-
51349
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.NextProposalToModerateRequest,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]).apply(((request: org.make.api.proposal.NextProposalToModerateRequest) => server.this.Directive.addDirectiveApply[(org.make.core.question.Question,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))))
|
|
1257
|
31462
|
50243
-
50284
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApi.this.as[org.make.api.proposal.NextProposalToModerateRequest](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.NextProposalToModerateRequest](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder))))
|
|
1257
|
41681
|
50252
-
50252
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.decoder
|
|
proposal.this.NextProposalToModerateRequest.decoder
|
|
1257
|
33555
|
50252
-
50252
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)
|
|
1259
|
40081
|
50375
-
50414
|
Apply
|
org.make.api.question.QuestionService.getQuestion
|
|
DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId)
|
|
1260
|
39347
|
50316
-
51331
|
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](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.question.Question]).apply(((question: org.make.core.question.Question) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))))
|
|
1260
|
46605
|
50470
-
50470
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
1260
|
31939
|
50463
-
50467
|
Select
|
scala.None
|
|
scala.None
|
|
1260
|
45585
|
50445
-
50468
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[None.type](scala.None)
|
|
1260
|
33308
|
50316
-
50491
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.question.Question](request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))).asDirectiveOrNotFound
|
|
1260
|
41187
|
50316
-
50469
|
Apply
|
scala.Option.getOrElse
|
|
request.questionId.map[scala.concurrent.Future[Option[org.make.core.question.Question]]](((questionId: org.make.core.question.QuestionId) => DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId))).getOrElse[scala.concurrent.Future[Option[org.make.core.question.Question]]](scala.concurrent.Future.successful[None.type](scala.None))
|
|
1261
|
47197
|
50526
-
51311
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))).apply(server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))))))))
|
|
1261
|
31208
|
50566
-
50585
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1261
|
40114
|
50526
-
50587
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
|
|
1261
|
38484
|
50550
-
50559
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1261
|
47707
|
50561
-
50586
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
1262
|
42245
|
50612
-
50671
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound
|
|
1262
|
45007
|
50612
-
50649
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)
|
|
1262
|
33849
|
50612
-
51289
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.user.User,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.user.User](DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.user.User]).apply(((moderator: org.make.core.user.User) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))))
|
|
1262
|
33346
|
50650
-
50650
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.user.User]
|
|
1262
|
33014
|
50632
-
50648
|
Select
|
org.make.core.auth.UserRights.userId
|
|
user.user.userId
|
|
1264
|
37962
|
50711
-
51170
|
Apply
|
org.make.api.proposal.ProposalService.searchAndLockProposalToModerate
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)
|
|
1265
|
47407
|
50815
-
50834
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1266
|
39552
|
50864
-
50880
|
Select
|
org.make.core.user.User.userId
|
|
moderator.userId
|
|
1267
|
31416
|
50910
-
50928
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1268
|
48768
|
50958
-
50962
|
Select
|
scala.None
|
|
scala.None
|
|
1270
|
39884
|
51029
-
51045
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.toEnrich
|
|
request.toEnrich
|
|
1271
|
33050
|
51075
-
51096
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minVotesCount
|
|
request.minVotesCount
|
|
1272
|
46081
|
51126
-
51142
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minScore
|
|
request.minScore
|
|
1274
|
33388
|
50711
-
51219
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound
|
|
1274
|
47162
|
51198
-
51198
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1275
|
31161
|
51262
-
51262
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1275
|
40683
|
51262
-
51262
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))
|
|
1275
|
37997
|
50711
-
51265
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.ModerationProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.searchAndLockProposalToModerate(question.questionId, moderator.userId, moderator.fullName, scala.None, context, request.toEnrich, request.minVotesCount, request.minScore)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]).apply(((x$24: org.make.api.proposal.ModerationProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))))
|
|
1275
|
39588
|
51262
-
51262
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1275
|
48206
|
51262
-
51262
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])
|
|
1275
|
45577
|
51253
-
51264
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]))))
|
|
1275
|
32801
|
51262
-
51263
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.ModerationProposalResponse](x$24)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.ModerationProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.ModerationProposalResponse](proposal.this.ModerationProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse])))
|
|
1287
|
46359
|
51462
-
51465
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
1287
|
37536
|
51462
-
52056
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.get).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tags"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((moderationProposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("GetTagsForProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$25: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse])))))))))))))))))
|
|
1288
|
31987
|
51506
-
51506
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
1288
|
45367
|
51531
-
51537
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("tags")
|
|
1288
|
45663
|
51474
-
52050
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tags"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))))(util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]).apply(((moderationProposalId: org.make.core.proposal.ProposalId) => server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("GetTagsForProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$25: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))))))))))))))))
|
|
1288
|
44290
|
51492
-
51492
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1288
|
38844
|
51479
-
51491
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1288
|
39875
|
51508
-
51528
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1288
|
39301
|
51474
-
51538
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tags"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])))
|
|
1288
|
31238
|
51494
-
51505
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1288
|
34408
|
51529
-
51529
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.util.TupleOps.LowLevelJoinImplicits.join
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type])
|
|
1288
|
46394
|
51479
-
51537
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[(org.make.core.proposal.ProposalId,)](DefaultModerationProposalApi.this.moderationProposalId)(TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tags"))(TupleOps.this.Join.join[(org.make.core.proposal.ProposalId,), Unit](TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]))
|
|
1288
|
37793
|
51529
-
51529
|
TypeApply
|
akka.http.scaladsl.server.util.TupleFoldInstances.t0
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.FoldLeft.t0[(org.make.core.proposal.ProposalId,), akka.http.scaladsl.server.util.TupleOps.Join.Fold.type]
|
|
1288
|
30989
|
51478
-
51478
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
1289
|
43785
|
51587
-
51607
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"GetTagsForProposal"
|
|
1289
|
46099
|
51573
-
51608
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("GetTagsForProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1289
|
40937
|
51573
-
51573
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1289
|
37545
|
51586
-
51586
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1289
|
32790
|
51573
-
51573
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1289
|
32015
|
51573
-
52042
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("GetTagsForProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3))(util.this.ApplyConverter.hac1[org.make.core.RequestContext]).apply(((x$25: org.make.core.RequestContext) => server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))))))))))))))
|
|
1290
|
50326
|
51626
-
51636
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1290
|
47455
|
51626
-
51626
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1290
|
36479
|
51626
-
52032
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))))))))))))
|
|
1291
|
39338
|
51681
-
51690
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1291
|
44036
|
51659
-
52020
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)).apply(server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))))))))))
|
|
1291
|
31735
|
51659
-
51691
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)
|
|
1292
|
32830
|
51769
-
51769
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1292
|
44833
|
51708
-
51768
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)
|
|
1292
|
30983
|
51708
-
52006
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.core.proposal.Proposal,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound)(util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]).apply(((proposal: org.make.core.proposal.Proposal) => server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse])))))))))
|
|
1292
|
39664
|
51708
-
51790
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes.asDirectiveOrNotFound
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureOptionWithRoutes[org.make.core.proposal.Proposal](DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)).asDirectiveOrNotFound
|
|
1293
|
37746
|
51856
-
51875
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1293
|
39133
|
51821
-
51990
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse])))))))
|
|
1293
|
51376
|
51821
-
51876
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)
|
|
1293
|
45870
|
51845
-
51854
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1294
|
45902
|
51969
-
51969
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))
|
|
1294
|
46975
|
51897
-
51972
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.TagsForProposalResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]).apply(((x$26: org.make.api.proposal.TagsForProposalResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))))))
|
|
1294
|
39370
|
51897
-
51953
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)).asDirective
|
|
1294
|
31498
|
51942
-
51942
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]
|
|
1294
|
40730
|
51969
-
51969
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]
|
|
1294
|
46185
|
51897
-
51941
|
Apply
|
org.make.api.proposal.ProposalService.getTagsForProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)
|
|
1294
|
44277
|
51969
-
51969
|
Select
|
org.make.api.proposal.TagsForProposalResponse.codec
|
|
proposal.this.TagsForProposalResponse.codec
|
|
1294
|
32580
|
51969
-
51969
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse])
|
|
1294
|
37502
|
51969
-
51970
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse])))
|
|
1294
|
50816
|
51960
-
51971
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.TagsForProposalResponse](x$26)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.TagsForProposalResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.TagsForProposalResponse](proposal.this.TagsForProposalResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]))))
|
|
1303
|
50031
|
52112
-
52719
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse-initials-proposals"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkRefuseInitialsProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))))))))))))
|
|
1303
|
50850
|
52112
-
52116
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1304
|
30734
|
52143
-
52143
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1304
|
45857
|
52125
-
52187
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse-initials-proposals"))(TupleOps.this.Join.join0P[Unit]))
|
|
1304
|
44074
|
52159
-
52186
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse-initials-proposals")
|
|
1304
|
33086
|
52130
-
52186
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse-initials-proposals"))(TupleOps.this.Join.join0P[Unit])
|
|
1304
|
35969
|
52157
-
52157
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1304
|
38562
|
52145
-
52156
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1304
|
47444
|
52130
-
52142
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1304
|
36259
|
52125
-
52713
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse-initials-proposals"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkRefuseInitialsProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])))))))))))))))
|
|
1305
|
37298
|
52212
-
52241
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"BulkRefuseInitialsProposals"
|
|
1305
|
43820
|
52198
-
52705
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkRefuseInitialsProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))))))))))
|
|
1305
|
39623
|
52198
-
52242
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("BulkRefuseInitialsProposals", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1305
|
46172
|
52198
-
52198
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1305
|
50616
|
52198
-
52198
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1305
|
31488
|
52211
-
52211
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1306
|
44111
|
52273
-
52283
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1306
|
37019
|
52273
-
52273
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1306
|
31315
|
52273
-
52695
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))))))))
|
|
1307
|
38918
|
52310
-
52683
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))))))
|
|
1307
|
31806
|
52332
-
52345
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
1307
|
45613
|
52310
-
52346
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
1308
|
42731
|
52363
-
52669
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])))))))))
|
|
1308
|
38038
|
52363
-
52376
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1309
|
43543
|
52404
-
52404
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)
|
|
1309
|
39120
|
52404
-
52404
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec))
|
|
1309
|
50104
|
52404
-
52404
|
Select
|
org.make.api.proposal.BulkRefuseProposal.codec
|
|
proposal.this.BulkRefuseProposal.codec
|
|
1309
|
44562
|
52395
-
52425
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec))))
|
|
1309
|
31239
|
52402
-
52424
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))
|
|
1309
|
35755
|
52401
-
52401
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]
|
|
1309
|
50605
|
52395
-
52653
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkRefuseProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkRefuseProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkRefuseProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]).apply(((request: org.make.api.proposal.BulkRefuseProposal) => server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))))
|
|
1311
|
45650
|
52525
-
52545
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
1311
|
32877
|
52504
-
52523
|
Select
|
org.make.api.proposal.BulkRefuseProposal.proposalIds
|
|
request.proposalIds
|
|
1311
|
38068
|
52457
-
52562
|
Apply
|
org.make.api.proposal.ProposalService.refuseAll
|
|
DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)
|
|
1312
|
50570
|
52457
-
52595
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective
|
|
1312
|
42283
|
52584
-
52584
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]
|
|
1313
|
45690
|
52623
-
52634
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))
|
|
1313
|
37827
|
52457
-
52635
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$27: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
|
|
1313
|
38880
|
52632
-
52632
|
Select
|
org.make.api.proposal.BulkActionResponse.codec
|
|
proposal.this.BulkActionResponse.codec
|
|
1313
|
44062
|
52632
-
52632
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])
|
|
1313
|
31277
|
52632
-
52632
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]
|
|
1313
|
48817
|
52632
-
52633
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$27)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])))
|
|
1313
|
36223
|
52632
-
52632
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))
|
|
1322
|
45445
|
52763
-
52767
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1322
|
50177
|
52763
-
53858
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.post).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))))))))
|
|
1323
|
37406
|
52776
-
53852
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
})))))))))))
|
|
1323
|
31063
|
52808
-
52808
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1323
|
42765
|
52794
-
52794
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1323
|
38344
|
52810
-
52815
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag")
|
|
1323
|
37324
|
52781
-
52793
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1323
|
36014
|
52776
-
52816
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit]))
|
|
1323
|
43858
|
52781
-
52815
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit])
|
|
1323
|
50359
|
52796
-
52807
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1324
|
37086
|
52827
-
52827
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1324
|
44867
|
52827
-
52827
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1324
|
50073
|
52841
-
52858
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"BulkTagProposal"
|
|
1324
|
50393
|
52827
-
52859
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("BulkTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1324
|
41994
|
52827
-
53844
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))))))
|
|
1324
|
43295
|
52840
-
52840
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1325
|
35722
|
52890
-
52900
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1325
|
49082
|
52890
-
53834
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))))
|
|
1325
|
31264
|
52890
-
52890
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1326
|
35790
|
52927
-
53822
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))
|
|
1326
|
43613
|
52949
-
52962
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
1326
|
36049
|
52927
-
52963
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
1327
|
48805
|
52980
-
52993
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1327
|
43637
|
52980
-
53808
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
})))))
|
|
1328
|
48067
|
53012
-
53792
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]).apply(((request: org.make.api.proposal.BulkTagProposal) => server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))
|
|
1328
|
45937
|
53021
-
53021
|
Select
|
org.make.api.proposal.BulkTagProposal.codec
|
|
proposal.this.BulkTagProposal.codec
|
|
1328
|
34450
|
53012
-
53039
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec))))
|
|
1328
|
43332
|
53019
-
53038
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)))
|
|
1328
|
50150
|
53021
-
53021
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec))
|
|
1328
|
31016
|
53018
-
53018
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]
|
|
1328
|
37816
|
53021
-
53021
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)
|
|
1329
|
35459
|
53071
-
53774
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Seq[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective)(util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]).apply(((foundTags: Seq[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))
|
|
1329
|
44347
|
53095
-
53109
|
Select
|
org.make.api.proposal.BulkTagProposal.tagIds
|
|
request.tagIds
|
|
1329
|
45432
|
53111
-
53111
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]
|
|
1329
|
49858
|
53071
-
53122
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Seq[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)).asDirective
|
|
1329
|
36848
|
53071
-
53110
|
Apply
|
org.make.api.tag.TagService.findByTagIds
|
|
DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)
|
|
1330
|
37570
|
53212
-
53219
|
Select
|
org.make.core.tag.Tag.tagId
|
|
x$28.tagId
|
|
1330
|
49897
|
53158
-
53530
|
Apply
|
org.make.core.Validation.validate
|
|
org.make.core.Validation.validate((request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String)))): _*))
|
|
1330
|
50889
|
53198
-
53220
|
Apply
|
scala.collection.IterableOps.map
|
|
foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))
|
|
1330
|
36004
|
53178
-
53525
|
Apply
|
scala.collection.IterableOps.map
|
|
request.tagIds.diff[org.make.core.tag.TagId](foundTags.map[org.make.core.tag.TagId](((x$28: org.make.core.tag.Tag) => x$28.tagId))).map[org.make.core.Requirement](((tagId: org.make.core.tag.TagId) => org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String))))
|
|
1331
|
44112
|
53259
-
53503
|
Apply
|
org.make.core.Validation.validateField
|
|
org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String))
|
|
1332
|
43367
|
53317
-
53324
|
Literal
|
<nosymbol>
|
|
"tagId"
|
|
1333
|
35507
|
53356
-
53371
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1334
|
31051
|
53409
-
53414
|
Literal
|
<nosymbol>
|
|
false
|
|
1339
|
50382
|
53640
-
53660
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
1339
|
41494
|
53603
-
53622
|
Select
|
org.make.api.proposal.BulkTagProposal.proposalIds
|
|
request.proposalIds
|
|
1339
|
42516
|
53551
-
53677
|
Apply
|
org.make.api.proposal.ProposalService.addTagsToAll
|
|
DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)
|
|
1339
|
37613
|
53624
-
53638
|
Select
|
org.make.api.proposal.BulkTagProposal.tagIds
|
|
request.tagIds
|
|
1340
|
35549
|
53551
-
53712
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective
|
|
1340
|
30806
|
53701
-
53701
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]
|
|
1341
|
42547
|
53551
-
53754
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$29: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
|
|
1341
|
50140
|
53742
-
53753
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))
|
|
1341
|
41536
|
53751
-
53751
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))
|
|
1341
|
49048
|
53751
-
53751
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])
|
|
1341
|
44148
|
53751
-
53751
|
Select
|
org.make.api.proposal.BulkActionResponse.codec
|
|
proposal.this.BulkActionResponse.codec
|
|
1341
|
36034
|
53751
-
53751
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]
|
|
1341
|
37649
|
53751
-
53752
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$29)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])))
|
|
1351
|
42319
|
53908
-
53914
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.delete
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.delete
|
|
1351
|
47301
|
53908
-
54972
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.delete).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkDeleteTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))))))))
|
|
1352
|
49599
|
53955
-
53955
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1352
|
42032
|
53928
-
53962
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.PathMatcher./
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit])
|
|
1352
|
35497
|
53928
-
53940
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1352
|
47492
|
53943
-
53954
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1352
|
37599
|
53923
-
53963
|
Apply
|
akka.http.scaladsl.server.directives.PathDirectives.path
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit]))
|
|
1352
|
35828
|
53957
-
53962
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag")
|
|
1352
|
44695
|
53941
-
53941
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1352
|
33956
|
53923
-
54966
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.path[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("moderation")./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals"))(TupleOps.this.Join.join0P[Unit])./[Unit](DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag"))(TupleOps.this.Join.join0P[Unit]))).apply(server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkDeleteTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
})))))))))))
|
|
1353
|
41811
|
53974
-
54958
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(org.make.core.RequestContext,)](DefaultModerationProposalApiComponent.this.makeOperation("BulkDeleteTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.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],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))))))
|
|
1353
|
51240
|
53988
-
54011
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"BulkDeleteTagProposal"
|
|
1353
|
44137
|
53987
-
53987
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1353
|
42352
|
53974
-
53974
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1353
|
48560
|
53974
-
54012
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation("BulkDeleteTagProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1353
|
35250
|
53974
-
53974
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1354
|
36891
|
54043
-
54053
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1354
|
49636
|
54043
-
54043
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1354
|
49937
|
54043
-
54948
|
Apply
|
scala.Function1.apply
|
org.make.api.proposal.moderationproposalapitest
|
server.this.Directive.addDirectiveApply[(scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights],)](DefaultModerationProposalApiComponent.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(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))))
|
|
1355
|
36915
|
54080
-
54936
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)).apply(server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))))
|
|
1355
|
33660
|
54080
-
54116
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
1355
|
42069
|
54102
-
54115
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
1356
|
40018
|
54133
-
54922
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addByNameNullaryApply(DefaultModerationProposalApi.this.decodeRequest).apply(server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
})))))
|
|
1356
|
50676
|
54133
-
54146
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1357
|
36335
|
54165
-
54198
|
Apply
|
akka.http.scaladsl.server.directives.MarshallingDirectives.entity
|
|
DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec))))
|
|
1357
|
35288
|
54174
-
54174
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)
|
|
1357
|
48309
|
54165
-
54906
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkDeleteTagProposal,)](DefaultModerationProposalApi.this.entity[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))))(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]).apply(((request: org.make.api.proposal.BulkDeleteTagProposal) => server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))))
|
|
1357
|
42868
|
54174
-
54174
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.codec
|
|
proposal.this.BulkDeleteTagProposal.codec
|
|
1357
|
48057
|
54174
-
54174
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.messageUnmarshallerFromEntityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec))
|
|
1357
|
43896
|
54172
-
54197
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.directives.MarshallingDirectives.as
|
|
DefaultModerationProposalApi.this.as[org.make.api.proposal.BulkDeleteTagProposal](akka.http.scaladsl.unmarshalling.Unmarshaller.messageUnmarshallerFromEntityUnmarshaller[org.make.api.proposal.BulkDeleteTagProposal](DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)))
|
|
1357
|
49674
|
54171
-
54171
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]
|
|
1358
|
41820
|
54248
-
54261
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.tagId
|
|
request.tagId
|
|
1358
|
34514
|
54230
-
54888
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(Option[org.make.core.tag.Tag],)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective)(util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]).apply(((maybeTag: Option[org.make.core.tag.Tag]) => {
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)));
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
}))
|
|
1358
|
33700
|
54230
-
54262
|
Apply
|
org.make.api.tag.TagService.getTag
|
|
DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)
|
|
1358
|
50428
|
54230
-
54274
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[Option[org.make.core.tag.Tag]](DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)).asDirective
|
|
1358
|
42308
|
54263
-
54263
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]
|
|
1359
|
48836
|
54309
-
54641
|
Apply
|
org.make.core.Validation.validate
|
|
org.make.core.Validation.validate(org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String)))
|
|
1360
|
36849
|
54352
-
54619
|
Apply
|
org.make.core.Validation.validateField
|
|
org.make.core.Validation.validateField("tagId", "invalid_value", maybeTag.isDefined, ("Tag ".+(request.tagId).+(" does not exist."): String))
|
|
1361
|
35325
|
54410
-
54417
|
Literal
|
<nosymbol>
|
|
"tagId"
|
|
1362
|
47812
|
54449
-
54464
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1363
|
40222
|
54502
-
54520
|
Select
|
scala.Option.isDefined
|
|
maybeTag.isDefined
|
|
1368
|
41320
|
54718
-
54737
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.proposalIds
|
|
request.proposalIds
|
|
1368
|
33451
|
54739
-
54752
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.tagId
|
|
request.tagId
|
|
1368
|
50470
|
54754
-
54774
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
1368
|
42344
|
54662
-
54791
|
Apply
|
org.make.api.proposal.ProposalService.deleteTagFromAll
|
|
DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)
|
|
1369
|
47852
|
54815
-
54815
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]
|
|
1369
|
34482
|
54662
-
54826
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes.asDirective
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective
|
|
1370
|
39977
|
54865
-
54865
|
Select
|
org.make.api.proposal.BulkActionResponse.codec
|
|
proposal.this.BulkActionResponse.codec
|
|
1370
|
48868
|
54865
-
54865
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller
|
|
DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])
|
|
1370
|
33487
|
54865
-
54866
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
|
|
marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse])))
|
|
1370
|
36881
|
54865
-
54865
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]
|
|
1370
|
51266
|
54856
-
54867
|
Apply
|
akka.http.scaladsl.server.directives.RouteDirectives.complete
|
|
DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))
|
|
1370
|
41776
|
54865
-
54865
|
ApplyToImplicitArgs
|
akka.http.scaladsl.marshalling.LowPriorityToResponseMarshallerImplicits.liftMarshaller
|
|
marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))
|
|
1370
|
43400
|
54662
-
54868
|
Apply
|
scala.Function1.apply
|
|
server.this.Directive.addDirectiveApply[(org.make.api.proposal.BulkActionResponse,)](org.make.api.technical.directives.FutureDirectivesExtensions.FutureWithRoutes[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)).asDirective)(util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]).apply(((x$30: org.make.api.proposal.BulkActionResponse) => DefaultModerationProposalApi.this.complete(marshalling.this.ToResponseMarshallable.apply[org.make.api.proposal.BulkActionResponse](x$30)(marshalling.this.Marshaller.liftMarshaller[org.make.api.proposal.BulkActionResponse](DefaultModerationProposalApiComponent.this.marshaller[org.make.api.proposal.BulkActionResponse](proposal.this.BulkActionResponse.codec, DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]))))))
|
|
1408
|
33474
|
55842
-
56452
|
Apply
|
org.make.api.proposal.ProposalListResponse.apply
|
|
ProposalListResponse.apply(proposal.id, ProposalListResponse.this.Author.apply(proposal), proposal.contentGeneral, proposal.content, proposal.submittedAsLanguage, proposal.status, proposal.proposalType, proposal.refusalReason, proposal.tags, proposal.createdAt, proposal.agreementRate, ProposalListResponse.this.Context.apply(proposal.context), proposal.votes.deprecatedVotesSeq.map[org.make.api.proposal.ProposalListResponse.Vote](((vote: org.make.core.proposal.Vote) => ProposalListResponse.this.Vote.apply(vote))), proposal.votesCount)
|
|
1409
|
43440
|
55875
-
55886
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.id
|
|
proposal.id
|
|
1410
|
35035
|
55903
-
55919
|
Apply
|
org.make.api.proposal.ProposalListResponse.Author.apply
|
|
ProposalListResponse.this.Author.apply(proposal)
|
|
1411
|
48345
|
55937
-
55960
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.contentGeneral
|
|
proposal.contentGeneral
|
|
1412
|
40209
|
55990
-
56006
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.content
|
|
proposal.content
|
|
1413
|
36680
|
56036
-
56064
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.submittedAsLanguage
|
|
proposal.submittedAsLanguage
|
|
1414
|
49971
|
56081
-
56096
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.status
|
|
proposal.status
|
|
1415
|
41569
|
56119
-
56140
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.proposalType
|
|
proposal.proposalType
|
|
1416
|
33992
|
56164
-
56186
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.refusalReason
|
|
proposal.refusalReason
|
|
1417
|
46729
|
56201
-
56214
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.tags
|
|
proposal.tags
|
|
1418
|
43193
|
56234
-
56252
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.createdAt
|
|
proposal.createdAt
|
|
1419
|
35070
|
56276
-
56298
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.agreementRate
|
|
proposal.agreementRate
|
|
1420
|
48100
|
56324
-
56340
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.context
|
|
proposal.context
|
|
1420
|
39970
|
56316
-
56341
|
Apply
|
org.make.api.proposal.ProposalListResponse.Context.apply
|
|
ProposalListResponse.this.Context.apply(proposal.context)
|
|
1421
|
36110
|
56395
-
56405
|
Apply
|
org.make.api.proposal.ProposalListResponse.Vote.apply
|
|
ProposalListResponse.this.Vote.apply(vote)
|
|
1421
|
49178
|
56357
-
56406
|
Apply
|
scala.collection.IterableOps.map
|
|
proposal.votes.deprecatedVotesSeq.map[org.make.api.proposal.ProposalListResponse.Vote](((vote: org.make.core.proposal.Vote) => ProposalListResponse.this.Vote.apply(vote)))
|
|
1422
|
41605
|
56427
-
56446
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.votesCount
|
|
proposal.votesCount
|
|
1436
|
40006
|
56955
-
57137
|
Apply
|
org.make.api.proposal.ProposalListResponse.Author.apply
|
|
ProposalListResponse.this.Author.apply(proposal.author.userId, proposal.author.userType, proposal.author.displayName, proposal.author.age)
|
|
1437
|
46497
|
56976
-
56998
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.userId
|
|
proposal.author.userId
|
|
1438
|
42627
|
57019
-
57043
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.userType
|
|
proposal.author.userType
|
|
1439
|
34826
|
57067
-
57094
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.displayName
|
|
proposal.author.displayName
|
|
1440
|
48139
|
57110
-
57129
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.age
|
|
proposal.author.age
|
|
1442
|
32130
|
57178
-
57189
|
ApplyToImplicitArgs
|
io.circe.generic.semiauto.deriveCodec
|
|
io.circe.generic.semiauto.deriveCodec[org.make.api.proposal.ProposalListResponse.Author]({
val inst$macro$20: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Author] = {
final class anon$lazy$macro$19 extends AnyRef with Serializable {
def <init>(): anon$lazy$macro$19 = {
anon$lazy$macro$19.super.<init>();
()
};
<stable> <accessor> lazy val inst$macro$1: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Author] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.api.proposal.ProposalListResponse.Author, shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.proposal.ProposalListResponse.Author, (Symbol @@ String("id")) :: (Symbol @@ String("userType")) :: (Symbol @@ String("displayName")) :: (Symbol @@ String("age")) :: shapeless.HNil, org.make.core.user.UserId :: org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.proposal.ProposalListResponse.Author, (Symbol @@ String("id")) :: (Symbol @@ String("userType")) :: (Symbol @@ String("displayName")) :: (Symbol @@ String("age")) :: shapeless.HNil](::.apply[Symbol @@ String("id"), (Symbol @@ String("userType")) :: (Symbol @@ String("displayName")) :: (Symbol @@ String("age")) :: shapeless.HNil.type](scala.Symbol.apply("id").asInstanceOf[Symbol @@ String("id")], ::.apply[Symbol @@ String("userType"), (Symbol @@ String("displayName")) :: (Symbol @@ String("age")) :: shapeless.HNil.type](scala.Symbol.apply("userType").asInstanceOf[Symbol @@ String("userType")], ::.apply[Symbol @@ String("displayName"), (Symbol @@ String("age")) :: shapeless.HNil.type](scala.Symbol.apply("displayName").asInstanceOf[Symbol @@ String("displayName")], ::.apply[Symbol @@ String("age"), shapeless.HNil.type](scala.Symbol.apply("age").asInstanceOf[Symbol @@ String("age")], HNil))))), Generic.instance[org.make.api.proposal.ProposalListResponse.Author, org.make.core.user.UserId :: org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil](((x0$3: org.make.api.proposal.ProposalListResponse.Author) => x0$3 match {
case (id: org.make.core.user.UserId, userType: org.make.core.user.UserType, displayName: Option[String], age: Option[Int]): org.make.api.proposal.ProposalListResponse.Author((id$macro$14 @ _), (userType$macro$15 @ _), (displayName$macro$16 @ _), (age$macro$17 @ _)) => ::.apply[org.make.core.user.UserId, org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil.type](id$macro$14, ::.apply[org.make.core.user.UserType, Option[String] :: Option[Int] :: shapeless.HNil.type](userType$macro$15, ::.apply[Option[String], Option[Int] :: shapeless.HNil.type](displayName$macro$16, ::.apply[Option[Int], shapeless.HNil.type](age$macro$17, HNil)))).asInstanceOf[org.make.core.user.UserId :: org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil]
}), ((x0$4: org.make.core.user.UserId :: org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil) => x0$4 match {
case (head: org.make.core.user.UserId, tail: org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil): org.make.core.user.UserId :: org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil((id$macro$10 @ _), (head: org.make.core.user.UserType, tail: Option[String] :: Option[Int] :: shapeless.HNil): org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil((userType$macro$11 @ _), (head: Option[String], tail: Option[Int] :: shapeless.HNil): Option[String] :: Option[Int] :: shapeless.HNil((displayName$macro$12 @ _), (head: Option[Int], tail: shapeless.HNil): Option[Int] :: shapeless.HNil((age$macro$13 @ _), HNil)))) => ProposalListResponse.this.Author.apply(id$macro$10, userType$macro$11, displayName$macro$12, age$macro$13)
})), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("id"), org.make.core.user.UserId, (Symbol @@ String("userType")) :: (Symbol @@ String("displayName")) :: (Symbol @@ String("age")) :: shapeless.HNil, org.make.core.user.UserType :: Option[String] :: Option[Int] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("userType"), org.make.core.user.UserType, (Symbol @@ String("displayName")) :: (Symbol @@ String("age")) :: shapeless.HNil, Option[String] :: Option[Int] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("displayName"), Option[String], (Symbol @@ String("age")) :: shapeless.HNil, Option[Int] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("age"), Option[Int], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("age")]](scala.Symbol.apply("age").asInstanceOf[Symbol @@ String("age")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("age")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("displayName")]](scala.Symbol.apply("displayName").asInstanceOf[Symbol @@ String("displayName")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("displayName")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("userType")]](scala.Symbol.apply("userType").asInstanceOf[Symbol @@ String("userType")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("userType")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("id")]](scala.Symbol.apply("id").asInstanceOf[Symbol @@ String("id")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("id")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$19.this.inst$macro$18)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Author]];
<stable> <accessor> lazy val inst$macro$18: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({
final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] {
def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = {
$anon.super.<init>();
()
};
private[this] val circeGenericDecoderForid: io.circe.Decoder[org.make.core.user.UserId] = user.this.UserId.userIdDecoder;
private[this] val circeGenericDecoderForuserType: io.circe.Decoder[org.make.core.user.UserType] = user.this.UserType.decoder(circe.this.Decoder.decodeString);
private[this] val circeGenericDecoderFordisplayName: io.circe.Decoder[Option[String]] = circe.this.Decoder.decodeOption[String](circe.this.Decoder.decodeString);
private[this] val circeGenericDecoderForage: io.circe.Decoder[Option[Int]] = circe.this.Decoder.decodeOption[Int](circe.this.Decoder.decodeInt);
private[this] val circeGenericEncoderForid: io.circe.Encoder[org.make.core.user.UserId] = ProposalListResponse.this.stringValueEncoder[org.make.core.user.UserId];
private[this] val circeGenericEncoderForuserType: io.circe.Encoder[org.make.core.user.UserType] = user.this.UserType.encoder(circe.this.Encoder.encodeString);
private[this] val circeGenericEncoderFordisplayName: io.circe.Encoder[Option[String]] = circe.this.Encoder.encodeOption[String](circe.this.Encoder.encodeString);
private[this] val circeGenericEncoderForage: io.circe.Encoder[Option[Int]] = circe.this.Encoder.encodeOption[Int](circe.this.Encoder.encodeInt);
final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match {
case (head: shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId], tail: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForid @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType], tail: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForuserType @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]], tail: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFordisplayName @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForage @ _), shapeless.HNil)))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("id", $anon.this.circeGenericEncoderForid.apply(circeGenericHListBindingForid)), scala.Tuple2.apply[String, io.circe.Json]("userType", $anon.this.circeGenericEncoderForuserType.apply(circeGenericHListBindingForuserType)), scala.Tuple2.apply[String, io.circe.Json]("displayName", $anon.this.circeGenericEncoderFordisplayName.apply(circeGenericHListBindingFordisplayName)), scala.Tuple2.apply[String, io.circe.Json]("age", $anon.this.circeGenericEncoderForage.apply(circeGenericHListBindingForage))))
};
final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("id"), org.make.core.user.UserId, shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForid.tryDecode(c.downField("id")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("userType"), org.make.core.user.UserType, shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForuserType.tryDecode(c.downField("userType")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("displayName"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFordisplayName.tryDecode(c.downField("displayName")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("age"), Option[Int], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForage.tryDecode(c.downField("age")), ReprDecoder.hnilResult)(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("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("id"), org.make.core.user.UserId, shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForid.tryDecodeAccumulating(c.downField("id")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("userType"), org.make.core.user.UserType, shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForuserType.tryDecodeAccumulating(c.downField("userType")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("displayName"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFordisplayName.tryDecodeAccumulating(c.downField("displayName")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("age"), Option[Int], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForage.tryDecodeAccumulating(c.downField("age")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance)
};
new $anon()
}: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.user.UserId] :: shapeless.labelled.FieldType[Symbol @@ String("userType"),org.make.core.user.UserType] :: shapeless.labelled.FieldType[Symbol @@ String("displayName"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("age"),Option[Int]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]]
};
new anon$lazy$macro$19().inst$macro$1
};
shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Author]](inst$macro$20)
})
|
|
1456
|
46290
|
57776
-
58125
|
Apply
|
org.make.api.proposal.ProposalListResponse.Context.apply
|
|
ProposalListResponse.this.Context.apply(context.flatMap[String](((x$31: org.make.core.proposal.indexed.IndexedContext) => x$31.source)), context.flatMap[String](((x$32: org.make.core.proposal.indexed.IndexedContext) => x$32.questionSlug)), context.flatMap[org.make.core.reference.Country](((x$33: org.make.core.proposal.indexed.IndexedContext) => x$33.country)), context.flatMap[org.make.core.reference.Language](((x$34: org.make.core.proposal.indexed.IndexedContext) => x$34.questionLanguage)), context.flatMap[org.make.core.reference.Language](((x$35: org.make.core.proposal.indexed.IndexedContext) => x$35.proposalLanguage)), context.flatMap[org.make.core.reference.Language](((x$36: org.make.core.proposal.indexed.IndexedContext) => x$36.clientLanguage)))
|
|
1457
|
41642
|
57802
-
57827
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[String](((x$31: org.make.core.proposal.indexed.IndexedContext) => x$31.source))
|
|
1457
|
49926
|
57818
-
57826
|
Select
|
org.make.core.proposal.indexed.IndexedContext.source
|
|
x$31.source
|
|
1458
|
33228
|
57868
-
57882
|
Select
|
org.make.core.proposal.indexed.IndexedContext.questionSlug
|
|
x$32.questionSlug
|
|
1458
|
46530
|
57852
-
57883
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[String](((x$32: org.make.core.proposal.indexed.IndexedContext) => x$32.questionSlug))
|
|
1459
|
35572
|
57903
-
57929
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[org.make.core.reference.Country](((x$33: org.make.core.proposal.indexed.IndexedContext) => x$33.country))
|
|
1459
|
43153
|
57919
-
57928
|
Select
|
org.make.core.proposal.indexed.IndexedContext.country
|
|
x$33.country
|
|
1460
|
47630
|
57974
-
57992
|
Select
|
org.make.core.proposal.indexed.IndexedContext.questionLanguage
|
|
x$34.questionLanguage
|
|
1460
|
39764
|
57958
-
57993
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[org.make.core.reference.Language](((x$34: org.make.core.proposal.indexed.IndexedContext) => x$34.questionLanguage))
|
|
1461
|
32166
|
58038
-
58056
|
Select
|
org.make.core.proposal.indexed.IndexedContext.proposalLanguage
|
|
x$35.proposalLanguage
|
|
1461
|
49675
|
58022
-
58057
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[org.make.core.reference.Language](((x$35: org.make.core.proposal.indexed.IndexedContext) => x$35.proposalLanguage))
|
|
1462
|
33266
|
58084
-
58117
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[org.make.core.reference.Language](((x$36: org.make.core.proposal.indexed.IndexedContext) => x$36.clientLanguage))
|
|
1462
|
42103
|
58100
-
58116
|
Select
|
org.make.core.proposal.indexed.IndexedContext.clientLanguage
|
|
x$36.clientLanguage
|
|
1464
|
39472
|
58167
-
58178
|
ApplyToImplicitArgs
|
io.circe.generic.semiauto.deriveCodec
|
|
io.circe.generic.semiauto.deriveCodec[org.make.api.proposal.ProposalListResponse.Context]({
val inst$macro$28: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Context] = {
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.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Context] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.api.proposal.ProposalListResponse.Context, shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.proposal.ProposalListResponse.Context, (Symbol @@ String("source")) :: (Symbol @@ String("questionSlug")) :: (Symbol @@ String("country")) :: (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil, Option[String] :: Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.proposal.ProposalListResponse.Context, (Symbol @@ String("source")) :: (Symbol @@ String("questionSlug")) :: (Symbol @@ String("country")) :: (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil](::.apply[Symbol @@ String("source"), (Symbol @@ String("questionSlug")) :: (Symbol @@ String("country")) :: (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil.type](scala.Symbol.apply("source").asInstanceOf[Symbol @@ String("source")], ::.apply[Symbol @@ String("questionSlug"), (Symbol @@ String("country")) :: (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil.type](scala.Symbol.apply("questionSlug").asInstanceOf[Symbol @@ String("questionSlug")], ::.apply[Symbol @@ String("country"), (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil.type](scala.Symbol.apply("country").asInstanceOf[Symbol @@ String("country")], ::.apply[Symbol @@ String("questionLanguage"), (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil.type](scala.Symbol.apply("questionLanguage").asInstanceOf[Symbol @@ String("questionLanguage")], ::.apply[Symbol @@ String("proposalLanguage"), (Symbol @@ String("clientLanguage")) :: shapeless.HNil.type](scala.Symbol.apply("proposalLanguage").asInstanceOf[Symbol @@ String("proposalLanguage")], ::.apply[Symbol @@ String("clientLanguage"), shapeless.HNil.type](scala.Symbol.apply("clientLanguage").asInstanceOf[Symbol @@ String("clientLanguage")], HNil))))))), Generic.instance[org.make.api.proposal.ProposalListResponse.Context, Option[String] :: Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil](((x0$3: org.make.api.proposal.ProposalListResponse.Context) => x0$3 match {
case (source: Option[String], questionSlug: Option[String], country: Option[org.make.core.reference.Country], questionLanguage: Option[org.make.core.reference.Language], proposalLanguage: Option[org.make.core.reference.Language], clientLanguage: Option[org.make.core.reference.Language]): org.make.api.proposal.ProposalListResponse.Context((source$macro$20 @ _), (questionSlug$macro$21 @ _), (country$macro$22 @ _), (questionLanguage$macro$23 @ _), (proposalLanguage$macro$24 @ _), (clientLanguage$macro$25 @ _)) => ::.apply[Option[String], Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil.type](source$macro$20, ::.apply[Option[String], Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil.type](questionSlug$macro$21, ::.apply[Option[org.make.core.reference.Country], Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil.type](country$macro$22, ::.apply[Option[org.make.core.reference.Language], Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil.type](questionLanguage$macro$23, ::.apply[Option[org.make.core.reference.Language], Option[org.make.core.reference.Language] :: shapeless.HNil.type](proposalLanguage$macro$24, ::.apply[Option[org.make.core.reference.Language], shapeless.HNil.type](clientLanguage$macro$25, HNil)))))).asInstanceOf[Option[String] :: Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil]
}), ((x0$4: Option[String] :: Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil) => x0$4 match {
case (head: Option[String], tail: Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil): Option[String] :: Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil((source$macro$14 @ _), (head: Option[String], tail: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil): Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil((questionSlug$macro$15 @ _), (head: Option[org.make.core.reference.Country], tail: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil): Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil((country$macro$16 @ _), (head: Option[org.make.core.reference.Language], tail: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil): Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil((questionLanguage$macro$17 @ _), (head: Option[org.make.core.reference.Language], tail: Option[org.make.core.reference.Language] :: shapeless.HNil): Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil((proposalLanguage$macro$18 @ _), (head: Option[org.make.core.reference.Language], tail: shapeless.HNil): Option[org.make.core.reference.Language] :: shapeless.HNil((clientLanguage$macro$19 @ _), HNil)))))) => ProposalListResponse.this.Context.apply(source$macro$14, questionSlug$macro$15, country$macro$16, questionLanguage$macro$17, proposalLanguage$macro$18, clientLanguage$macro$19)
})), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("source"), Option[String], (Symbol @@ String("questionSlug")) :: (Symbol @@ String("country")) :: (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil, Option[String] :: Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("questionSlug"), Option[String], (Symbol @@ String("country")) :: (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil, Option[org.make.core.reference.Country] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("country"), Option[org.make.core.reference.Country], (Symbol @@ String("questionLanguage")) :: (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil, Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("questionLanguage"), Option[org.make.core.reference.Language], (Symbol @@ String("proposalLanguage")) :: (Symbol @@ String("clientLanguage")) :: shapeless.HNil, Option[org.make.core.reference.Language] :: Option[org.make.core.reference.Language] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("proposalLanguage"), Option[org.make.core.reference.Language], (Symbol @@ String("clientLanguage")) :: shapeless.HNil, Option[org.make.core.reference.Language] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("clientLanguage"), Option[org.make.core.reference.Language], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("clientLanguage")]](scala.Symbol.apply("clientLanguage").asInstanceOf[Symbol @@ String("clientLanguage")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("clientLanguage")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("proposalLanguage")]](scala.Symbol.apply("proposalLanguage").asInstanceOf[Symbol @@ String("proposalLanguage")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("proposalLanguage")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("questionLanguage")]](scala.Symbol.apply("questionLanguage").asInstanceOf[Symbol @@ String("questionLanguage")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("questionLanguage")]])), 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("questionSlug")]](scala.Symbol.apply("questionSlug").asInstanceOf[Symbol @@ String("questionSlug")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("questionSlug")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("source")]](scala.Symbol.apply("source").asInstanceOf[Symbol @@ String("source")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("source")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$27.this.inst$macro$26)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Context]];
<stable> <accessor> lazy val inst$macro$26: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({
final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] {
def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = {
$anon.super.<init>();
()
};
private[this] val circeGenericDecoderForquestionSlug: io.circe.Decoder[Option[String]] = circe.this.Decoder.decodeOption[String](circe.this.Decoder.decodeString);
private[this] val circeGenericDecoderForcountry: io.circe.Decoder[Option[org.make.core.reference.Country]] = circe.this.Decoder.decodeOption[org.make.core.reference.Country](reference.this.Country.countryDecoder);
private[this] val circeGenericDecoderForclientLanguage: io.circe.Decoder[Option[org.make.core.reference.Language]] = circe.this.Decoder.decodeOption[org.make.core.reference.Language](reference.this.Language.LanguageDecoder);
private[this] val circeGenericEncoderForquestionSlug: io.circe.Encoder[Option[String]] = circe.this.Encoder.encodeOption[String](circe.this.Encoder.encodeString);
private[this] val circeGenericEncoderForcountry: io.circe.Encoder[Option[org.make.core.reference.Country]] = circe.this.Encoder.encodeOption[org.make.core.reference.Country](ProposalListResponse.this.stringValueEncoder[org.make.core.reference.Country]);
private[this] val circeGenericEncoderForclientLanguage: io.circe.Encoder[Option[org.make.core.reference.Language]] = circe.this.Encoder.encodeOption[org.make.core.reference.Language](ProposalListResponse.this.stringValueEncoder[org.make.core.reference.Language]);
final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match {
case (head: shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]], tail: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForsource @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]], tail: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForquestionSlug @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]], tail: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcountry @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]], tail: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForquestionLanguage @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]], tail: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForproposalLanguage @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForclientLanguage @ _), shapeless.HNil)))))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("source", $anon.this.circeGenericEncoderForquestionSlug.apply(circeGenericHListBindingForsource)), scala.Tuple2.apply[String, io.circe.Json]("questionSlug", $anon.this.circeGenericEncoderForquestionSlug.apply(circeGenericHListBindingForquestionSlug)), scala.Tuple2.apply[String, io.circe.Json]("country", $anon.this.circeGenericEncoderForcountry.apply(circeGenericHListBindingForcountry)), scala.Tuple2.apply[String, io.circe.Json]("questionLanguage", $anon.this.circeGenericEncoderForclientLanguage.apply(circeGenericHListBindingForquestionLanguage)), scala.Tuple2.apply[String, io.circe.Json]("proposalLanguage", $anon.this.circeGenericEncoderForclientLanguage.apply(circeGenericHListBindingForproposalLanguage)), scala.Tuple2.apply[String, io.circe.Json]("clientLanguage", $anon.this.circeGenericEncoderForclientLanguage.apply(circeGenericHListBindingForclientLanguage))))
};
final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("source"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionSlug.tryDecode(c.downField("source")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("questionSlug"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionSlug.tryDecode(c.downField("questionSlug")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("country"), Option[org.make.core.reference.Country], shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcountry.tryDecode(c.downField("country")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("questionLanguage"), Option[org.make.core.reference.Language], shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForclientLanguage.tryDecode(c.downField("questionLanguage")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("proposalLanguage"), Option[org.make.core.reference.Language], shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForclientLanguage.tryDecode(c.downField("proposalLanguage")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("clientLanguage"), Option[org.make.core.reference.Language], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForclientLanguage.tryDecode(c.downField("clientLanguage")), 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("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("source"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionSlug.tryDecodeAccumulating(c.downField("source")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("questionSlug"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionSlug.tryDecodeAccumulating(c.downField("questionSlug")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("country"), Option[org.make.core.reference.Country], shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcountry.tryDecodeAccumulating(c.downField("country")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("questionLanguage"), Option[org.make.core.reference.Language], shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForclientLanguage.tryDecodeAccumulating(c.downField("questionLanguage")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("proposalLanguage"), Option[org.make.core.reference.Language], shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForclientLanguage.tryDecodeAccumulating(c.downField("proposalLanguage")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("clientLanguage"), Option[org.make.core.reference.Language], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForclientLanguage.tryDecodeAccumulating(c.downField("clientLanguage")), 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.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("source"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("questionSlug"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("country"),Option[org.make.core.reference.Country]] :: shapeless.labelled.FieldType[Symbol @@ String("questionLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("proposalLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("clientLanguage"),Option[org.make.core.reference.Language]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]]
};
new anon$lazy$macro$27().inst$macro$1
};
shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Context]](inst$macro$28)
})
|
|
1476
|
35611
|
58481
-
58489
|
Select
|
org.make.core.proposal.Vote.key
|
|
vote.key
|
|
1476
|
39806
|
58552
-
58571
|
Apply
|
org.make.api.proposal.ProposalListResponse.Qualification.apply
|
|
ProposalListResponse.this.Qualification.apply(qualification)
|
|
1476
|
32676
|
58528
-
58572
|
Apply
|
scala.collection.IterableOps.map
|
|
vote.qualifications.map[org.make.api.proposal.ProposalListResponse.Qualification](((qualification: org.make.core.proposal.Qualification) => ProposalListResponse.this.Qualification.apply(qualification)))
|
|
1476
|
48092
|
58499
-
58509
|
Select
|
org.make.core.proposal.Vote.count
|
|
vote.count
|
|
1476
|
49710
|
58470
-
58573
|
Apply
|
org.make.api.proposal.ProposalListResponse.Vote.apply
|
|
ProposalListResponse.this.Vote.apply(vote.key, vote.count, vote.qualifications.map[org.make.api.proposal.ProposalListResponse.Qualification](((qualification: org.make.core.proposal.Qualification) => ProposalListResponse.this.Qualification.apply(qualification))))
|
|
1478
|
42136
|
58613
-
58624
|
ApplyToImplicitArgs
|
io.circe.generic.semiauto.deriveCodec
|
|
io.circe.generic.semiauto.deriveCodec[org.make.api.proposal.ProposalListResponse.Vote]({
val inst$macro$16: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Vote] = {
final class anon$lazy$macro$15 extends AnyRef with Serializable {
def <init>(): anon$lazy$macro$15 = {
anon$lazy$macro$15.super.<init>();
()
};
<stable> <accessor> lazy val inst$macro$1: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Vote] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.api.proposal.ProposalListResponse.Vote, shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.proposal.ProposalListResponse.Vote, (Symbol @@ String("key")) :: (Symbol @@ String("count")) :: (Symbol @@ String("qualifications")) :: shapeless.HNil, org.make.core.proposal.VoteKey :: Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.proposal.ProposalListResponse.Vote, (Symbol @@ String("key")) :: (Symbol @@ String("count")) :: (Symbol @@ String("qualifications")) :: shapeless.HNil](::.apply[Symbol @@ String("key"), (Symbol @@ String("count")) :: (Symbol @@ String("qualifications")) :: shapeless.HNil.type](scala.Symbol.apply("key").asInstanceOf[Symbol @@ String("key")], ::.apply[Symbol @@ String("count"), (Symbol @@ String("qualifications")) :: shapeless.HNil.type](scala.Symbol.apply("count").asInstanceOf[Symbol @@ String("count")], ::.apply[Symbol @@ String("qualifications"), shapeless.HNil.type](scala.Symbol.apply("qualifications").asInstanceOf[Symbol @@ String("qualifications")], HNil)))), Generic.instance[org.make.api.proposal.ProposalListResponse.Vote, org.make.core.proposal.VoteKey :: Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil](((x0$3: org.make.api.proposal.ProposalListResponse.Vote) => x0$3 match {
case (key: org.make.core.proposal.VoteKey, count: Int, qualifications: Seq[org.make.api.proposal.ProposalListResponse.Qualification]): org.make.api.proposal.ProposalListResponse.Vote((key$macro$11 @ _), (count$macro$12 @ _), (qualifications$macro$13 @ _)) => ::.apply[org.make.core.proposal.VoteKey, Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil.type](key$macro$11, ::.apply[Int, Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil.type](count$macro$12, ::.apply[Seq[org.make.api.proposal.ProposalListResponse.Qualification], shapeless.HNil.type](qualifications$macro$13, HNil))).asInstanceOf[org.make.core.proposal.VoteKey :: Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil]
}), ((x0$4: org.make.core.proposal.VoteKey :: Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil) => x0$4 match {
case (head: org.make.core.proposal.VoteKey, tail: Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil): org.make.core.proposal.VoteKey :: Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil((key$macro$8 @ _), (head: Int, tail: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil): Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil((count$macro$9 @ _), (head: Seq[org.make.api.proposal.ProposalListResponse.Qualification], tail: shapeless.HNil): Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil((qualifications$macro$10 @ _), HNil))) => ProposalListResponse.this.Vote.apply(key$macro$8, count$macro$9, qualifications$macro$10)
})), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("key"), org.make.core.proposal.VoteKey, (Symbol @@ String("count")) :: (Symbol @@ String("qualifications")) :: shapeless.HNil, Int :: Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("count"), Int, (Symbol @@ String("qualifications")) :: shapeless.HNil, Seq[org.make.api.proposal.ProposalListResponse.Qualification] :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("qualifications"), Seq[org.make.api.proposal.ProposalListResponse.Qualification], shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("qualifications")]](scala.Symbol.apply("qualifications").asInstanceOf[Symbol @@ String("qualifications")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("qualifications")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("count")]](scala.Symbol.apply("count").asInstanceOf[Symbol @@ String("count")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("count")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("key")]](scala.Symbol.apply("key").asInstanceOf[Symbol @@ String("key")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("key")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$15.this.inst$macro$14)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Vote]];
<stable> <accessor> lazy val inst$macro$14: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({
final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] {
def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = {
$anon.super.<init>();
()
};
private[this] val circeGenericDecoderForkey: io.circe.Decoder[org.make.core.proposal.VoteKey] = proposal.this.VoteKey.circeDecoder;
private[this] val circeGenericDecoderForcount: io.circe.Decoder[Int] = circe.this.Decoder.decodeInt;
private[this] val circeGenericDecoderForqualifications: io.circe.Decoder[Seq[org.make.api.proposal.ProposalListResponse.Qualification]] = circe.this.Decoder.decodeSeq[org.make.api.proposal.ProposalListResponse.Qualification](ProposalListResponse.this.Qualification.codec);
private[this] val circeGenericEncoderForkey: io.circe.Encoder[org.make.core.proposal.VoteKey] = proposal.this.VoteKey.circeEncoder;
private[this] val circeGenericEncoderForcount: io.circe.Encoder[Int] = circe.this.Encoder.encodeInt;
private[this] val circeGenericEncoderForqualifications: io.circe.Encoder.AsArray[Seq[org.make.api.proposal.ProposalListResponse.Qualification]] = circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse.Qualification](ProposalListResponse.this.Qualification.codec);
final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match {
case (head: shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey], tail: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForkey @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("count"),Int], tail: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcount @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForqualifications @ _), shapeless.HNil))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("key", $anon.this.circeGenericEncoderForkey.apply(circeGenericHListBindingForkey)), scala.Tuple2.apply[String, io.circe.Json]("count", $anon.this.circeGenericEncoderForcount.apply(circeGenericHListBindingForcount)), scala.Tuple2.apply[String, io.circe.Json]("qualifications", $anon.this.circeGenericEncoderForqualifications.apply(circeGenericHListBindingForqualifications))))
};
final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("key"), org.make.core.proposal.VoteKey, shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForkey.tryDecode(c.downField("key")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("count"), Int, shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcount.tryDecode(c.downField("count")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("qualifications"), Seq[org.make.api.proposal.ProposalListResponse.Qualification], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForqualifications.tryDecode(c.downField("qualifications")), ReprDecoder.hnilResult)(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("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("key"), org.make.core.proposal.VoteKey, shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForkey.tryDecodeAccumulating(c.downField("key")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("count"), Int, shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcount.tryDecodeAccumulating(c.downField("count")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("qualifications"), Seq[org.make.api.proposal.ProposalListResponse.Qualification], shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForqualifications.tryDecodeAccumulating(c.downField("qualifications")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance)
};
new $anon()
}: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.VoteKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.labelled.FieldType[Symbol @@ String("qualifications"),Seq[org.make.api.proposal.ProposalListResponse.Qualification]] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]]
};
new anon$lazy$macro$15().inst$macro$1
};
shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Vote]](inst$macro$16)
})
|
|
1493
|
39227
|
58963
-
59030
|
Apply
|
org.make.api.proposal.ProposalListResponse.Qualification.apply
|
|
ProposalListResponse.this.Qualification.apply(qualification.key, qualification.count)
|
|
1493
|
33738
|
58983
-
59000
|
Select
|
org.make.core.proposal.Qualification.key
|
|
qualification.key
|
|
1493
|
46330
|
59010
-
59029
|
Select
|
org.make.core.proposal.Qualification.count
|
|
qualification.count
|
|
1494
|
35362
|
59078
-
59089
|
ApplyToImplicitArgs
|
io.circe.generic.semiauto.deriveCodec
|
|
io.circe.generic.semiauto.deriveCodec[org.make.api.proposal.ProposalListResponse.Qualification]({
val inst$macro$12: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Qualification] = {
final class anon$lazy$macro$11 extends AnyRef with Serializable {
def <init>(): anon$lazy$macro$11 = {
anon$lazy$macro$11.super.<init>();
()
};
<stable> <accessor> lazy val inst$macro$1: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Qualification] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.api.proposal.ProposalListResponse.Qualification, shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.proposal.ProposalListResponse.Qualification, (Symbol @@ String("key")) :: (Symbol @@ String("count")) :: shapeless.HNil, org.make.core.proposal.QualificationKey :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.proposal.ProposalListResponse.Qualification, (Symbol @@ String("key")) :: (Symbol @@ String("count")) :: shapeless.HNil](::.apply[Symbol @@ String("key"), (Symbol @@ String("count")) :: shapeless.HNil.type](scala.Symbol.apply("key").asInstanceOf[Symbol @@ String("key")], ::.apply[Symbol @@ String("count"), shapeless.HNil.type](scala.Symbol.apply("count").asInstanceOf[Symbol @@ String("count")], HNil))), Generic.instance[org.make.api.proposal.ProposalListResponse.Qualification, org.make.core.proposal.QualificationKey :: Int :: shapeless.HNil](((x0$3: org.make.api.proposal.ProposalListResponse.Qualification) => x0$3 match {
case (key: org.make.core.proposal.QualificationKey, count: Int): org.make.api.proposal.ProposalListResponse.Qualification((key$macro$8 @ _), (count$macro$9 @ _)) => ::.apply[org.make.core.proposal.QualificationKey, Int :: shapeless.HNil.type](key$macro$8, ::.apply[Int, shapeless.HNil.type](count$macro$9, HNil)).asInstanceOf[org.make.core.proposal.QualificationKey :: Int :: shapeless.HNil]
}), ((x0$4: org.make.core.proposal.QualificationKey :: Int :: shapeless.HNil) => x0$4 match {
case (head: org.make.core.proposal.QualificationKey, tail: Int :: shapeless.HNil): org.make.core.proposal.QualificationKey :: Int :: shapeless.HNil((key$macro$6 @ _), (head: Int, tail: shapeless.HNil): Int :: shapeless.HNil((count$macro$7 @ _), HNil)) => ProposalListResponse.this.Qualification.apply(key$macro$6, count$macro$7)
})), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("key"), org.make.core.proposal.QualificationKey, (Symbol @@ String("count")) :: shapeless.HNil, Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("count"), Int, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("count")]](scala.Symbol.apply("count").asInstanceOf[Symbol @@ String("count")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("count")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("key")]](scala.Symbol.apply("key").asInstanceOf[Symbol @@ String("key")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("key")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$11.this.inst$macro$10)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Qualification]];
<stable> <accessor> lazy val inst$macro$10: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({
final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] {
def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = {
$anon.super.<init>();
()
};
private[this] val circeGenericDecoderForkey: io.circe.Decoder[org.make.core.proposal.QualificationKey] = proposal.this.QualificationKey.circeDecoder;
private[this] val circeGenericDecoderForcount: io.circe.Decoder[Int] = circe.this.Decoder.decodeInt;
private[this] val circeGenericEncoderForkey: io.circe.Encoder[org.make.core.proposal.QualificationKey] = proposal.this.QualificationKey.circeEncoder;
private[this] val circeGenericEncoderForcount: io.circe.Encoder[Int] = circe.this.Encoder.encodeInt;
final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match {
case (head: shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey], tail: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForkey @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("count"),Int], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcount @ _), shapeless.HNil)) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("key", $anon.this.circeGenericEncoderForkey.apply(circeGenericHListBindingForkey)), scala.Tuple2.apply[String, io.circe.Json]("count", $anon.this.circeGenericEncoderForcount.apply(circeGenericHListBindingForcount))))
};
final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("key"), org.make.core.proposal.QualificationKey, shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForkey.tryDecode(c.downField("key")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("count"), Int, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcount.tryDecode(c.downField("count")), ReprDecoder.hnilResult)(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("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("key"), org.make.core.proposal.QualificationKey, shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForkey.tryDecodeAccumulating(c.downField("key")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("count"), Int, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcount.tryDecodeAccumulating(c.downField("count")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance)
};
new $anon()
}: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("key"),org.make.core.proposal.QualificationKey] :: shapeless.labelled.FieldType[Symbol @@ String("count"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]]
};
new anon$lazy$macro$11().inst$macro$1
};
shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse.Qualification]](inst$macro$12)
})
|
|
1497
|
48128
|
59147
-
59158
|
ApplyToImplicitArgs
|
io.circe.generic.semiauto.deriveCodec
|
|
io.circe.generic.semiauto.deriveCodec[org.make.api.proposal.ProposalListResponse]({
val inst$macro$60: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse] = {
final class anon$lazy$macro$59 extends AnyRef with Serializable {
def <init>(): anon$lazy$macro$59 = {
anon$lazy$macro$59.super.<init>();
()
};
<stable> <accessor> lazy val inst$macro$1: io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.api.proposal.ProposalListResponse, shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.proposal.ProposalListResponse, (Symbol @@ String("id")) :: (Symbol @@ String("author")) :: (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, org.make.core.proposal.ProposalId :: org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.proposal.ProposalListResponse, (Symbol @@ String("id")) :: (Symbol @@ String("author")) :: (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil](::.apply[Symbol @@ String("id"), (Symbol @@ String("author")) :: (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("id").asInstanceOf[Symbol @@ String("id")], ::.apply[Symbol @@ String("author"), (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("author").asInstanceOf[Symbol @@ String("author")], ::.apply[Symbol @@ String("content"), (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("content").asInstanceOf[Symbol @@ String("content")], ::.apply[Symbol @@ String("contentTranslations"), (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("contentTranslations").asInstanceOf[Symbol @@ String("contentTranslations")], ::.apply[Symbol @@ String("submittedAsLanguage"), (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("submittedAsLanguage").asInstanceOf[Symbol @@ String("submittedAsLanguage")], ::.apply[Symbol @@ String("status"), (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("status").asInstanceOf[Symbol @@ String("status")], ::.apply[Symbol @@ String("proposalType"), (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("proposalType").asInstanceOf[Symbol @@ String("proposalType")], ::.apply[Symbol @@ String("refusalReason"), (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("refusalReason").asInstanceOf[Symbol @@ String("refusalReason")], ::.apply[Symbol @@ String("tags"), (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("tags").asInstanceOf[Symbol @@ String("tags")], ::.apply[Symbol @@ String("createdAt"), (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("createdAt").asInstanceOf[Symbol @@ String("createdAt")], ::.apply[Symbol @@ String("agreementRate"), (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("agreementRate").asInstanceOf[Symbol @@ String("agreementRate")], ::.apply[Symbol @@ String("context"), (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("context").asInstanceOf[Symbol @@ String("context")], ::.apply[Symbol @@ String("votes"), (Symbol @@ String("votesCount")) :: shapeless.HNil.type](scala.Symbol.apply("votes").asInstanceOf[Symbol @@ String("votes")], ::.apply[Symbol @@ String("votesCount"), shapeless.HNil.type](scala.Symbol.apply("votesCount").asInstanceOf[Symbol @@ String("votesCount")], HNil))))))))))))))), Generic.instance[org.make.api.proposal.ProposalListResponse, org.make.core.proposal.ProposalId :: org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil](((x0$3: org.make.api.proposal.ProposalListResponse) => x0$3 match {
case (id: org.make.core.proposal.ProposalId, author: org.make.api.proposal.ProposalListResponse.Author, content: String, contentTranslations: org.make.core.technical.Multilingual[String], submittedAsLanguage: Option[org.make.core.reference.Language], status: org.make.core.proposal.ProposalStatus, proposalType: org.make.core.proposal.ProposalType, refusalReason: Option[String], tags: Seq[org.make.core.proposal.indexed.IndexedTag], createdAt: java.time.ZonedDateTime, agreementRate: Double, context: org.make.api.proposal.ProposalListResponse.Context, votes: Seq[org.make.api.proposal.ProposalListResponse.Vote], votesCount: Int): org.make.api.proposal.ProposalListResponse((id$macro$44 @ _), (author$macro$45 @ _), (content$macro$46 @ _), (contentTranslations$macro$47 @ _), (submittedAsLanguage$macro$48 @ _), (status$macro$49 @ _), (proposalType$macro$50 @ _), (refusalReason$macro$51 @ _), (tags$macro$52 @ _), (createdAt$macro$53 @ _), (agreementRate$macro$54 @ _), (context$macro$55 @ _), (votes$macro$56 @ _), (votesCount$macro$57 @ _)) => ::.apply[org.make.core.proposal.ProposalId, org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](id$macro$44, ::.apply[org.make.api.proposal.ProposalListResponse.Author, String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](author$macro$45, ::.apply[String, org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](content$macro$46, ::.apply[org.make.core.technical.Multilingual[String], Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](contentTranslations$macro$47, ::.apply[Option[org.make.core.reference.Language], org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](submittedAsLanguage$macro$48, ::.apply[org.make.core.proposal.ProposalStatus, org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](status$macro$49, ::.apply[org.make.core.proposal.ProposalType, Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](proposalType$macro$50, ::.apply[Option[String], Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](refusalReason$macro$51, ::.apply[Seq[org.make.core.proposal.indexed.IndexedTag], java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](tags$macro$52, ::.apply[java.time.ZonedDateTime, Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](createdAt$macro$53, ::.apply[Double, org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](agreementRate$macro$54, ::.apply[org.make.api.proposal.ProposalListResponse.Context, Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil.type](context$macro$55, ::.apply[Seq[org.make.api.proposal.ProposalListResponse.Vote], Int :: shapeless.HNil.type](votes$macro$56, ::.apply[Int, shapeless.HNil.type](votesCount$macro$57, HNil)))))))))))))).asInstanceOf[org.make.core.proposal.ProposalId :: org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil]
}), ((x0$4: org.make.core.proposal.ProposalId :: org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil) => x0$4 match {
case (head: org.make.core.proposal.ProposalId, tail: org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): org.make.core.proposal.ProposalId :: org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((id$macro$30 @ _), (head: org.make.api.proposal.ProposalListResponse.Author, tail: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((author$macro$31 @ _), (head: String, tail: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((content$macro$32 @ _), (head: org.make.core.technical.Multilingual[String], tail: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((contentTranslations$macro$33 @ _), (head: Option[org.make.core.reference.Language], tail: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((submittedAsLanguage$macro$34 @ _), (head: org.make.core.proposal.ProposalStatus, tail: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((status$macro$35 @ _), (head: org.make.core.proposal.ProposalType, tail: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((proposalType$macro$36 @ _), (head: Option[String], tail: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((refusalReason$macro$37 @ _), (head: Seq[org.make.core.proposal.indexed.IndexedTag], tail: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((tags$macro$38 @ _), (head: java.time.ZonedDateTime, tail: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((createdAt$macro$39 @ _), (head: Double, tail: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((agreementRate$macro$40 @ _), (head: org.make.api.proposal.ProposalListResponse.Context, tail: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil): org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((context$macro$41 @ _), (head: Seq[org.make.api.proposal.ProposalListResponse.Vote], tail: Int :: shapeless.HNil): Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil((votes$macro$42 @ _), (head: Int, tail: shapeless.HNil): Int :: shapeless.HNil((votesCount$macro$43 @ _), HNil)))))))))))))) => proposal.this.ProposalListResponse.apply(id$macro$30, author$macro$31, content$macro$32, contentTranslations$macro$33, submittedAsLanguage$macro$34, status$macro$35, proposalType$macro$36, refusalReason$macro$37, tags$macro$38, createdAt$macro$39, agreementRate$macro$40, context$macro$41, votes$macro$42, votesCount$macro$43)
})), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("id"), org.make.core.proposal.ProposalId, (Symbol @@ String("author")) :: (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, org.make.api.proposal.ProposalListResponse.Author :: String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("author"), org.make.api.proposal.ProposalListResponse.Author, (Symbol @@ String("content")) :: (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, String :: org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("content"), String, (Symbol @@ String("contentTranslations")) :: (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, org.make.core.technical.Multilingual[String] :: Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("contentTranslations"), org.make.core.technical.Multilingual[String], (Symbol @@ String("submittedAsLanguage")) :: (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, Option[org.make.core.reference.Language] :: org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("submittedAsLanguage"), Option[org.make.core.reference.Language], (Symbol @@ String("status")) :: (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, org.make.core.proposal.ProposalStatus :: org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("status"), org.make.core.proposal.ProposalStatus, (Symbol @@ String("proposalType")) :: (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, org.make.core.proposal.ProposalType :: Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("proposalType"), org.make.core.proposal.ProposalType, (Symbol @@ String("refusalReason")) :: (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, Option[String] :: Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("refusalReason"), Option[String], (Symbol @@ String("tags")) :: (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, Seq[org.make.core.proposal.indexed.IndexedTag] :: java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("tags"), Seq[org.make.core.proposal.indexed.IndexedTag], (Symbol @@ String("createdAt")) :: (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, java.time.ZonedDateTime :: Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("createdAt"), java.time.ZonedDateTime, (Symbol @@ String("agreementRate")) :: (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, Double :: org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("agreementRate"), Double, (Symbol @@ String("context")) :: (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, org.make.api.proposal.ProposalListResponse.Context :: Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("context"), org.make.api.proposal.ProposalListResponse.Context, (Symbol @@ String("votes")) :: (Symbol @@ String("votesCount")) :: shapeless.HNil, Seq[org.make.api.proposal.ProposalListResponse.Vote] :: Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("votes"), Seq[org.make.api.proposal.ProposalListResponse.Vote], (Symbol @@ String("votesCount")) :: shapeless.HNil, Int :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("votesCount"), Int, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("votesCount")]](scala.Symbol.apply("votesCount").asInstanceOf[Symbol @@ String("votesCount")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("votesCount")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("votes")]](scala.Symbol.apply("votes").asInstanceOf[Symbol @@ String("votes")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("votes")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("context")]](scala.Symbol.apply("context").asInstanceOf[Symbol @@ String("context")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("context")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("agreementRate")]](scala.Symbol.apply("agreementRate").asInstanceOf[Symbol @@ String("agreementRate")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("agreementRate")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("createdAt")]](scala.Symbol.apply("createdAt").asInstanceOf[Symbol @@ String("createdAt")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("createdAt")]])), 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("refusalReason")]](scala.Symbol.apply("refusalReason").asInstanceOf[Symbol @@ String("refusalReason")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("refusalReason")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("proposalType")]](scala.Symbol.apply("proposalType").asInstanceOf[Symbol @@ String("proposalType")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("proposalType")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("status")]](scala.Symbol.apply("status").asInstanceOf[Symbol @@ String("status")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("status")]])), 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("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")]])), 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("id")]](scala.Symbol.apply("id").asInstanceOf[Symbol @@ String("id")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("id")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$59.this.inst$macro$58)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse]];
<stable> <accessor> lazy val inst$macro$58: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({
final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] {
def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = {
$anon.super.<init>();
()
};
private[this] val circeGenericDecoderForid: io.circe.Decoder[org.make.core.proposal.ProposalId] = proposal.this.ProposalId.proposalIdDecoder;
private[this] val circeGenericDecoderForauthor: io.circe.Codec[org.make.api.proposal.ProposalListResponse.Author] = ProposalListResponse.this.Author.codec;
private[this] val circeGenericDecoderForcontent: io.circe.Decoder[String] = circe.this.Decoder.decodeString;
private[this] val circeGenericDecoderForcontentTranslations: io.circe.Decoder[org.make.core.technical.Multilingual[String]] = technical.this.Multilingual.circeDecoder[String](circe.this.Decoder.decodeString);
private[this] val circeGenericDecoderForsubmittedAsLanguage: io.circe.Decoder[Option[org.make.core.reference.Language]] = circe.this.Decoder.decodeOption[org.make.core.reference.Language](reference.this.Language.LanguageDecoder);
private[this] val circeGenericDecoderForstatus: io.circe.Decoder[org.make.core.proposal.ProposalStatus] = proposal.this.ProposalStatus.circeDecoder;
private[this] val circeGenericDecoderForproposalType: io.circe.Decoder[org.make.core.proposal.ProposalType] = proposal.this.ProposalType.circeDecoder;
private[this] val circeGenericDecoderForrefusalReason: io.circe.Decoder[Option[String]] = circe.this.Decoder.decodeOption[String](circe.this.Decoder.decodeString);
private[this] val circeGenericDecoderFortags: io.circe.Decoder[Seq[org.make.core.proposal.indexed.IndexedTag]] = circe.this.Decoder.decodeSeq[org.make.core.proposal.indexed.IndexedTag](indexed.this.IndexedTag.circeCodec);
private[this] val circeGenericDecoderForcreatedAt: io.circe.Decoder[java.time.ZonedDateTime] = ProposalListResponse.this.zonedDateTimeDecoder;
private[this] val circeGenericDecoderForagreementRate: io.circe.Decoder[Double] = circe.this.Decoder.decodeDouble;
private[this] val circeGenericDecoderForcontext: io.circe.Codec[org.make.api.proposal.ProposalListResponse.Context] = ProposalListResponse.this.Context.codec;
private[this] val circeGenericDecoderForvotes: io.circe.Decoder[Seq[org.make.api.proposal.ProposalListResponse.Vote]] = circe.this.Decoder.decodeSeq[org.make.api.proposal.ProposalListResponse.Vote](ProposalListResponse.this.Vote.codec);
private[this] val circeGenericDecoderForvotesCount: io.circe.Decoder[Int] = circe.this.Decoder.decodeInt;
private[this] val circeGenericEncoderForid: io.circe.Encoder[org.make.core.proposal.ProposalId] = ProposalListResponse.this.stringValueEncoder[org.make.core.proposal.ProposalId];
private[this] val circeGenericEncoderForauthor: io.circe.Codec[org.make.api.proposal.ProposalListResponse.Author] = ProposalListResponse.this.Author.codec;
private[this] val circeGenericEncoderForcontent: io.circe.Encoder[String] = circe.this.Encoder.encodeString;
private[this] val circeGenericEncoderForcontentTranslations: io.circe.Encoder[org.make.core.technical.Multilingual[String]] = technical.this.Multilingual.circeEncoder[String](circe.this.Encoder.encodeString);
private[this] val circeGenericEncoderForsubmittedAsLanguage: io.circe.Encoder[Option[org.make.core.reference.Language]] = circe.this.Encoder.encodeOption[org.make.core.reference.Language](ProposalListResponse.this.stringValueEncoder[org.make.core.reference.Language]);
private[this] val circeGenericEncoderForstatus: io.circe.Encoder[org.make.core.proposal.ProposalStatus] = proposal.this.ProposalStatus.circeEncoder;
private[this] val circeGenericEncoderForproposalType: io.circe.Encoder[org.make.core.proposal.ProposalType] = proposal.this.ProposalType.circeEncoder;
private[this] val circeGenericEncoderForrefusalReason: io.circe.Encoder[Option[String]] = circe.this.Encoder.encodeOption[String](circe.this.Encoder.encodeString);
private[this] val circeGenericEncoderFortags: io.circe.Encoder.AsArray[Seq[org.make.core.proposal.indexed.IndexedTag]] = circe.this.Encoder.encodeSeq[org.make.core.proposal.indexed.IndexedTag](indexed.this.IndexedTag.circeCodec);
private[this] val circeGenericEncoderForcreatedAt: io.circe.Encoder[java.time.ZonedDateTime] = ProposalListResponse.this.zonedDateTimeEncoder;
private[this] val circeGenericEncoderForagreementRate: io.circe.Encoder[Double] = circe.this.Encoder.encodeDouble;
private[this] val circeGenericEncoderForcontext: io.circe.Codec[org.make.api.proposal.ProposalListResponse.Context] = ProposalListResponse.this.Context.codec;
private[this] val circeGenericEncoderForvotes: io.circe.Encoder.AsArray[Seq[org.make.api.proposal.ProposalListResponse.Vote]] = circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse.Vote](ProposalListResponse.this.Vote.codec);
private[this] val circeGenericEncoderForvotesCount: io.circe.Encoder[Int] = circe.this.Encoder.encodeInt;
final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match {
case (head: shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId], tail: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForid @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author], tail: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForauthor @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("content"),String], tail: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcontent @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]], tail: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcontentTranslations @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]], tail: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForsubmittedAsLanguage @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus], tail: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForstatus @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType], tail: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForproposalType @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]], tail: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForrefusalReason @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]], tail: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFortags @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime], tail: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcreatedAt @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double], tail: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForagreementRate @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context], tail: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcontext @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]], tail: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForvotes @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForvotesCount @ _), shapeless.HNil)))))))))))))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("id", $anon.this.circeGenericEncoderForid.apply(circeGenericHListBindingForid)), scala.Tuple2.apply[String, io.circe.Json]("author", $anon.this.circeGenericEncoderForauthor.apply(circeGenericHListBindingForauthor)), scala.Tuple2.apply[String, io.circe.Json]("content", $anon.this.circeGenericEncoderForcontent.apply(circeGenericHListBindingForcontent)), scala.Tuple2.apply[String, io.circe.Json]("contentTranslations", $anon.this.circeGenericEncoderForcontentTranslations.apply(circeGenericHListBindingForcontentTranslations)), scala.Tuple2.apply[String, io.circe.Json]("submittedAsLanguage", $anon.this.circeGenericEncoderForsubmittedAsLanguage.apply(circeGenericHListBindingForsubmittedAsLanguage)), scala.Tuple2.apply[String, io.circe.Json]("status", $anon.this.circeGenericEncoderForstatus.apply(circeGenericHListBindingForstatus)), scala.Tuple2.apply[String, io.circe.Json]("proposalType", $anon.this.circeGenericEncoderForproposalType.apply(circeGenericHListBindingForproposalType)), scala.Tuple2.apply[String, io.circe.Json]("refusalReason", $anon.this.circeGenericEncoderForrefusalReason.apply(circeGenericHListBindingForrefusalReason)), scala.Tuple2.apply[String, io.circe.Json]("tags", $anon.this.circeGenericEncoderFortags.apply(circeGenericHListBindingFortags)), scala.Tuple2.apply[String, io.circe.Json]("createdAt", $anon.this.circeGenericEncoderForcreatedAt.apply(circeGenericHListBindingForcreatedAt)), scala.Tuple2.apply[String, io.circe.Json]("agreementRate", $anon.this.circeGenericEncoderForagreementRate.apply(circeGenericHListBindingForagreementRate)), scala.Tuple2.apply[String, io.circe.Json]("context", $anon.this.circeGenericEncoderForcontext.apply(circeGenericHListBindingForcontext)), scala.Tuple2.apply[String, io.circe.Json]("votes", $anon.this.circeGenericEncoderForvotes.apply(circeGenericHListBindingForvotes)), scala.Tuple2.apply[String, io.circe.Json]("votesCount", $anon.this.circeGenericEncoderForvotesCount.apply(circeGenericHListBindingForvotesCount))))
};
final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("id"), org.make.core.proposal.ProposalId, shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForid.tryDecode(c.downField("id")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("author"), org.make.api.proposal.ProposalListResponse.Author, shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForauthor.tryDecode(c.downField("author")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("content"), String, shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontent.tryDecode(c.downField("content")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("contentTranslations"), org.make.core.technical.Multilingual[String], shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontentTranslations.tryDecode(c.downField("contentTranslations")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("submittedAsLanguage"), Option[org.make.core.reference.Language], shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForsubmittedAsLanguage.tryDecode(c.downField("submittedAsLanguage")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("status"), org.make.core.proposal.ProposalStatus, shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForstatus.tryDecode(c.downField("status")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("proposalType"), org.make.core.proposal.ProposalType, shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForproposalType.tryDecode(c.downField("proposalType")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("refusalReason"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForrefusalReason.tryDecode(c.downField("refusalReason")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("tags"), Seq[org.make.core.proposal.indexed.IndexedTag], shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortags.tryDecode(c.downField("tags")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("createdAt"), java.time.ZonedDateTime, shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcreatedAt.tryDecode(c.downField("createdAt")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("agreementRate"), Double, shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForagreementRate.tryDecode(c.downField("agreementRate")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("context"), org.make.api.proposal.ProposalListResponse.Context, shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontext.tryDecode(c.downField("context")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("votes"), Seq[org.make.api.proposal.ProposalListResponse.Vote], shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForvotes.tryDecode(c.downField("votes")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("votesCount"), Int, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForvotesCount.tryDecode(c.downField("votesCount")), 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))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(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("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("id"), org.make.core.proposal.ProposalId, shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForid.tryDecodeAccumulating(c.downField("id")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("author"), org.make.api.proposal.ProposalListResponse.Author, shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForauthor.tryDecodeAccumulating(c.downField("author")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("content"), String, shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontent.tryDecodeAccumulating(c.downField("content")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("contentTranslations"), org.make.core.technical.Multilingual[String], shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontentTranslations.tryDecodeAccumulating(c.downField("contentTranslations")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("submittedAsLanguage"), Option[org.make.core.reference.Language], shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForsubmittedAsLanguage.tryDecodeAccumulating(c.downField("submittedAsLanguage")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("status"), org.make.core.proposal.ProposalStatus, shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForstatus.tryDecodeAccumulating(c.downField("status")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("proposalType"), org.make.core.proposal.ProposalType, shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForproposalType.tryDecodeAccumulating(c.downField("proposalType")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("refusalReason"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForrefusalReason.tryDecodeAccumulating(c.downField("refusalReason")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("tags"), Seq[org.make.core.proposal.indexed.IndexedTag], shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortags.tryDecodeAccumulating(c.downField("tags")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("createdAt"), java.time.ZonedDateTime, shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcreatedAt.tryDecodeAccumulating(c.downField("createdAt")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("agreementRate"), Double, shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForagreementRate.tryDecodeAccumulating(c.downField("agreementRate")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("context"), org.make.api.proposal.ProposalListResponse.Context, shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcontext.tryDecodeAccumulating(c.downField("context")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("votes"), Seq[org.make.api.proposal.ProposalListResponse.Vote], shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForvotes.tryDecodeAccumulating(c.downField("votes")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("votesCount"), Int, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForvotesCount.tryDecodeAccumulating(c.downField("votesCount")), 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))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(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.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("id"),org.make.core.proposal.ProposalId] :: shapeless.labelled.FieldType[Symbol @@ String("author"),org.make.api.proposal.ProposalListResponse.Author] :: shapeless.labelled.FieldType[Symbol @@ String("content"),String] :: shapeless.labelled.FieldType[Symbol @@ String("contentTranslations"),org.make.core.technical.Multilingual[String]] :: shapeless.labelled.FieldType[Symbol @@ String("submittedAsLanguage"),Option[org.make.core.reference.Language]] :: shapeless.labelled.FieldType[Symbol @@ String("status"),org.make.core.proposal.ProposalStatus] :: shapeless.labelled.FieldType[Symbol @@ String("proposalType"),org.make.core.proposal.ProposalType] :: shapeless.labelled.FieldType[Symbol @@ String("refusalReason"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("tags"),Seq[org.make.core.proposal.indexed.IndexedTag]] :: shapeless.labelled.FieldType[Symbol @@ String("createdAt"),java.time.ZonedDateTime] :: shapeless.labelled.FieldType[Symbol @@ String("agreementRate"),Double] :: shapeless.labelled.FieldType[Symbol @@ String("context"),org.make.api.proposal.ProposalListResponse.Context] :: shapeless.labelled.FieldType[Symbol @@ String("votes"),Seq[org.make.api.proposal.ProposalListResponse.Vote]] :: shapeless.labelled.FieldType[Symbol @@ String("votesCount"),Int] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]]
};
new anon$lazy$macro$59().inst$macro$1
};
shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.api.proposal.ProposalListResponse]](inst$macro$60)
})
|