| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
560
|
35926
|
18830
-
18881
|
Apply
|
akka.http.scaladsl.server.RouteConcatenation.RouteWithConcatenation.~
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this._enhanceRouteWithConcatenation(ModerationProposalApi.this.searchAllProposals).~(ModerationProposalApi.this.legacySearchAllProposals)
|
|
560
|
30686
|
18830
-
18848
|
Select
|
org.make.api.proposal.ModerationProposalApi.searchAllProposals
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.searchAllProposals
|
|
561
|
45845
|
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
|
44814
|
18857
-
18881
|
Select
|
org.make.api.proposal.ModerationProposalApi.legacySearchAllProposals
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.legacySearchAllProposals
|
|
562
|
49724
|
18890
-
18904
|
Select
|
org.make.api.proposal.ModerationProposalApi.updateProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.updateProposal
|
|
562
|
51371
|
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
|
38033
|
18913
-
18927
|
Select
|
org.make.api.proposal.ModerationProposalApi.acceptProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.acceptProposal
|
|
563
|
35343
|
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)
|
|
564
|
43219
|
18936
-
18950
|
Select
|
org.make.api.proposal.ModerationProposalApi.refuseProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.refuseProposal
|
|
564
|
44850
|
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
|
31442
|
18959
-
18975
|
Select
|
org.make.api.proposal.ModerationProposalApi.postponeProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.postponeProposal
|
|
565
|
49765
|
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)
|
|
566
|
37460
|
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)
|
|
566
|
36985
|
18984
-
18988
|
Select
|
org.make.api.proposal.ModerationProposalApi.lock
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.lock
|
|
567
|
41896
|
18997
-
19009
|
Select
|
org.make.api.proposal.ModerationProposalApi.lockMultiple
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.lockMultiple
|
|
567
|
42984
|
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
|
30644
|
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)
|
|
568
|
51406
|
19018
-
19037
|
Select
|
org.make.api.proposal.ModerationProposalApi.changeProposalsIdea
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.changeProposalsIdea
|
|
569
|
37022
|
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)
|
|
569
|
35388
|
19046
-
19067
|
Select
|
org.make.api.proposal.ModerationProposalApi.getModerationProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.getModerationProposal
|
|
570
|
41932
|
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
|
44010
|
19076
-
19096
|
Select
|
org.make.api.proposal.ModerationProposalApi.nextAuthorToModerate
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.nextAuthorToModerate
|
|
571
|
50559
|
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
|
49515
|
19105
-
19127
|
Select
|
org.make.api.proposal.ModerationProposalApi.nextProposalToModerate
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.nextProposalToModerate
|
|
572
|
35130
|
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
|
37498
|
19136
-
19154
|
Select
|
org.make.api.proposal.ModerationProposalApi.getTagsForProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.getTagsForProposal
|
|
573
|
44045
|
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)
|
|
573
|
43020
|
19163
-
19178
|
Select
|
org.make.api.proposal.ModerationProposalApi.bulkTagProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.bulkTagProposal
|
|
574
|
30674
|
19187
-
19208
|
Select
|
org.make.api.proposal.ModerationProposalApi.bulkDeleteTagProposal
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.bulkDeleteTagProposal
|
|
574
|
49551
|
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)
|
|
575
|
36940
|
19217
-
19244
|
Select
|
org.make.api.proposal.ModerationProposalApi.bulkRefuseInitialsProposals
|
org.make.api.proposal.moderationproposalapitest
|
ModerationProposalApi.this.bulkRefuseInitialsProposals
|
|
602
|
37252
|
20103
-
20117
|
Apply
|
org.make.core.proposal.ProposalId.apply
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.proposal.ProposalId.apply(id)
|
|
602
|
41426
|
20085
-
20092
|
Select
|
akka.http.scaladsl.server.PathMatchers.Segment
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.Segment
|
|
602
|
50601
|
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)))
|
|
605
|
43476
|
20176
-
20179
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
605
|
42796
|
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])))))))))))))))
|
|
606
|
47975
|
20210
-
20221
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
606
|
36978
|
20224
-
20244
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
606
|
35171
|
20195
-
20207
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
606
|
51116
|
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
|
43798
|
20208
-
20208
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
606
|
50341
|
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]))))))))))))))
|
|
606
|
41184
|
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
|
37293
|
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
|
50024
|
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,)]
|
|
607
|
35372
|
20272
-
20272
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
607
|
43512
|
20286
-
20309
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"GetModerationProposal"
|
|
607
|
33278
|
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
|
36735
|
20285
-
20285
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
607
|
47719
|
20272
-
20272
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
607
|
43837
|
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)
|
|
608
|
50062
|
20330
-
20340
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
608
|
41714
|
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
|
41920
|
20330
-
20330
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
609
|
37049
|
20409
-
20418
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
609
|
49298
|
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]))))))))
|
|
609
|
51152
|
20387
-
20419
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
611
|
43270
|
20438
-
20510
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)
|
|
612
|
35123
|
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
|
48466
|
20530
-
20530
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
613
|
36809
|
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
|
49539
|
20650
-
20723
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, moderationProposalResponse.questionId)
|
|
615
|
36774
|
20685
-
20722
|
Select
|
org.make.api.proposal.ModerationProposalResponse.questionId
|
|
moderationProposalResponse.questionId
|
|
615
|
43787
|
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
|
44360
|
20674
-
20683
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
616
|
34086
|
20759
-
20759
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
616
|
41676
|
20759
-
20759
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
616
|
50911
|
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
|
48225
|
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
|
43308
|
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
|
35158
|
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])))
|
|
627
|
34917
|
20957
-
20960
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
627
|
31325
|
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
|
50382
|
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
|
33320
|
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
|
49334
|
21005
-
21013
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("legacy")
|
|
628
|
35960
|
20989
-
20989
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
628
|
39836
|
20991
-
21002
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
628
|
39477
|
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
|
48263
|
20976
-
20988
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
628
|
41474
|
21003
-
21003
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
629
|
39873
|
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
|
47355
|
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
|
36001
|
21040
-
21040
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
629
|
48768
|
21027
-
21027
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
629
|
43259
|
21041
-
21052
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"SearchAll"
|
|
629
|
34954
|
21027
-
21027
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
630
|
41506
|
21086
-
21086
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
630
|
49804
|
21086
-
21096
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
630
|
51248
|
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
|
37433
|
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]))))))
})))))
|
|
631
|
33356
|
21169
-
21182
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
631
|
50127
|
21147
-
21183
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
632
|
32636
|
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]]
|
|
632
|
39935
|
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)))
|
|
633
|
49844
|
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
|
35419
|
21232
-
21267
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("proposalIds").as[Seq[org.make.core.proposal.ProposalId]].?
|
|
633
|
39910
|
21266
-
21266
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalId](DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller)
|
|
633
|
48810
|
21266
-
21266
|
Select
|
org.make.core.ParameterExtractors.proposalIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller
|
|
633
|
36530
|
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
|
43298
|
21232
-
21245
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
634
|
41427
|
21287
-
21302
|
Literal
|
<nosymbol>
|
|
"createdBefore"
|
|
634
|
43054
|
21321
-
21321
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, java.time.ZonedDateTime](DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller)
|
|
634
|
46448
|
21321
-
21321
|
Select
|
org.make.core.ParameterExtractors.zonedDateTimeFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.zonedDateTimeFromStringUnmarshaller
|
|
634
|
35454
|
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
|
34425
|
21287
-
21322
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("createdBefore").as[java.time.ZonedDateTime].?
|
|
635
|
36565
|
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
|
49589
|
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
|
40972
|
21342
-
21374
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType]
|
|
635
|
48248
|
21342
-
21356
|
Literal
|
<nosymbol>
|
|
"proposalType"
|
|
636
|
48011
|
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
|
46946
|
21419
-
21419
|
Select
|
org.make.core.ParameterExtractors.tagIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller
|
|
636
|
43092
|
21419
-
21419
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.tag.TagId](DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller)
|
|
636
|
34670
|
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
|
33863
|
21394
-
21420
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("tagsIds").as[Seq[org.make.core.tag.TagId]].?
|
|
636
|
41465
|
21394
-
21403
|
Literal
|
<nosymbol>
|
|
"tagsIds"
|
|
637
|
49626
|
21470
-
21470
|
Select
|
org.make.core.ParameterExtractors.operationIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.operationIdFromStringUnmarshaller
|
|
637
|
33615
|
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
|
41495
|
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
|
36327
|
21440
-
21471
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("operationId").as[org.make.core.operation.OperationId].?
|
|
637
|
40397
|
21440
-
21453
|
Literal
|
<nosymbol>
|
|
"operationId"
|
|
638
|
32001
|
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
|
46404
|
21491
-
21503
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
638
|
34710
|
21524
-
21524
|
Select
|
org.make.core.ParameterExtractors.questionIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller
|
|
638
|
48042
|
21524
-
21524
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.question.QuestionId](DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller)
|
|
638
|
42840
|
21491
-
21525
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("questionId").as[Seq[org.make.core.question.QuestionId]].?
|
|
638
|
40929
|
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
|
47460
|
21570
-
21570
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.idea.IdeaId](DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller)
|
|
639
|
41257
|
21545
-
21571
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("ideaId").as[Seq[org.make.core.idea.IdeaId]].?
|
|
639
|
49125
|
21545
-
21553
|
Literal
|
<nosymbol>
|
|
"ideaId"
|
|
639
|
42279
|
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))
|
|
639
|
34742
|
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
|
33650
|
21570
-
21570
|
Select
|
org.make.core.ParameterExtractors.ideaIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.ideaIdFromStringUnmarshaller
|
|
640
|
40962
|
21591
-
21602
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("content").?
|
|
640
|
47798
|
21591
-
21600
|
Literal
|
<nosymbol>
|
|
"content"
|
|
640
|
49577
|
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
|
41290
|
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]))
|
|
640
|
33073
|
21601
-
21601
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
641
|
34179
|
21622
-
21630
|
Literal
|
<nosymbol>
|
|
"source"
|
|
641
|
47837
|
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
|
38595
|
21631
-
21631
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
641
|
35194
|
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
|
47497
|
21622
-
21632
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("source").?
|
|
642
|
34215
|
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
|
33111
|
21652
-
21664
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("location").?
|
|
642
|
49615
|
21663
-
21663
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
642
|
40718
|
21652
-
21662
|
Literal
|
<nosymbol>
|
|
"location"
|
|
642
|
41746
|
21663
-
21663
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
643
|
35237
|
21695
-
21695
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
643
|
40755
|
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]))
|
|
643
|
47244
|
21684
-
21694
|
Literal
|
<nosymbol>
|
|
"question"
|
|
643
|
39118
|
21684
-
21696
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("question").?
|
|
643
|
47749
|
21695
-
21695
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
644
|
41784
|
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
|
49368
|
21716
-
21744
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus]
|
|
644
|
31827
|
21716
-
21724
|
Literal
|
<nosymbol>
|
|
"status"
|
|
644
|
33357
|
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
|
47789
|
21788
-
21788
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Int](akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller)
|
|
645
|
34988
|
21788
-
21788
|
Select
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.intFromStringUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.intFromStringUnmarshaller
|
|
645
|
40174
|
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
|
47285
|
21764
-
21779
|
Literal
|
<nosymbol>
|
|
"minVotesCount"
|
|
645
|
39159
|
21764
-
21789
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("minVotesCount").as[Int].?
|
|
646
|
45705
|
21809
-
21833
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("toEnrich").as[Boolean].?
|
|
646
|
41006
|
21832
-
21832
|
Select
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.booleanFromStringUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller
|
|
646
|
46718
|
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
|
32347
|
21809
-
21819
|
Literal
|
<nosymbol>
|
|
"toEnrich"
|
|
646
|
33399
|
21832
-
21832
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Boolean](akka.http.scaladsl.unmarshalling.Unmarshaller.booleanFromStringUnmarshaller)
|
|
647
|
33099
|
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))
|
|
647
|
38909
|
21853
-
21863
|
Literal
|
<nosymbol>
|
|
"minScore"
|
|
647
|
35027
|
21853
-
21876
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("minScore").as[Double].?
|
|
647
|
39946
|
21875
-
21875
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, Double](akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller)
|
|
647
|
47542
|
21875
-
21875
|
Select
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.doubleFromStringUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.doubleFromStringUnmarshaller
|
|
648
|
33433
|
21920
-
21920
|
Select
|
org.make.core.ParameterExtractors.languageFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller
|
|
648
|
45455
|
21896
-
21906
|
Literal
|
<nosymbol>
|
|
"language"
|
|
648
|
39650
|
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
|
47237
|
21920
-
21920
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, org.make.core.reference.Language](DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller)
|
|
648
|
41046
|
21896
-
21921
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("language").as[org.make.core.reference.Language].?
|
|
649
|
32851
|
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
|
35563
|
21941
-
21950
|
Literal
|
<nosymbol>
|
|
"country"
|
|
649
|
39974
|
21963
-
21963
|
Select
|
org.make.core.ParameterExtractors.countryFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.countryFromStringUnmarshaller
|
|
649
|
47581
|
21941
-
21964
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("country").as[org.make.core.reference.Country].?
|
|
649
|
46193
|
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))
|
|
650
|
47275
|
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
|
41080
|
21984
-
21994
|
Literal
|
<nosymbol>
|
|
"userType"
|
|
650
|
39408
|
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
|
33184
|
21984
-
22008
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType]
|
|
651
|
47619
|
22028
-
22068
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("keywords").as[Seq[org.make.core.proposal.ProposalKeywordKey]].?
|
|
651
|
41529
|
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
|
32888
|
22067
-
22067
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers.CsvSeq
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.CsvSeq[org.make.core.proposal.ProposalKeywordKey](DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller)
|
|
651
|
45404
|
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
|
31249
|
22028
-
22038
|
Literal
|
<nosymbol>
|
|
"keywords"
|
|
651
|
40502
|
22067
-
22067
|
Select
|
org.make.core.ParameterExtractors.proposalKeywordKeyFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.proposalKeywordKeyFromStringUnmarshaller
|
|
652
|
48076
|
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
|
31286
|
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
|
33221
|
22088
-
22096
|
Literal
|
<nosymbol>
|
|
"userId"
|
|
652
|
39441
|
22108
-
22108
|
Select
|
org.make.core.ParameterExtractors.userIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller
|
|
652
|
47030
|
22088
-
22109
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?
|
|
653
|
45733
|
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
|
46266
|
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]]
|
|
676
|
34252
|
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])))))
|
|
677
|
33135
|
23277
-
23277
|
Select
|
org.make.core.ParameterExtractors.limitFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.limitFromIntUnmarshaller
|
|
677
|
37851
|
23248
-
23278
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("limit").as[org.make.core.technical.Pagination.Limit].?
|
|
677
|
39202
|
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
|
46472
|
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
|
45448
|
23248
-
23255
|
Literal
|
<nosymbol>
|
|
"limit"
|
|
678
|
31033
|
23302
-
23308
|
Literal
|
<nosymbol>
|
|
"skip"
|
|
678
|
32073
|
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
|
39690
|
23331
-
23331
|
Select
|
org.make.core.ParameterExtractors.startFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller
|
|
678
|
48116
|
23302
-
23332
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("skip").as[org.make.core.technical.Pagination.Offset].?
|
|
678
|
45487
|
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))
|
|
679
|
31074
|
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
|
33173
|
23356
-
23364
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("sort").?
|
|
679
|
37605
|
23356
-
23362
|
Literal
|
<nosymbol>
|
|
"sort"
|
|
679
|
39399
|
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
|
46226
|
23363
-
23363
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
680
|
39729
|
23388
-
23407
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("order").as[org.make.core.Order].?
|
|
680
|
45946
|
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
|
37647
|
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
|
32108
|
23406
-
23406
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))
|
|
680
|
48636
|
23388
-
23395
|
Literal
|
<nosymbol>
|
|
"order"
|
|
681
|
32924
|
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
|
37558
|
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)))))
|
|
688
|
37595
|
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]]): _*))
|
|
689
|
45978
|
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
|
39429
|
23859
-
23868
|
Literal
|
<nosymbol>
|
|
"country"
|
|
691
|
31550
|
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
|
43645
|
24095
-
24112
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[org.make.core.reference.Country](countryValue)
|
|
695
|
32627
|
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
|
40794
|
24180
-
24193
|
Select
|
org.make.core.CountryConfiguration.countryCode
|
|
x$3.countryCode
|
|
697
|
40832
|
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
|
34286
|
24342
-
24745
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[String]("content", "slug", "status", "createdAt", "updatedAt", "trending", "labels", "country", "language")
|
|
710
|
44112
|
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
|
46303
|
24837
-
24843
|
Literal
|
<nosymbol>
|
|
"sort"
|
|
712
|
39192
|
24883
-
25043
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("Invalid sort. Got ".+(sortValue).+(" but expected one of: ").+(choices.mkString("\"", "\", \"", "\"")): String))
|
|
715
|
31581
|
25073
-
25087
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[String](sortValue)
|
|
718
|
32662
|
25180
-
25180
|
TypeApply
|
scala.Predef.$conforms
|
|
scala.Predef.$conforms[Option[org.make.core.Requirement]]
|
|
718
|
45740
|
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]])
|
|
721
|
46814
|
25299
-
25338
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)
|
|
721
|
33721
|
25328
-
25337
|
Select
|
org.make.core.user.Role.RoleAdmin
|
|
org.make.core.user.Role.RoleAdmin
|
|
722
|
39228
|
25370
-
25381
|
Ident
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.questionIds
|
|
questionIds
|
|
725
|
44150
|
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
|
30773
|
25529
-
25574
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id)
|
|
726
|
45777
|
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
|
37355
|
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
|
32426
|
25613
-
25651
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
|
|
726
|
40252
|
25618
-
25650
|
Select
|
org.make.core.auth.UserRights.availableQuestions
|
|
userAuth.user.availableQuestions
|
|
731
|
50703
|
25815
-
25882
|
Apply
|
org.make.api.proposal.ContextFilterRequest.parse
|
|
ContextFilterRequest.parse(operationId, source, location, question)
|
|
733
|
30812
|
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
|
38991
|
25963
-
25963
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$24
|
|
ExhaustiveSearchRequest.apply$default$24
|
|
733
|
46254
|
25963
-
25963
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4
|
|
ExhaustiveSearchRequest.apply$default$4
|
|
757
|
44186
|
27122
-
27175
|
Apply
|
org.make.api.proposal.ExhaustiveSearchRequest.toSearchQuery
|
|
exhaustiveSearchRequest.toSearchQuery(requestContext)
|
|
759
|
40783
|
27200
-
27304
|
Apply
|
org.make.api.proposal.ProposalService.searchInIndex
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)
|
|
760
|
45534
|
27332
-
27332
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
760
|
31855
|
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
|
50738
|
27386
-
27386
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
761
|
47314
|
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
|
35806
|
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
|
43943
|
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
|
30569
|
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
|
38416
|
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
|
37392
|
27386
-
27386
|
Select
|
org.make.core.proposal.indexed.ProposalsSearchResult.circeCodec
|
|
indexed.this.ProposalsSearchResult.circeCodec
|
|
771
|
47715
|
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
|
43981
|
27542
-
27545
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
772
|
45767
|
27572
-
27572
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
772
|
51290
|
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
|
32963
|
27574
-
27585
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
772
|
35633
|
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
|
37885
|
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])
|
|
772
|
36871
|
27559
-
27571
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
773
|
38979
|
27597
-
27597
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
773
|
31355
|
27597
-
27597
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
773
|
43506
|
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
|
36911
|
27610
-
27610
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
773
|
47103
|
27611
-
27632
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"ModerationSearchAll"
|
|
773
|
43894
|
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
|
51109
|
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
|
32710
|
27664
-
27674
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
774
|
45523
|
27664
-
27664
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
775
|
37920
|
27745
-
27758
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
775
|
33281
|
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]]))))))
})))
|
|
775
|
50443
|
27723
-
27759
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
776
|
35883
|
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
|
48924
|
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
|
43446
|
27804
-
27808
|
Literal
|
<nosymbol>
|
|
"id"
|
|
777
|
43933
|
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)
|
|
777
|
31112
|
27812
-
27812
|
Select
|
org.make.core.ParameterExtractors.proposalIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.proposalIdFromStringUnmarshaller
|
|
777
|
39018
|
27804
-
27824
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("id").csv[org.make.core.proposal.ProposalId]
|
|
778
|
37142
|
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
|
36065
|
27842
-
27854
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
778
|
45560
|
27858
-
27858
|
Select
|
org.make.core.ParameterExtractors.questionIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.questionIdFromStringUnmarshaller
|
|
778
|
32212
|
27842
-
27870
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("questionId").csv[org.make.core.question.QuestionId]
|
|
779
|
42591
|
27888
-
27909
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("userId").as[org.make.core.user.UserId].?
|
|
779
|
31146
|
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
|
50479
|
27888
-
27896
|
Literal
|
<nosymbol>
|
|
"userId"
|
|
779
|
43678
|
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
|
38773
|
27908
-
27908
|
Select
|
org.make.core.ParameterExtractors.userIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.userIdFromStringUnmarshaller
|
|
780
|
45307
|
27937
-
27937
|
TypeApply
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String]
|
|
780
|
37183
|
27937
-
27937
|
ApplyToImplicitArgs
|
akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers.sourceOptionUnmarshaller
|
|
akka.http.scaladsl.unmarshalling.Unmarshaller.sourceOptionUnmarshaller[String, String](akka.http.scaladsl.unmarshalling.Unmarshaller.identityUnmarshaller[String])
|
|
780
|
36100
|
27927
-
27936
|
Literal
|
<nosymbol>
|
|
"content"
|
|
780
|
32951
|
27927
-
27938
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("content").?
|
|
780
|
50233
|
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]))
|
|
781
|
43399
|
27956
-
27964
|
Literal
|
<nosymbol>
|
|
"status"
|
|
781
|
43718
|
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])))
|
|
781
|
30899
|
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
|
39503
|
27956
-
27984
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("status").csv[org.make.core.proposal.ProposalStatus]
|
|
782
|
46055
|
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
|
36137
|
28002
-
28012
|
Literal
|
<nosymbol>
|
|
"userType"
|
|
782
|
49944
|
28002
-
28026
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("userType").csv[org.make.core.user.UserType]
|
|
782
|
38239
|
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
|
31099
|
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])))
|
|
783
|
39266
|
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
|
43434
|
28044
-
28076
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("proposalType").csv[org.make.core.proposal.ProposalType]
|
|
783
|
50273
|
28044
-
28058
|
Literal
|
<nosymbol>
|
|
"proposalType"
|
|
784
|
36661
|
28094
-
28112
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("tagId").csv[org.make.core.tag.TagId]
|
|
784
|
45811
|
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
|
44779
|
28094
-
28101
|
Literal
|
<nosymbol>
|
|
"tagId"
|
|
784
|
49985
|
28105
-
28105
|
Select
|
org.make.core.ParameterExtractors.tagIdFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.tagIdFromStringUnmarshaller
|
|
785
|
37672
|
28130
-
28152
|
Literal
|
<nosymbol>
|
|
"submittedAsLanguages"
|
|
785
|
43189
|
28156
-
28156
|
Select
|
org.make.core.ParameterExtractors.languageFromStringUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.languageFromStringUnmarshaller
|
|
785
|
35599
|
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)
|
|
785
|
50312
|
28130
-
28166
|
TypeApply
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps.csv
|
|
org.make.api.technical.CsvReceptacle.RepeatedCsvFlatteningParamOps("submittedAsLanguages").csv[org.make.core.reference.Language]
|
|
786
|
45295
|
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
|
49727
|
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
|
36697
|
28215
-
28215
|
Select
|
org.make.core.ParameterExtractors.startFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.startFromIntUnmarshaller
|
|
786
|
30850
|
28184
-
28192
|
Literal
|
<nosymbol>
|
|
"_start"
|
|
786
|
44222
|
28184
-
28216
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_start").as[org.make.core.technical.Pagination.Offset].?
|
|
787
|
50223
|
28234
-
28261
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_end").as[org.make.core.technical.Pagination.End].?
|
|
787
|
30888
|
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))
|
|
787
|
37709
|
28234
-
28240
|
Literal
|
<nosymbol>
|
|
"_end"
|
|
787
|
43226
|
28260
-
28260
|
Select
|
org.make.core.ParameterExtractors.endFromIntUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.endFromIntUnmarshaller
|
|
787
|
35349
|
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)
|
|
788
|
44254
|
28279
-
28286
|
Literal
|
<nosymbol>
|
|
"_sort"
|
|
788
|
45055
|
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
|
35844
|
28279
-
28323
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_sort").as[org.make.core.proposal.indexed.ProposalElasticsearchFieldName].?
|
|
788
|
49771
|
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]))
|
|
788
|
37466
|
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]))))
|
|
789
|
50263
|
28341
-
28349
|
Literal
|
<nosymbol>
|
|
"_order"
|
|
789
|
34837
|
28360
-
28360
|
ApplyToImplicitArgs
|
org.make.core.ParameterExtractors.enumeratumEnumUnmarshaller
|
|
DefaultModerationProposalApiComponent.this.enumeratumEnumUnmarshaller[org.make.core.Order]((Order: enumeratum.Enum[org.make.core.Order]))
|
|
789
|
42379
|
28341
-
28361
|
Select
|
akka.http.scaladsl.common.NameReceptacle.?
|
|
DefaultModerationProposalApi.this._string2NR("_order").as[org.make.core.Order].?
|
|
789
|
30927
|
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
|
44769
|
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]))))
|
|
790
|
41181
|
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
|
41389
|
29217
-
29226
|
Select
|
org.make.core.user.Role.RoleAdmin
|
|
org.make.core.user.Role.RoleAdmin
|
|
807
|
37503
|
29188
-
29227
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.roles.contains[org.make.core.user.Role](org.make.core.user.Role.RoleAdmin)
|
|
808
|
51327
|
29253
-
29264
|
Ident
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.questionIds
|
|
questionIds
|
|
811
|
42414
|
29394
-
29439
|
Apply
|
scala.collection.SeqOps.contains
|
|
userAuth.user.availableQuestions.contains[org.make.core.question.QuestionId](id)
|
|
811
|
35301
|
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)))
|
|
812
|
44810
|
29472
-
29510
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[Seq[org.make.core.question.QuestionId]](userAuth.user.availableQuestions)
|
|
812
|
30678
|
29477
-
29509
|
Select
|
org.make.core.auth.UserRights.availableQuestions
|
|
userAuth.user.availableQuestions
|
|
812
|
49719
|
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
|
36946
|
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))
|
|
816
|
37454
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$12
|
|
ExhaustiveSearchRequest.apply$default$12
|
|
816
|
49757
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$9
|
|
ExhaustiveSearchRequest.apply$default$9
|
|
816
|
42980
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$14
|
|
ExhaustiveSearchRequest.apply$default$14
|
|
816
|
48435
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$20
|
|
ExhaustiveSearchRequest.apply$default$20
|
|
816
|
51120
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$13
|
|
ExhaustiveSearchRequest.apply$default$13
|
|
816
|
36741
|
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
|
41891
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$11
|
|
ExhaustiveSearchRequest.apply$default$11
|
|
816
|
44570
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$5
|
|
ExhaustiveSearchRequest.apply$default$5
|
|
816
|
44005
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$22
|
|
ExhaustiveSearchRequest.apply$default$22
|
|
816
|
35377
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$15
|
|
ExhaustiveSearchRequest.apply$default$15
|
|
816
|
36982
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$7
|
|
ExhaustiveSearchRequest.apply$default$7
|
|
816
|
31437
|
29603
-
29603
|
Select
|
org.make.api.proposal.ExhaustiveSearchRequest.apply$default$4
|
|
ExhaustiveSearchRequest.apply$default$4
|
|
823
|
42133
|
29929
-
29936
|
Select
|
org.make.core.elasticsearch.ElasticsearchFieldName.field
|
|
x$5.field
|
|
823
|
38029
|
29920
-
29937
|
Apply
|
scala.Option.map
|
|
sort.map[String](((x$5: org.make.core.proposal.indexed.ProposalElasticsearchFieldName) => x$5.field))
|
|
825
|
43480
|
30010
-
30034
|
Apply
|
org.make.core.technical.Pagination.End.toLimit
|
|
x$6.toLimit(technical.this.Pagination.RichOptionOffset(offset).orZero)
|
|
825
|
35339
|
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)))
|
|
825
|
51367
|
30020
-
30033
|
Select
|
org.make.core.technical.Pagination.RichOptionOffset.orZero
|
|
technical.this.Pagination.RichOptionOffset(offset).orZero
|
|
832
|
49511
|
30307
-
30360
|
Apply
|
org.make.api.proposal.ExhaustiveSearchRequest.toSearchQuery
|
|
exhaustiveSearchRequest.toSearchQuery(requestContext)
|
|
832
|
41925
|
30256
-
30377
|
Apply
|
org.make.api.proposal.ProposalService.searchInIndex
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(exhaustiveSearchRequest.toSearchQuery(requestContext), requestContext)
|
|
833
|
50554
|
30399
-
30399
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
833
|
37212
|
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
|
50017
|
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
|
36972
|
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
|
43471
|
30534
-
30534
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[Seq[org.make.api.proposal.ProposalListResponse]]
|
|
837
|
35165
|
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
|
41681
|
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
|
50596
|
30534
-
30534
|
ApplyToImplicitArgs
|
io.circe.Encoder.encodeSeq
|
|
circe.this.Encoder.encodeSeq[org.make.api.proposal.ProposalListResponse](proposal.this.ProposalListResponse.codec)
|
|
837
|
33534
|
30534
-
30534
|
Select
|
org.make.api.proposal.ProposalListResponse.codec
|
|
proposal.this.ProposalListResponse.codec
|
|
837
|
43792
|
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
|
47676
|
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
|
43014
|
30564
-
30578
|
Select
|
akka.http.scaladsl.model.StatusCodes.OK
|
|
akka.http.scaladsl.model.StatusCodes.OK
|
|
839
|
47930
|
30613
-
30654
|
Apply
|
akka.http.scaladsl.model.headers.ModeledCustomHeaderCompanion.apply
|
|
org.make.api.technical.X-Total-Count.apply(proposals.total.toString())
|
|
839
|
43752
|
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()))
|
|
839
|
35126
|
30629
-
30653
|
Apply
|
scala.Any.toString
|
|
proposals.total.toString()
|
|
840
|
49545
|
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
|
36934
|
30707
-
30733
|
Apply
|
org.make.api.proposal.ProposalListResponse.apply
|
|
ProposalListResponse.apply(proposal)
|
|
851
|
43832
|
30914
-
30953
|
Select
|
org.make.core.BusinessConfig.defaultProposalMaxLength
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.BusinessConfig.defaultProposalMaxLength
|
|
852
|
36730
|
31001
-
31051
|
Select
|
org.make.core.BusinessConfig.defaultProposalTranslationMaxLength
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.BusinessConfig.defaultProposalTranslationMaxLength
|
|
853
|
50056
|
31088
-
31131
|
Select
|
org.make.core.FrontConfiguration.defaultProposalMinLength
|
org.make.api.proposal.moderationproposalapitest
|
org.make.core.FrontConfiguration.defaultProposalMinLength
|
|
855
|
47024
|
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
|
41629
|
31174
-
31177
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.put
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.put
|
|
856
|
43264
|
31204
-
31204
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
|
TupleOps.this.Join.join0P[Unit]
|
|
856
|
35118
|
31220
-
31240
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
856
|
51147
|
31206
-
31217
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
856
|
33645
|
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
|
33325
|
31191
-
31203
|
Literal
|
<nosymbol>
|
|
"moderation"
|
|
856
|
36770
|
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
|
40631
|
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
|
49809
|
31190
-
31190
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
856
|
48182
|
31218
-
31218
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
|
TupleOps.this.Join.join0P[(org.make.core.proposal.ProposalId,)]
|
|
857
|
50908
|
31266
-
31266
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
857
|
43303
|
31266
-
31295
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
|
DefaultModerationProposalApiComponent.this.makeOperation("EditProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
857
|
37812
|
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
|
34875
|
31279
-
31279
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
857
|
34078
|
31266
-
31266
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
857
|
41671
|
31280
-
31294
|
Literal
|
<nosymbol>
|
|
"EditProposal"
|
|
858
|
45950
|
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
|
40066
|
31326
-
31326
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
858
|
48221
|
31326
-
31336
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
859
|
49293
|
31385
-
31421
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
859
|
32883
|
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
|
36533
|
31407
-
31420
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
860
|
39734
|
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
|
41704
|
31438
-
31451
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
861
|
43061
|
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
|
39831
|
31476
-
31476
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.UpdateProposalRequest]
|
|
861
|
33834
|
31479
-
31479
|
Select
|
org.make.api.proposal.UpdateProposalRequest.decoder
|
|
proposal.this.UpdateProposalRequest.decoder
|
|
861
|
48255
|
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
|
50336
|
31479
-
31479
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.UpdateProposalRequest](proposal.this.UpdateProposalRequest.decoder)
|
|
861
|
48036
|
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
|
34913
|
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)))
|
|
862
|
33314
|
31584
-
31584
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
862
|
41469
|
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
|
31244
|
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
|
35954
|
31552
-
31570
|
Select
|
org.make.api.proposal.UpdateProposalRequest.questionId
|
|
request.questionId
|
|
862
|
49058
|
31535
-
31583
|
Apply
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.retrieveQuestion
|
|
DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)
|
|
863
|
34947
|
31669
-
31694
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
863
|
43255
|
31674
-
31693
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
863
|
46371
|
31654
-
31667
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
863
|
48016
|
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
|
39403
|
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
|
37014
|
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
|
39867
|
31720
-
31773
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)
|
|
864
|
49798
|
31774
-
31774
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
864
|
46986
|
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]))))))
}
}))
|
|
866
|
41499
|
31901
-
31946
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
866
|
49621
|
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
|
49581
|
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
|
48806
|
32060
-
32060
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$1.withMaxLength$default$4
|
|
869
|
34385
|
32052
-
32059
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
869
|
35413
|
32060
-
32060
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$3
|
|
qual$1.withMaxLength$default$3
|
|
869
|
43015
|
32093
-
32105
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
869
|
40933
|
32052
-
32106
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$1.withMaxLength(x$1, "newContent", x$3, x$4)
|
|
869
|
46409
|
32074
-
32091
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalLength
|
|
DefaultModerationProposalApi.this.maxProposalLength
|
|
870
|
32767
|
32140
-
32147
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
870
|
43049
|
32140
-
32194
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$2.withMinLength(x$5, "newContent", x$7, x$8)
|
|
870
|
34421
|
32148
-
32148
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$3
|
|
qual$2.withMinLength$default$3
|
|
870
|
49837
|
32162
-
32179
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
870
|
47464
|
32148
-
32148
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$2.withMinLength$default$4
|
|
870
|
41958
|
32181
-
32193
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
871
|
40968
|
32236
-
32236
|
Select
|
org.make.core.Validation.StringWithParsers.toSanitizedInput$default$2
|
|
qual$3.toSanitizedInput$default$2
|
|
871
|
35450
|
32228
-
32235
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
871
|
47970
|
32253
-
32265
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
871
|
32807
|
32228
-
32266
|
Apply
|
org.make.core.Validation.StringWithParsers.toSanitizedInput
|
|
qual$3.toSanitizedInput("newContent", x$10)
|
|
872
|
35199
|
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
|
46362
|
32299
-
32299
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
872
|
33571
|
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
|
31962
|
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
|
41457
|
32299
-
32299
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
872
|
40108
|
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
|
48006
|
32299
-
32299
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
872
|
43086
|
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])
|
|
875
|
33597
|
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))))
|
|
875
|
41217
|
32454
-
32499
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
876
|
46396
|
32532
-
32532
|
Select
|
cats.instances.LazyListInstances.catsStdInstancesForLazyList
|
|
cats.implicits.catsStdInstancesForLazyList
|
|
876
|
45621
|
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
|
33105
|
32552
-
32552
|
Select
|
cats.kernel.instances.UnitInstances.catsKernelStdAlgebraForUnit
|
|
cats.implicits.catsKernelStdAlgebraForUnit
|
|
876
|
41742
|
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
|
33610
|
32530
-
32544
|
Select
|
org.make.core.technical.Multilingual.translations
|
|
x$7.translations
|
|
876
|
40715
|
32552
-
32552
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
878
|
40956
|
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
|
50092
|
32668
-
32750
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$4.withMaxLength(x$11, "newContentTranslations", x$13, x$14)
|
|
879
|
31993
|
32681
-
32681
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$4.withMaxLength$default$4
|
|
879
|
40925
|
32681
-
32681
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$3
|
|
qual$4.withMaxLength$default$3
|
|
879
|
34704
|
32695
-
32723
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalTranslationLength
|
|
DefaultModerationProposalApi.this.maxProposalTranslationLength
|
|
879
|
38519
|
32668
-
32680
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
879
|
47754
|
32725
-
32749
|
Literal
|
<nosymbol>
|
|
"newContentTranslations"
|
|
880
|
38551
|
32799
-
32799
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$3
|
|
qual$5.withMinLength$default$3
|
|
880
|
41251
|
32786
-
32798
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
880
|
35150
|
32799
-
32799
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$5.withMinLength$default$4
|
|
880
|
47456
|
32832
-
32856
|
Literal
|
<nosymbol>
|
|
"newContentTranslations"
|
|
880
|
47794
|
32786
-
32857
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$5.withMinLength(x$15, "newContentTranslations", x$17, x$18)
|
|
880
|
33644
|
32813
-
32830
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
881
|
35190
|
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
|
49572
|
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
|
47492
|
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
|
33068
|
32892
-
32892
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
881
|
33403
|
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
|
41705
|
32892
-
32892
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
881
|
39620
|
32892
-
32892
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
881
|
48532
|
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
|
|
886
|
47240
|
33098
-
33126
|
Select
|
org.make.api.proposal.ModerationProposalResponse.contentTranslations
|
|
proposal.contentTranslations
|
|
887
|
39115
|
33167
-
33185
|
TypeApply
|
org.make.core.technical.Multilingual.empty
|
|
org.make.core.technical.Multilingual.empty[String]
|
|
888
|
45658
|
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
|
34948
|
33301
-
33325
|
Select
|
org.make.core.question.Question.defaultLanguage
|
|
question.defaultLanguage
|
|
889
|
48288
|
33262
-
33326
|
Apply
|
scala.Option.getOrElse
|
|
proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage)
|
|
890
|
32856
|
33358
-
33404
|
Apply
|
scala.Option.getOrElse
|
|
request.newContent.getOrElse[String](proposal.content)
|
|
890
|
40135
|
33387
-
33403
|
Select
|
org.make.api.proposal.ModerationProposalResponse.content
|
|
proposal.content
|
|
894
|
46674
|
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
|
41780
|
33584
-
33615
|
TypeApply
|
scala.collection.IterableOnceOps.toSet
|
|
question.languages.toList.toSet[org.make.core.reference.Language]
|
|
894
|
33352
|
33622
-
33648
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "contents")
|
|
894
|
38869
|
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")))
|
|
895
|
41533
|
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
|
31254
|
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
|
39906
|
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
|
33057
|
33735
-
33735
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
895
|
45697
|
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
|
47781
|
33735
-
33735
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
896
|
31293
|
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
|
39610
|
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)
|
|
896
|
46440
|
33832
-
33846
|
Select
|
cats.Foldable.Ops.toList
|
|
cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList
|
|
896
|
33392
|
33832
-
33832
|
Select
|
cats.data.NonEmptyChainInstances.catsDataInstancesForNonEmptyChainBinCompat1
|
|
data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1
|
|
899
|
33140
|
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
|
47538
|
34076
-
34096
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
903
|
39940
|
34207
-
34223
|
Apply
|
org.make.core.DefaultDateHelper.now
|
|
org.make.core.DateHelper.now()
|
|
904
|
32808
|
34270
-
34288
|
Select
|
org.make.api.proposal.UpdateProposalRequest.newContent
|
|
request.newContent
|
|
905
|
46152
|
34347
-
34377
|
Select
|
org.make.api.proposal.UpdateProposalRequest.newContentTranslations
|
|
request.newContentTranslations
|
|
907
|
41041
|
34471
-
34483
|
Select
|
org.make.api.proposal.UpdateProposalRequest.tags
|
|
request.tags
|
|
909
|
39642
|
34547
-
34547
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
909
|
47234
|
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
|
39697
|
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
|
32848
|
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]))
|
|
910
|
37776
|
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
|
46185
|
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
|
47575
|
34615
-
34615
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
910
|
33178
|
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
|
31757
|
34615
-
34615
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
926
|
39196
|
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
|
46466
|
35033
-
35033
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
927
|
39434
|
35070
-
35097
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[org.make.core.question.Question](question)
|
|
929
|
33682
|
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
|
37563
|
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
|
45445
|
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
|
39927
|
35253
-
35294
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("question \'".+(questionId).+("\' not found"): String))
|
|
931
|
32632
|
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
|
30993
|
35226
-
35238
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
931
|
48071
|
35240
-
35251
|
Literal
|
<nosymbol>
|
|
"not_found"
|
|
936
|
46260
|
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
|
50152
|
35430
-
35430
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
938
|
31029
|
35481
-
35500
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
940
|
37600
|
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)
|
|
940
|
45187
|
35616
-
35616
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
941
|
44117
|
35661
-
35688
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[org.make.core.question.Question](question)
|
|
943
|
32068
|
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
|
39685
|
35780
-
35869
|
Apply
|
java.lang.IllegalStateException.<init>
|
|
new java.lang.IllegalStateException(("question \'".+(questionId).+("\' not found for proposal \'").+(proposalId).+("\'"): String))
|
|
947
|
33164
|
35954
-
36024
|
Apply
|
java.lang.IllegalStateException.<init>
|
|
new java.lang.IllegalStateException(("proposal \'".+(proposalId).+("\' has no questionId"): String))
|
|
947
|
46220
|
35940
-
36025
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException(("proposal \'".+(proposalId).+("\' has no questionId"): String)))
|
|
950
|
37641
|
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
|
45940
|
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
|
30776
|
36184
-
36195
|
Literal
|
<nosymbol>
|
|
"not_found"
|
|
952
|
44155
|
36197
-
36238
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String](("proposal \'".+(proposalId).+("\' not found"): String))
|
|
952
|
39391
|
36170
-
36182
|
Literal
|
<nosymbol>
|
|
"questionId"
|
|
952
|
39722
|
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
|
31820
|
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))))
|
|
959
|
41885
|
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]))))))
}
}))))))))))))))))
|
|
959
|
39154
|
36343
-
36347
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
960
|
40788
|
36374
-
36374
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
960
|
39185
|
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
|
31541
|
36361
-
36373
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
960
|
32620
|
36390
-
36410
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
960
|
44107
|
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
|
47319
|
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
|
49472
|
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
|
45698
|
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
|
43640
|
36376
-
36387
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
960
|
50192
|
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
|
31575
|
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
|
38103
|
36413
-
36421
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("accept")
|
|
961
|
37588
|
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
|
32381
|
36447
-
36447
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
961
|
36977
|
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
|
40826
|
36461
-
36479
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"ValidateProposal"
|
|
961
|
50661
|
36460
-
36460
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
961
|
45738
|
36447
-
36447
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
962
|
44565
|
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
|
46807
|
36511
-
36521
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
962
|
38950
|
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]]
|
|
963
|
44144
|
36566
-
36598
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
963
|
31329
|
36588
-
36597
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
963
|
48392
|
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
|
36284
|
36615
-
36628
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
964
|
35333
|
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
|
32418
|
36656
-
36656
|
Select
|
org.make.api.proposal.ValidateProposalRequest.decoder
|
|
proposal.this.ValidateProposalRequest.decoder
|
|
965
|
38984
|
36653
-
36653
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ValidateProposalRequest]
|
|
965
|
37351
|
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
|
47268
|
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
|
43475
|
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
|
50697
|
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
|
45771
|
36656
-
36656
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.ValidateProposalRequest](proposal.this.ValidateProposalRequest.decoder)
|
|
966
|
31849
|
36763
-
36763
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
966
|
30808
|
36731
-
36749
|
Select
|
org.make.api.proposal.ValidateProposalRequest.questionId
|
|
request.questionId
|
|
966
|
51359
|
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]))))))
}
})))))
|
|
966
|
43897
|
36714
-
36762
|
Apply
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.retrieveQuestion
|
|
DefaultModerationProposalApi.this.retrieveQuestion(request.questionId, proposalId)
|
|
966
|
36321
|
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
|
|
967
|
37388
|
36849
-
36868
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
967
|
37250
|
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
|
50448
|
36844
-
36869
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
967
|
45527
|
36833
-
36842
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
967
|
47309
|
36809
-
36870
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
|
|
968
|
38411
|
36895
-
36948
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
DefaultModerationProposalApiComponent.this.proposalService.getModerationProposalById(proposalId)
|
|
968
|
41843
|
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
|
30568
|
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
|
|
968
|
43938
|
36949
-
36949
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
970
|
36830
|
37076
-
37121
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
970
|
43926
|
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
|
44423
|
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
|
42340
|
37235
-
37235
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$1.withMaxLength$default$4
|
|
973
|
39472
|
37227
-
37287
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$1.withMaxLength(x$1, "Original content", x$3, x$4)
|
|
973
|
37147
|
37268
-
37286
|
Literal
|
<nosymbol>
|
|
"Original content"
|
|
973
|
45727
|
37249
-
37266
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalLength
|
|
DefaultModerationProposalApi.this.maxProposalLength
|
|
973
|
32918
|
37227
-
37234
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
973
|
50485
|
37235
-
37235
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$3
|
|
qual$1.withMaxLength$default$3
|
|
974
|
45481
|
37329
-
37329
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$2.withMinLength$default$4
|
|
974
|
31320
|
37321
-
37328
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
974
|
37877
|
37321
-
37381
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$2.withMinLength(x$5, "Original content", x$7, x$8)
|
|
974
|
32957
|
37329
-
37329
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$3
|
|
qual$2.withMinLength$default$3
|
|
974
|
36869
|
37362
-
37380
|
Literal
|
<nosymbol>
|
|
"Original content"
|
|
974
|
43681
|
37343
-
37360
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
975
|
43402
|
37440
-
37452
|
Literal
|
<nosymbol>
|
|
"newContent"
|
|
975
|
38973
|
37423
-
37423
|
Select
|
org.make.core.Validation.StringWithParsers.toSanitizedInput$default$2
|
|
qual$3.toSanitizedInput$default$2
|
|
975
|
51284
|
37415
-
37422
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(content)
|
|
975
|
31067
|
37415
-
37453
|
Apply
|
org.make.core.Validation.StringWithParsers.toSanitizedInput
|
|
qual$3.toSanitizedInput("newContent", x$10)
|
|
976
|
38734
|
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
|
37642
|
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
|
43441
|
37486
-
37486
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
976
|
45516
|
37486
-
37486
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
976
|
49948
|
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
|
36906
|
37486
-
37486
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
976
|
50438
|
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
|
31104
|
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
|
|
980
|
35558
|
37740
-
37740
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
980
|
31093
|
37740
-
37740
|
Select
|
cats.kernel.instances.UnitInstances.catsKernelStdAlgebraForUnit
|
|
cats.implicits.catsKernelStdAlgebraForUnit
|
|
980
|
45265
|
37725
-
37725
|
Select
|
cats.instances.ListInstances.catsStdInstancesForList
|
|
cats.implicits.catsStdInstancesForList
|
|
980
|
44774
|
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)
|
|
980
|
36059
|
37670
-
37715
|
Apply
|
cats.data.ValidatedFunctionsBinCompat0.validNec
|
|
cats.data.Validated.validNec[org.make.core.ValidationError, Unit](())
|
|
980
|
49681
|
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
|
35888
|
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
|
49429
|
37717
-
37731
|
Select
|
scala.collection.IterableOnceOps.toList
|
|
x$9.toMap.toList
|
|
982
|
35516
|
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
|
37676
|
37873
-
37885
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
984
|
50472
|
37937
-
37965
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.maxProposalTranslationLength
|
|
DefaultModerationProposalApi.this.maxProposalTranslationLength
|
|
984
|
30855
|
37923
-
37923
|
Select
|
org.make.core.Validation.StringWithParsers.withMaxLength$default$4
|
|
qual$4.withMaxLength$default$4
|
|
984
|
42584
|
37967
-
37981
|
Literal
|
<nosymbol>
|
|
"Translations"
|
|
984
|
43675
|
37873
-
37998
|
Apply
|
org.make.core.Validation.StringWithParsers.withMaxLength
|
|
qual$4.withMaxLength(x$11, "Translations", x$13, x$14)
|
|
984
|
38767
|
37983
-
37997
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.reference.Language](language)
|
|
985
|
50227
|
38047
-
38047
|
Select
|
org.make.core.Validation.StringWithParsers.withMinLength$default$4
|
|
qual$5.withMinLength$default$4
|
|
985
|
36093
|
38034
-
38046
|
ApplyImplicitView
|
org.make.core.Validation.StringWithParsers
|
|
org.make.core.Validation.StringWithParsers(translations)
|
|
985
|
42624
|
38034
-
38111
|
Apply
|
org.make.core.Validation.StringWithParsers.withMinLength
|
|
qual$5.withMinLength(x$15, "Translations", x$17, x$18)
|
|
985
|
37178
|
38096
-
38110
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.reference.Language](language)
|
|
985
|
45300
|
38080
-
38094
|
Literal
|
<nosymbol>
|
|
"Translations"
|
|
985
|
49899
|
38061
-
38078
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.minProposalLength
|
|
DefaultModerationProposalApi.this.minProposalLength
|
|
986
|
43148
|
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
|
35848
|
38146
-
38146
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
986
|
50268
|
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
|
43712
|
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
|
49938
|
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
|
46050
|
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
|
30893
|
38146
-
38146
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
986
|
38235
|
38146
-
38146
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
990
|
42103
|
38325
-
38353
|
Select
|
org.make.api.proposal.ModerationProposalResponse.contentTranslations
|
|
proposal.contentTranslations
|
|
991
|
37667
|
38394
-
38412
|
TypeApply
|
org.make.core.technical.Multilingual.empty
|
|
org.make.core.technical.Multilingual.empty[String]
|
|
992
|
44216
|
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
|
43186
|
38489
-
38553
|
Apply
|
scala.Option.getOrElse
|
|
proposal.submittedAsLanguage.getOrElse[org.make.core.reference.Language](question.defaultLanguage)
|
|
993
|
51332
|
38528
-
38552
|
Select
|
org.make.core.question.Question.defaultLanguage
|
|
question.defaultLanguage
|
|
994
|
30844
|
38585
-
38631
|
Apply
|
scala.Option.getOrElse
|
|
request.newContent.getOrElse[String](proposal.content)
|
|
994
|
35591
|
38614
-
38630
|
Select
|
org.make.api.proposal.ModerationProposalResponse.content
|
|
proposal.content
|
|
998
|
37425
|
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
|
36417
|
38842
-
38873
|
TypeApply
|
scala.collection.IterableOnceOps.toSet
|
|
question.languages.toList.toSet[org.make.core.reference.Language]
|
|
1000
|
49723
|
38910
-
38940
|
Apply
|
scala.Tuple2.apply
|
|
scala.Tuple2.apply[org.make.core.technical.Multilingual[String], String](translations, "Translations")
|
|
1000
|
41591
|
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
|
30883
|
39056
-
39056
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
1002
|
35342
|
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
|
35838
|
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
|
43975
|
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
|
42937
|
39056
-
39056
|
TypeApply
|
cats.data.NonEmptyChainInstances.catsDataSemigroupForNonEmptyChain
|
|
data.this.NonEmptyChainImpl.catsDataSemigroupForNonEmptyChain[org.make.core.ValidationError]
|
|
1002
|
50763
|
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)
|
|
1003
|
51285
|
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
|
41347
|
39153
-
39167
|
Select
|
cats.Foldable.Ops.toList
|
|
cats.implicits.toFoldableOps[cats.data.NonEmptyChain, org.make.core.ValidationError](errsNec)(data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1).toList
|
|
1003
|
37459
|
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
|
49764
|
39153
-
39153
|
Select
|
cats.data.NonEmptyChainInstances.catsDataInstancesForNonEmptyChainBinCompat1
|
|
data.this.NonEmptyChainImpl.catsDataInstancesForNonEmptyChainBinCompat1
|
|
1006
|
48916
|
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
|
42375
|
39407
-
39423
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1011
|
34833
|
39588
-
39606
|
Select
|
org.make.api.proposal.ValidateProposalRequest.newContent
|
|
request.newContent
|
|
1012
|
47894
|
39665
-
39695
|
Select
|
org.make.api.proposal.ValidateProposalRequest.newContentTranslations
|
|
request.newContentTranslations
|
|
1013
|
44009
|
39753
-
39782
|
Select
|
org.make.api.proposal.ValidateProposalRequest.sendNotificationEmail
|
|
request.sendNotificationEmail
|
|
1014
|
35877
|
39823
-
39835
|
Select
|
org.make.api.proposal.ValidateProposalRequest.tags
|
|
request.tags
|
|
1016
|
41386
|
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
|
|
1016
|
37217
|
39899
-
39899
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1017
|
36939
|
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]))))
|
|
1017
|
49715
|
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
|
47935
|
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
|
35296
|
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
|
51322
|
39967
-
39967
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1017
|
42407
|
39967
-
39967
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1017
|
44527
|
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])))
|
|
1030
|
41425
|
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]))))))))))))))))))))
|
|
1030
|
33744
|
40189
-
40193
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1031
|
43426
|
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
|
48429
|
40236
-
40256
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1031
|
41634
|
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
|
49508
|
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
|
43999
|
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,)]
|
|
1031
|
51114
|
40207
-
40219
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1031
|
33493
|
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
|
36131
|
40259
-
40267
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse")
|
|
1031
|
49843
|
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
|
50548
|
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
|
43511
|
40222
-
40233
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1031
|
35086
|
40220
-
40220
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1032
|
47924
|
40293
-
40293
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1032
|
49978
|
40306
-
40306
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1032
|
36170
|
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
|
35122
|
40307
-
40323
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"RefuseProposal"
|
|
1032
|
40039
|
40293
-
40293
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1032
|
35912
|
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])))))))))))))))))
|
|
1033
|
33529
|
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
|
41675
|
40355
-
40365
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1033
|
39785
|
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])))))))))))))))
|
|
1034
|
48214
|
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
|
50306
|
40432
-
40441
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1034
|
43466
|
40410
-
40442
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1035
|
34870
|
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]))))))))))))
|
|
1035
|
35592
|
40459
-
40509
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)
|
|
1035
|
40072
|
40510
-
40510
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1035
|
47674
|
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
|
|
1036
|
41870
|
40562
-
40617
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)
|
|
1036
|
43299
|
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
|
50012
|
40597
-
40616
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1036
|
36692
|
40586
-
40595
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1037
|
46568
|
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
|
33277
|
40638
-
40651
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1038
|
39834
|
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))))
|
|
1038
|
50340
|
40683
-
40683
|
Select
|
org.make.api.proposal.RefuseProposalRequest.codec
|
|
proposal.this.RefuseProposalRequest.codec
|
|
1038
|
33792
|
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
|
48416
|
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
|
35628
|
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
|
43218
|
40683
-
40683
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.RefuseProposalRequest](proposal.this.RefuseProposalRequest.codec)
|
|
1038
|
36725
|
40680
-
40680
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.RefuseProposalRequest]
|
|
1040
|
41627
|
40757
-
41063
|
Apply
|
org.make.api.proposal.ProposalService.refuseProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.refuseProposal(proposalId, auth.user.userId, requestContext, refuseProposalRequest)
|
|
1042
|
50052
|
40903
-
40919
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1046
|
34034
|
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
|
47120
|
41089
-
41089
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1047
|
36494
|
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
|
49802
|
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
|
43258
|
41151
-
41151
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1047
|
35111
|
41151
-
41151
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1047
|
41663
|
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
|
48176
|
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])
|
|
1047
|
40571
|
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]))
|
|
1058
|
33827
|
41325
-
41329
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1058
|
47416
|
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
|
46327
|
41343
-
41355
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1059
|
32205
|
41395
-
41405
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("postpone")
|
|
1059
|
41464
|
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
|
39825
|
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
|
42481
|
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
|
34343
|
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
|
49750
|
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
|
33604
|
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])))))))))))))))))
|
|
1059
|
47976
|
41372
-
41392
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1059
|
42443
|
41358
-
41369
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1059
|
46367
|
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
|
34909
|
41356
-
41356
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1060
|
49793
|
41444
-
41444
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1060
|
39861
|
41431
-
41431
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1060
|
48010
|
41431
-
41431
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1060
|
41212
|
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
|
31967
|
41431
-
41464
|
Apply
|
org.make.api.technical.MakeDirectives.makeOperation
|
|
DefaultModerationProposalApiComponent.this.makeOperation("PostponeProposal", DefaultModerationProposalApiComponent.this.makeOperation$default$2, DefaultModerationProposalApiComponent.this.makeOperation$default$3)
|
|
1060
|
35370
|
41445
-
41463
|
Literal
|
<nosymbol>
|
|
"PostponeProposal"
|
|
1061
|
45624
|
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])))))))))))))
|
|
1061
|
41918
|
41495
-
41505
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1061
|
34383
|
41495
-
41495
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1062
|
31954
|
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])))))))))))
|
|
1062
|
39292
|
41550
-
41582
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1062
|
46403
|
41572
-
41581
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1063
|
35408
|
41599
-
41649
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)
|
|
1063
|
40103
|
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
|
40928
|
41650
-
41650
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1063
|
47926
|
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
|
|
1064
|
41954
|
41702
-
41757
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)
|
|
1064
|
32000
|
41726
-
41735
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1064
|
49540
|
41737
-
41756
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1064
|
47999
|
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
|
35195
|
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])))))))
|
|
1065
|
33815
|
41778
-
41791
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1067
|
39325
|
41814
-
42053
|
Apply
|
org.make.api.proposal.ProposalService.postponeProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.postponeProposal(proposalId, auth.user.userId, requestContext)
|
|
1069
|
47459
|
41956
-
41972
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1072
|
35157
|
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
|
47965
|
42077
-
42077
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1073
|
32516
|
42137
-
42137
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1073
|
40345
|
42137
-
42137
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1073
|
46879
|
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
|
33565
|
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
|
41448
|
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
|
49576
|
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
|
39081
|
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]))))))
|
|
1083
|
39934
|
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)))))))))))))))))
|
|
1083
|
38510
|
42277
-
42281
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1084
|
47532
|
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
|
39577
|
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
|
45049
|
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
|
41245
|
42347
-
42353
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock")
|
|
1084
|
35144
|
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
|
47788
|
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
|
33358
|
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
|
35236
|
42295
-
42307
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1084
|
40140
|
42308
-
42308
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1084
|
33022
|
42324
-
42344
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1084
|
47449
|
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
|
47748
|
42310
-
42321
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1085
|
45086
|
42379
-
42379
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1085
|
40672
|
42393
-
42407
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"LockProposal"
|
|
1085
|
30997
|
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
|
41699
|
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)
|
|
1085
|
33062
|
42379
-
42379
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1085
|
33397
|
42392
-
42392
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1086
|
39604
|
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
|
39616
|
42439
-
42439
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1086
|
47203
|
42439
-
42449
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1087
|
48249
|
42494
-
42526
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1087
|
31461
|
42516
-
42525
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1087
|
46435
|
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
|
33385
|
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
|
40709
|
42543
-
42593
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(proposalId)
|
|
1088
|
45616
|
42594
-
42594
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1088
|
33097
|
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
|
47236
|
42646
-
42701
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(auth.user, proposal.questionId)
|
|
1089
|
33308
|
42681
-
42700
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1089
|
41737
|
42670
-
42679
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1089
|
37816
|
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
|
39649
|
42742
-
42758
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1090
|
45403
|
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
|
48283
|
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
|
39862
|
42760
-
42760
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.user.User]
|
|
1090
|
31207
|
42722
-
42759
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)
|
|
1092
|
37781
|
42817
-
43118
|
Apply
|
org.make.api.proposal.ProposalService.lockProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.lockProposal(proposalId, moderator.userId, moderator.fullName, requestContext)
|
|
1094
|
32850
|
42957
-
42973
|
Select
|
org.make.core.user.User.userId
|
|
moderator.userId
|
|
1095
|
45655
|
43019
-
43037
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1098
|
33347
|
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
|
32276
|
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
|
46671
|
43142
-
43142
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Unit]
|
|
1099
|
31248
|
43206
-
43206
|
Select
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode
|
|
marshalling.this.Marshaller.fromStatusCode
|
|
1099
|
38867
|
43194
-
43215
|
Select
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
1099
|
48801
|
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)
|
|
1099
|
39901
|
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))
|
|
1110
|
37636
|
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)))))))
}))
}))))))))))
|
|
1110
|
32802
|
43385
-
43389
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1111
|
43856
|
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
|
46143
|
43403
-
43415
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1111
|
33134
|
43416
-
43416
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1111
|
45509
|
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
|
39363
|
43430
-
43430
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1111
|
38331
|
43418
-
43429
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1111
|
46471
|
43432
-
43438
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("lock")
|
|
1111
|
31748
|
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])
|
|
1112
|
45911
|
43450
-
43450
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1112
|
32841
|
43450
-
43450
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1112
|
39689
|
43464
-
43487
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"LockMultipleProposals"
|
|
1112
|
33172
|
43463
-
43463
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1112
|
49943
|
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
|
37771
|
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
|
46982
|
43519
-
43529
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1113
|
36621
|
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)))))))
}))
}))))))
|
|
1113
|
39396
|
43519
-
43519
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[scalaoauth2.provider.AuthInfo[org.make.core.auth.UserRights]]
|
|
1114
|
31508
|
43596
-
43605
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1114
|
44418
|
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)))))))
}))
}))))
|
|
1114
|
44316
|
43574
-
43606
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1115
|
39728
|
43623
-
43636
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1115
|
31061
|
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
|
33638
|
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
|
45944
|
43664
-
43664
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.LockProposalsRequest](proposal.this.LockProposalsRequest.codec)
|
|
1116
|
39158
|
43661
-
43661
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.LockProposalsRequest]
|
|
1116
|
47017
|
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
|
35521
|
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
|
32590
|
43664
-
43664
|
Select
|
org.make.api.proposal.LockProposalsRequest.codec
|
|
proposal.this.LockProposalsRequest.codec
|
|
1116
|
37805
|
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))
|
|
1117
|
45732
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$2
|
|
org.make.core.proposal.SearchQuery.apply$default$2
|
|
1117
|
37850
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$3
|
|
org.make.core.proposal.SearchQuery.apply$default$3
|
|
1117
|
38944
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$7
|
|
org.make.core.proposal.SearchQuery.apply$default$7
|
|
1117
|
50655
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$5
|
|
org.make.core.proposal.SearchQuery.apply$default$5
|
|
1117
|
31324
|
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
|
42347
|
43731
-
43731
|
Select
|
org.make.core.proposal.SearchQuery.apply$default$6
|
|
org.make.core.proposal.SearchQuery.apply$default$6
|
|
1118
|
31287
|
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
|
51205
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$30
|
|
org.make.core.proposal.SearchFilters.apply$default$30
|
|
1119
|
44111
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$6
|
|
org.make.core.proposal.SearchFilters.apply$default$6
|
|
1119
|
50149
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$21
|
|
org.make.core.proposal.SearchFilters.apply$default$21
|
|
1119
|
37035
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$17
|
|
org.make.core.proposal.SearchFilters.apply$default$17
|
|
1119
|
31024
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$5
|
|
org.make.core.proposal.SearchFilters.apply$default$5
|
|
1119
|
39179
|
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
|
39191
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$4
|
|
org.make.core.proposal.SearchFilters.apply$default$4
|
|
1119
|
31816
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$18
|
|
org.make.core.proposal.SearchFilters.apply$default$18
|
|
1119
|
37594
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$11
|
|
org.make.core.proposal.SearchFilters.apply$default$11
|
|
1119
|
47313
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$31
|
|
org.make.core.proposal.SearchFilters.apply$default$31
|
|
1119
|
30772
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$15
|
|
org.make.core.proposal.SearchFilters.apply$default$15
|
|
1119
|
44149
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$16
|
|
org.make.core.proposal.SearchFilters.apply$default$16
|
|
1119
|
51419
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$12
|
|
org.make.core.proposal.SearchFilters.apply$default$12
|
|
1119
|
47274
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$22
|
|
org.make.core.proposal.SearchFilters.apply$default$22
|
|
1119
|
31854
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$27
|
|
org.make.core.proposal.SearchFilters.apply$default$27
|
|
1119
|
37354
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$20
|
|
org.make.core.proposal.SearchFilters.apply$default$20
|
|
1119
|
45934
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$19
|
|
org.make.core.proposal.SearchFilters.apply$default$19
|
|
1119
|
38622
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$14
|
|
org.make.core.proposal.SearchFilters.apply$default$14
|
|
1119
|
46215
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$13
|
|
org.make.core.proposal.SearchFilters.apply$default$13
|
|
1119
|
33098
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$9
|
|
org.make.core.proposal.SearchFilters.apply$default$9
|
|
1119
|
39148
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$23
|
|
org.make.core.proposal.SearchFilters.apply$default$23
|
|
1119
|
50901
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$2
|
|
org.make.core.proposal.SearchFilters.apply$default$2
|
|
1119
|
39680
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$7
|
|
org.make.core.proposal.SearchFilters.apply$default$7
|
|
1119
|
35768
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$26
|
|
org.make.core.proposal.SearchFilters.apply$default$26
|
|
1119
|
44656
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$25
|
|
org.make.core.proposal.SearchFilters.apply$default$25
|
|
1119
|
45185
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$10
|
|
org.make.core.proposal.SearchFilters.apply$default$10
|
|
1119
|
31533
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$24
|
|
org.make.core.proposal.SearchFilters.apply$default$24
|
|
1119
|
47485
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$3
|
|
org.make.core.proposal.SearchFilters.apply$default$3
|
|
1119
|
38094
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$29
|
|
org.make.core.proposal.SearchFilters.apply$default$29
|
|
1119
|
45693
|
43802
-
43802
|
Select
|
org.make.core.proposal.SearchFilters.apply$default$28
|
|
org.make.core.proposal.SearchFilters.apply$default$28
|
|
1120
|
40951
|
43852
-
43905
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.proposal.ProposalSearchFilter](org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq))
|
|
1120
|
30989
|
43878
-
43903
|
Select
|
scala.collection.IterableOnceOps.toSeq
|
|
request.proposalIds.toSeq
|
|
1120
|
44351
|
43857
-
43904
|
Apply
|
org.make.core.proposal.ProposalSearchFilter.apply
|
|
org.make.core.proposal.ProposalSearchFilter.apply(request.proposalIds.toSeq)
|
|
1121
|
45979
|
43945
-
43986
|
Apply
|
org.make.core.proposal.StatusSearchFilter.apply
|
|
org.make.core.proposal.StatusSearchFilter.apply(org.make.core.proposal.ProposalStatus.values)
|
|
1121
|
37557
|
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
|
32625
|
43964
-
43985
|
Select
|
org.make.core.proposal.ProposalStatus.values
|
|
org.make.core.proposal.ProposalStatus.values
|
|
1124
|
44099
|
44085
-
44113
|
Apply
|
scala.Int.+
|
|
request.proposalIds.size.+(1)
|
|
1124
|
35804
|
44068
-
44114
|
Apply
|
org.make.core.technical.Pagination.Limit.apply
|
|
org.make.core.technical.Pagination.Limit.apply(request.proposalIds.size.+(1))
|
|
1124
|
32376
|
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)))
|
|
1126
|
43857
|
44154
-
44231
|
Apply
|
org.make.api.proposal.ProposalService.searchInIndex
|
|
DefaultModerationProposalApiComponent.this.proposalService.searchInIndex(query, requestContext)
|
|
1126
|
43398
|
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)))))))
}))
|
|
1126
|
36277
|
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
|
32412
|
44232
-
44232
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.indexed.ProposalsSearchResult]
|
|
1128
|
37346
|
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
|
45486
|
44341
-
44345
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.id
|
|
x$14.id
|
|
1129
|
43566
|
44387
-
44430
|
Apply
|
scala.collection.immutable.SetOps.diff
|
|
request.proposalIds.diff(proposalIds.toSet[org.make.core.proposal.ProposalId])
|
|
1129
|
50689
|
44412
-
44429
|
TypeApply
|
scala.collection.IterableOnceOps.toSet
|
|
proposalIds.toSet[org.make.core.proposal.ProposalId]
|
|
1130
|
32876
|
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
|
36314
|
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
|
38978
|
44558
-
44571
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
1133
|
31075
|
44605
-
44620
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1134
|
43893
|
44660
-
44679
|
Select
|
scala.collection.IterableOnceOps.isEmpty
|
|
notFoundIds.isEmpty
|
|
1138
|
50442
|
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
|
37384
|
44919
-
44931
|
Select
|
org.make.core.proposal.indexed.IndexedProposalQuestion.questionId
|
|
x$16.questionId
|
|
1138
|
42301
|
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
|
50999
|
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)))))))
|
|
1138
|
45520
|
44867
-
44876
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1138
|
39428
|
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)))))
|
|
1139
|
48848
|
44999
-
44999
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.user.User]
|
|
1139
|
30562
|
44981
-
44997
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1139
|
37871
|
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
|
36827
|
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
|
43932
|
44961
-
44998
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)
|
|
1141
|
50478
|
45062
-
45402
|
Apply
|
org.make.api.proposal.ProposalService.lockProposals
|
|
DefaultModerationProposalApiComponent.this.proposalService.lockProposals(proposalIds, moderator.userId, moderator.fullName, requestContext)
|
|
1143
|
45980
|
45223
-
45239
|
Select
|
org.make.core.user.User.userId
|
|
moderator.userId
|
|
1144
|
37140
|
45291
-
45309
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1147
|
43359
|
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
|
|
1147
|
45475
|
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
|
39467
|
45432
-
45432
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Unit]
|
|
1148
|
31314
|
45490
-
45511
|
Select
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
1148
|
43677
|
45502
-
45502
|
Select
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode
|
|
marshalling.this.Marshaller.fromStatusCode
|
|
1148
|
49903
|
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
|
36866
|
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
|
50430
|
45744
-
45748
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1161
|
39994
|
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
|
36051
|
45789
-
45789
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1162
|
42543
|
45762
-
45774
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1162
|
31098
|
45775
-
45775
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1162
|
43634
|
45791
-
45804
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("change-idea")
|
|
1162
|
35006
|
45777
-
45788
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1162
|
48422
|
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
|
49357
|
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
|
45257
|
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
|
34451
|
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
|
42576
|
45816
-
45816
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1163
|
50187
|
45816
-
45816
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1163
|
35081
|
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
|
37671
|
45830
-
45851
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"ChangeProposalsIdea"
|
|
1163
|
30849
|
45829
-
45829
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1164
|
35805
|
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
|
43670
|
45870
-
45880
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1164
|
43224
|
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))
}))
}))
}))))))))
|
|
1165
|
49895
|
45942
-
45951
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1165
|
50508
|
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
|
40996
|
45925
-
45952
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireAdminRole
|
|
DefaultModerationProposalApiComponent.this.requireAdminRole(auth.user)
|
|
1166
|
34002
|
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))
}))
}))
})))))
|
|
1166
|
37432
|
45969
-
45982
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1167
|
41877
|
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
|
44733
|
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
|
31610
|
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
|
42617
|
46010
-
46010
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.PatchProposalsIdeaRequest](proposal.this.PatchProposalsIdeaRequest.decoder)
|
|
1167
|
50222
|
46010
-
46010
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.decoder
|
|
proposal.this.PatchProposalsIdeaRequest.decoder
|
|
1167
|
35843
|
46007
-
46007
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.PatchProposalsIdeaRequest]
|
|
1167
|
35511
|
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))
|
|
1168
|
49931
|
46091
-
46105
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.ideaId
|
|
changes.ideaId
|
|
1168
|
49467
|
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
|
37624
|
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
|
|
1168
|
42058
|
46070
-
46106
|
Apply
|
org.make.api.idea.IdeaService.fetchOne
|
|
DefaultModerationProposalApiComponent.this.ideaService.fetchOne(changes.ideaId)
|
|
1168
|
50261
|
46107
-
46107
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Option[org.make.core.idea.Idea]]
|
|
1169
|
49678
|
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
|
31356
|
46284
-
46284
|
Literal
|
<nosymbol>
|
|
"ideaId"
|
|
1171
|
44173
|
46261
-
46261
|
Apply
|
scala.Function0.apply
|
|
x$1.apply()
|
|
1171
|
35551
|
46304
-
46327
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String]("Invalid idea id")
|
|
1171
|
35882
|
46197
-
46328
|
Apply
|
org.make.core.Validation.requirePresent
|
|
org.make.core.Validation.requirePresent("ideaId", x$1.apply(), x$3)
|
|
1171
|
43146
|
46284
-
46292
|
Literal
|
<nosymbol>
|
|
"ideaId"
|
|
1173
|
50726
|
46400
-
46441
|
Apply
|
org.make.api.proposal.ProposalService.getModerationProposalById
|
|
eta$0$1.getModerationProposalById(proposalId)
|
|
1173
|
37385
|
46379
-
46379
|
Select
|
cats.UnorderedFoldableLowPriority.catsTraverseForSeq
|
|
cats.this.UnorderedFoldable.catsTraverseForSeq
|
|
1173
|
48100
|
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
|
42098
|
46371
-
46390
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.proposalIds
|
|
changes.proposalIds
|
|
1173
|
35300
|
46399
-
46399
|
ApplyToImplicitArgs
|
cats.instances.FutureInstances.catsStdInstancesForFuture
|
|
cats.implicits.catsStdInstancesForFuture(scala.concurrent.ExecutionContext.Implicits.global)
|
|
1173
|
35793
|
46443
-
46443
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Seq[Option[org.make.api.proposal.ModerationProposalResponse]]]
|
|
1173
|
44211
|
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
|
43182
|
46399
-
46399
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
1173
|
36698
|
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))
}))
}))
|
|
1175
|
50759
|
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
|
41849
|
46607
-
46607
|
TypeApply
|
scala.Predef.$conforms
|
|
scala.Predef.$conforms[Option[org.make.api.proposal.ModerationProposalResponse]]
|
|
1175
|
49720
|
46583
-
46590
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$19.value
|
|
1175
|
37419
|
46619
-
46637
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$20.proposalId.value
|
|
1175
|
42335
|
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)))
|
|
1176
|
35338
|
46706
-
46744
|
Apply
|
scala.collection.IterableOnceOps.mkString
|
|
invalidProposalIdValues.mkString(", ")
|
|
1177
|
34493
|
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
|
42371
|
46812
-
47127
|
Apply
|
org.make.core.Validation.validateField
|
|
org.make.core.Validation.validateField("proposalIds", "invalid_value", x$7.apply(), x$6.apply())
|
|
1179
|
48877
|
46872
-
46872
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
1179
|
47850
|
46872
-
46885
|
Literal
|
<nosymbol>
|
|
"proposalIds"
|
|
1180
|
41344
|
46913
-
46913
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1180
|
43968
|
46913
-
46928
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1181
|
51279
|
46966
-
46966
|
Apply
|
scala.Function0.apply
|
|
x$6.apply()
|
|
1182
|
35832
|
47070
-
47101
|
Select
|
scala.collection.SeqOps.isEmpty
|
|
invalidProposalIdValues.isEmpty
|
|
1182
|
33750
|
47094
-
47094
|
Apply
|
scala.Function0.apply
|
|
x$7.apply()
|
|
1186
|
47891
|
47235
-
47254
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.proposalIds
|
|
changes.proposalIds
|
|
1186
|
36900
|
47288
-
47302
|
Select
|
org.make.api.proposal.PatchProposalsIdeaRequest.ideaId
|
|
changes.ideaId
|
|
1186
|
48909
|
47174
-
47303
|
Apply
|
org.make.api.proposal.ProposalService.changeProposalsIdea
|
|
DefaultModerationProposalApiComponent.this.proposalService.changeProposalsIdea(changes.proposalIds, auth.user.userId, changes.ideaId)
|
|
1186
|
44004
|
47270
-
47286
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1187
|
40237
|
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
|
33496
|
47329
-
47329
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Seq[org.make.core.proposal.Proposal]]
|
|
1187
|
42085
|
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
|
48621
|
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
|
51317
|
47476
-
47483
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$21.value
|
|
1189
|
43433
|
47511
-
47529
|
Select
|
org.make.core.proposal.ProposalId.value
|
|
x$22.proposalId.value
|
|
1189
|
35292
|
47490
-
47530
|
Apply
|
scala.collection.IterableOps.map
|
|
updatedProposals.map[String](((x$22: org.make.core.proposal.Proposal) => x$22.proposalId.value))
|
|
1190
|
41838
|
47558
-
47558
|
Literal
|
<nosymbol>
|
|
()
|
|
1190
|
43751
|
47562
-
47586
|
Select
|
scala.collection.IterableOnceOps.nonEmpty
|
|
proposalIdsDiff.nonEmpty
|
|
1190
|
34243
|
47558
-
47558
|
Block
|
<nosymbol>
|
|
()
|
|
1192
|
49984
|
47618
-
47823
|
Block
|
grizzled.slf4j.Logger.warn
|
|
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
|
|
1192
|
36933
|
47618
-
47823
|
Apply
|
grizzled.slf4j.Logger.warn
|
|
DefaultModerationProposalApiComponent.this.logger.warn(("Some proposals are not updated during change idea operation: ".+(proposalIdsDiff.mkString(", ")): String))
|
|
1196
|
48387
|
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
|
43470
|
47899
-
47899
|
Select
|
akka.http.scaladsl.marshalling.PredefinedToResponseMarshallers.fromStatusCode
|
|
marshalling.this.Marshaller.fromStatusCode
|
|
1196
|
51074
|
47887
-
47908
|
Select
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
akka.http.scaladsl.model.StatusCodes.NoContent
|
|
1196
|
35325
|
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)
|
|
1208
|
49787
|
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
|
36125
|
48110
-
48114
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1209
|
48181
|
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
|
31960
|
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
|
50262
|
48157
-
48182
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("next-author-to-moderate")
|
|
1209
|
35117
|
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
|
49502
|
48128
-
48140
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1209
|
43419
|
48155
-
48155
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1209
|
41630
|
48143
-
48154
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1209
|
33486
|
48141
-
48141
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1210
|
41670
|
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
|
40034
|
48208
-
48230
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"NextAuthorToModerate"
|
|
1210
|
40889
|
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
|
49971
|
48194
-
48194
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1210
|
36166
|
48194
-
48194
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1210
|
33235
|
48207
-
48207
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1211
|
46573
|
48255
-
48265
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1211
|
43460
|
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
|
48005
|
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])))))))))))))))
|
|
1212
|
35585
|
48310
-
48319
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1212
|
35365
|
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])))))))))))))
|
|
1212
|
47671
|
48288
-
48320
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(auth.user)
|
|
1213
|
39788
|
48337
-
48350
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1213
|
38480
|
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
|
46360
|
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
|
42131
|
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
|
36685
|
48378
-
48378
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.decoder
|
|
proposal.this.NextProposalToModerateRequest.decoder
|
|
1214
|
50007
|
48378
-
48378
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)
|
|
1214
|
43212
|
48375
-
48375
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]
|
|
1214
|
33274
|
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
|
46603
|
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))))
|
|
1216
|
35623
|
48486
-
48513
|
Apply
|
org.make.api.question.QuestionService.getQuestion
|
|
eta$0$1.getQuestion(questionId)
|
|
1217
|
32982
|
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
|
39830
|
48546
-
48569
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[None.type](scala.None)
|
|
1217
|
48132
|
48564
-
48568
|
Select
|
scala.None
|
|
scala.None
|
|
1218
|
49756
|
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
|
41624
|
48592
-
48592
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
1219
|
33570
|
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
|
35378
|
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
|
47116
|
48740
-
48759
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1221
|
34029
|
48724
-
48733
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
auth.user
|
|
1221
|
43254
|
48735
-
48760
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
1221
|
41456
|
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])))))))
|
|
1223
|
48170
|
48839
-
48855
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1223
|
40565
|
48790
-
48856
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(auth.user.userId)
|
|
1224
|
49797
|
48886
-
48886
|
Select
|
org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad
|
|
org.make.api.technical.directives.FutureDirectivesExtensions.directive1Monad
|
|
1224
|
32726
|
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
|
33820
|
48944
-
48944
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationAuthorResponse]
|
|
1225
|
41420
|
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))
|
|
1228
|
32167
|
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
|
41382
|
49152
-
49171
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1230
|
33787
|
49221
-
49237
|
Select
|
org.make.core.auth.UserRights.userId
|
|
auth.user.userId
|
|
1231
|
46560
|
49295
-
49313
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1232
|
43016
|
49363
-
49380
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.languages
|
|
request.languages
|
|
1234
|
34865
|
49491
-
49507
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.toEnrich
|
|
request.toEnrich
|
|
1235
|
48208
|
49561
-
49582
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minVotesCount
|
|
request.minVotesCount
|
|
1236
|
40313
|
49631
-
49647
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minScore
|
|
request.minScore
|
|
1238
|
49543
|
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
|
38728
|
49815
-
49815
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationAuthorResponse]
|
|
1240
|
47969
|
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
|
39819
|
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])))
|
|
1240
|
31923
|
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
|
46323
|
49815
-
49815
|
Select
|
org.make.api.proposal.ModerationAuthorResponse.codec
|
|
proposal.this.ModerationAuthorResponse.codec
|
|
1240
|
49744
|
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
|
34631
|
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])
|
|
1251
|
41912
|
50001
-
50005
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1251
|
33340
|
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])))))))))))))))))))))
|
|
1252
|
35402
|
50048
-
50054
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("next")
|
|
1252
|
39286
|
50032
-
50032
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1252
|
33027
|
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]))
|
|
1252
|
34381
|
50019
-
50031
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1252
|
48458
|
50046
-
50046
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1252
|
47420
|
50034
-
50045
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1252
|
40924
|
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
|
37775
|
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]))))))))))))))))))))
|
|
1253
|
39319
|
50079
-
50079
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1253
|
33523
|
50066
-
50066
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1253
|
45832
|
50080
-
50104
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"NextProposalToModerate"
|
|
1253
|
45362
|
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])))))))))))))))))))
|
|
1253
|
47455
|
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
|
41949
|
50066
-
50066
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1254
|
47960
|
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
|
32845
|
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])))))))))))))))))
|
|
1254
|
35149
|
50129
-
50139
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1255
|
32513
|
50162
-
50194
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)
|
|
1255
|
39856
|
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
|
40065
|
50184
-
50193
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1256
|
48279
|
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
|
45871
|
50211
-
50224
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1257
|
47706
|
50249
-
50249
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.NextProposalToModerateRequest]
|
|
1257
|
33560
|
50252
-
50252
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.NextProposalToModerateRequest](proposal.this.NextProposalToModerateRequest.decoder)
|
|
1257
|
41703
|
50252
-
50252
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.decoder
|
|
proposal.this.NextProposalToModerateRequest.decoder
|
|
1257
|
31466
|
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
|
46604
|
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
|
31202
|
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
|
39079
|
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)))
|
|
1259
|
40101
|
50375
-
50414
|
Apply
|
org.make.api.question.QuestionService.getQuestion
|
|
DefaultModerationProposalApiComponent.this.questionService.getQuestion(questionId)
|
|
1260
|
46641
|
50470
-
50470
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.question.Question]
|
|
1260
|
41207
|
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))
|
|
1260
|
39367
|
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
|
31944
|
50463
-
50467
|
Select
|
scala.None
|
|
scala.None
|
|
1260
|
45620
|
50445
-
50468
|
Apply
|
scala.concurrent.Future.successful
|
|
scala.concurrent.Future.successful[None.type](scala.None)
|
|
1260
|
33313
|
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
|
|
1261
|
47233
|
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
|
38503
|
50550
-
50559
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1261
|
31211
|
50566
-
50585
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1261
|
47743
|
50561
-
50586
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
|
|
1261
|
40134
|
50526
-
50587
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
|
|
1262
|
33351
|
50650
-
50650
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.user.User]
|
|
1262
|
33019
|
50632
-
50648
|
Select
|
org.make.core.auth.UserRights.userId
|
|
user.user.userId
|
|
1262
|
45040
|
50612
-
50649
|
Apply
|
org.make.api.user.UserService.getUser
|
|
DefaultModerationProposalApiComponent.this.userService.getUser(user.user.userId)
|
|
1262
|
42267
|
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
|
33854
|
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]))))))))
|
|
1264
|
37980
|
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
|
47443
|
50815
-
50834
|
Select
|
org.make.core.question.Question.questionId
|
|
question.questionId
|
|
1266
|
39572
|
50864
-
50880
|
Select
|
org.make.core.user.User.userId
|
|
moderator.userId
|
|
1267
|
31420
|
50910
-
50928
|
Select
|
org.make.core.user.User.fullName
|
|
moderator.fullName
|
|
1268
|
48804
|
50958
-
50962
|
Select
|
scala.None
|
|
scala.None
|
|
1270
|
39904
|
51029
-
51045
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.toEnrich
|
|
request.toEnrich
|
|
1271
|
33055
|
51075
-
51096
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minVotesCount
|
|
request.minVotesCount
|
|
1272
|
46117
|
51126
-
51142
|
Select
|
org.make.api.proposal.NextProposalToModerateRequest.minScore
|
|
request.minScore
|
|
1274
|
47198
|
51198
-
51198
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.ModerationProposalResponse]
|
|
1274
|
33393
|
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
|
|
1275
|
45612
|
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
|
31164
|
51262
-
51262
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.ModerationProposalResponse]
|
|
1275
|
32806
|
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])))
|
|
1275
|
38015
|
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
|
40703
|
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
|
39608
|
51262
-
51262
|
Select
|
org.make.api.proposal.ModerationProposalResponse.codec
|
|
proposal.this.ModerationProposalResponse.codec
|
|
1275
|
48242
|
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])
|
|
1287
|
46395
|
51462
-
51465
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.get
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.get
|
|
1287
|
37553
|
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
|
45699
|
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
|
31242
|
51494
-
51505
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1288
|
31992
|
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
|
38864
|
51479
-
51491
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1288
|
46430
|
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
|
37811
|
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
|
45401
|
51531
-
51537
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("tags")
|
|
1288
|
39321
|
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
|
39895
|
51508
-
51528
|
Select
|
org.make.api.proposal.DefaultModerationProposalApiComponent.DefaultModerationProposalApi.moderationProposalId
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.moderationProposalId
|
|
1288
|
44321
|
51492
-
51492
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1288
|
30992
|
51478
-
51478
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.proposal.ProposalId]
|
|
1288
|
34413
|
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])
|
|
1289
|
43815
|
51587
-
51607
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"GetTagsForProposal"
|
|
1289
|
46135
|
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
|
40957
|
51573
-
51573
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1289
|
32795
|
51573
-
51573
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1289
|
37562
|
51586
-
51586
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1289
|
32020
|
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
|
36489
|
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]))))))))))))
|
|
1290
|
50368
|
51626
-
51636
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1290
|
47491
|
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]]
|
|
1291
|
39358
|
51681
-
51690
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1291
|
44067
|
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
|
31739
|
51659
-
51691
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(user.user)
|
|
1292
|
39684
|
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
|
|
1292
|
32835
|
51769
-
51769
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.core.proposal.Proposal]
|
|
1292
|
30986
|
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
|
44865
|
51708
-
51768
|
Apply
|
org.make.api.proposal.ProposalCoordinatorService.getProposal
|
|
DefaultModerationProposalApiComponent.this.proposalCoordinatorService.getProposal(moderationProposalId)
|
|
1293
|
37764
|
51856
-
51875
|
Select
|
org.make.core.proposal.Proposal.questionId
|
|
proposal.questionId
|
|
1293
|
51422
|
51821
-
51876
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireRightsOnQuestion
|
|
DefaultModerationProposalApiComponent.this.requireRightsOnQuestion(user.user, proposal.questionId)
|
|
1293
|
45906
|
51845
-
51854
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
user.user
|
|
1293
|
39153
|
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])))))))
|
|
1294
|
44308
|
51969
-
51969
|
Select
|
org.make.api.proposal.TagsForProposalResponse.codec
|
|
proposal.this.TagsForProposalResponse.codec
|
|
1294
|
32585
|
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
|
45938
|
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
|
31502
|
51942
-
51942
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.TagsForProposalResponse]
|
|
1294
|
47011
|
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
|
50860
|
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]))))
|
|
1294
|
37519
|
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
|
46221
|
51897
-
51941
|
Apply
|
org.make.api.proposal.ProposalService.getTagsForProposal
|
|
DefaultModerationProposalApiComponent.this.proposalService.getTagsForProposal(proposal)
|
|
1294
|
39390
|
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
|
40750
|
51969
-
51969
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.TagsForProposalResponse]
|
|
1303
|
50895
|
52112
-
52116
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1303
|
50072
|
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]))))))))))))))))
|
|
1304
|
45893
|
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
|
38581
|
52145
-
52156
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1304
|
36269
|
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])))))))))))))))
|
|
1304
|
47480
|
52130
-
52142
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1304
|
35978
|
52157
-
52157
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1304
|
30735
|
52143
-
52143
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1304
|
33091
|
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
|
44105
|
52159
-
52186
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("refuse-initials-proposals")
|
|
1305
|
39643
|
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
|
50660
|
52198
-
52198
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1305
|
37315
|
52212
-
52241
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"BulkRefuseInitialsProposals"
|
|
1305
|
31492
|
52211
-
52211
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1305
|
46208
|
52198
-
52198
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1305
|
43851
|
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]))))))))))))))
|
|
1306
|
31319
|
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]))))))))))))
|
|
1306
|
44142
|
52273
-
52283
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1306
|
37033
|
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]]
|
|
1307
|
38938
|
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
|
45649
|
52310
-
52346
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
1307
|
31811
|
52332
-
52345
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
1308
|
38056
|
52363
-
52376
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1308
|
42754
|
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])))))))))
|
|
1309
|
43570
|
52404
-
52404
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkRefuseProposal](proposal.this.BulkRefuseProposal.codec)
|
|
1309
|
35764
|
52401
-
52401
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkRefuseProposal]
|
|
1309
|
39140
|
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
|
50145
|
52404
-
52404
|
Select
|
org.make.api.proposal.BulkRefuseProposal.codec
|
|
proposal.this.BulkRefuseProposal.codec
|
|
1309
|
44594
|
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
|
50649
|
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]))))))))
|
|
1309
|
31243
|
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)))
|
|
1311
|
45686
|
52525
-
52545
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
1311
|
38086
|
52457
-
52562
|
Apply
|
org.make.api.proposal.ProposalService.refuseAll
|
|
DefaultModerationProposalApiComponent.this.proposalService.refuseAll(request.proposalIds, userAuth.user.userId, requestContext)
|
|
1311
|
32882
|
52504
-
52523
|
Select
|
org.make.api.proposal.BulkRefuseProposal.proposalIds
|
|
request.proposalIds
|
|
1312
|
42305
|
52584
-
52584
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]
|
|
1312
|
50614
|
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
|
|
1313
|
45726
|
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
|
31281
|
52632
-
52632
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]
|
|
1313
|
44093
|
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
|
37845
|
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
|
36233
|
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]))
|
|
1313
|
48853
|
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
|
38900
|
52632
-
52632
|
Select
|
org.make.api.proposal.BulkActionResponse.codec
|
|
proposal.this.BulkActionResponse.codec
|
|
1322
|
50218
|
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]))))))
}))))))))))))
|
|
1322
|
45480
|
52763
-
52767
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.post
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.post
|
|
1323
|
31066
|
52808
-
52808
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1323
|
38363
|
52810
-
52815
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag")
|
|
1323
|
43889
|
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
|
42788
|
52794
-
52794
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1323
|
37423
|
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
|
50402
|
52796
-
52807
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1323
|
36023
|
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
|
37341
|
52781
-
52793
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1324
|
37101
|
52827
-
52827
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1324
|
50436
|
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
|
44900
|
52827
-
52827
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1324
|
43320
|
52840
-
52840
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1324
|
42016
|
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
|
50114
|
52841
-
52858
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"BulkTagProposal"
|
|
1325
|
35731
|
52890
-
52900
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1325
|
31268
|
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]]
|
|
1325
|
49118
|
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]))))))
}))))))))
|
|
1326
|
43641
|
52949
-
52962
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
1326
|
35799
|
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
|
36058
|
52927
-
52963
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
1327
|
43665
|
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]))))))
})))))
|
|
1327
|
48841
|
52980
-
52993
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1328
|
50191
|
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
|
43357
|
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
|
48103
|
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
|
45973
|
53021
-
53021
|
Select
|
org.make.api.proposal.BulkTagProposal.codec
|
|
proposal.this.BulkTagProposal.codec
|
|
1328
|
31019
|
53018
-
53018
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkTagProposal]
|
|
1328
|
34455
|
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
|
37834
|
53021
-
53021
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkTagProposal](proposal.this.BulkTagProposal.codec)
|
|
1329
|
36861
|
53071
-
53110
|
Apply
|
org.make.api.tag.TagService.findByTagIds
|
|
DefaultModerationProposalApiComponent.this.tagService.findByTagIds(request.tagIds)
|
|
1329
|
35467
|
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
|
45467
|
53111
-
53111
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Seq[org.make.core.tag.Tag]]
|
|
1329
|
44378
|
53095
-
53109
|
Select
|
org.make.api.proposal.BulkTagProposal.tagIds
|
|
request.tagIds
|
|
1329
|
49898
|
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
|
|
1330
|
37587
|
53212
-
53219
|
Select
|
org.make.core.tag.Tag.tagId
|
|
x$28.tagId
|
|
1330
|
50934
|
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
|
36013
|
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))))
|
|
1330
|
49937
|
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)))): _*))
|
|
1331
|
44143
|
53259
-
53503
|
Apply
|
org.make.core.Validation.validateField
|
|
org.make.core.Validation.validateField("tagId", "invalid_value", false, ("Tag ".+(tagId).+(" does not exist."): String))
|
|
1332
|
43392
|
53317
-
53324
|
Literal
|
<nosymbol>
|
|
"tagId"
|
|
1333
|
35515
|
53356
-
53371
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1334
|
31054
|
53409
-
53414
|
Literal
|
<nosymbol>
|
|
false
|
|
1339
|
42538
|
53551
-
53677
|
Apply
|
org.make.api.proposal.ProposalService.addTagsToAll
|
|
DefaultModerationProposalApiComponent.this.proposalService.addTagsToAll(request.proposalIds, request.tagIds, userAuth.user.userId, requestContext)
|
|
1339
|
41515
|
53603
-
53622
|
Select
|
org.make.api.proposal.BulkTagProposal.proposalIds
|
|
request.proposalIds
|
|
1339
|
37630
|
53624
-
53638
|
Select
|
org.make.api.proposal.BulkTagProposal.tagIds
|
|
request.tagIds
|
|
1339
|
50425
|
53640
-
53660
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
1340
|
35557
|
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
|
30807
|
53701
-
53701
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]
|
|
1341
|
49084
|
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
|
37666
|
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])))
|
|
1341
|
44179
|
53751
-
53751
|
Select
|
org.make.api.proposal.BulkActionResponse.codec
|
|
proposal.this.BulkActionResponse.codec
|
|
1341
|
50181
|
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
|
42569
|
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
|
36043
|
53751
-
53751
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]
|
|
1341
|
41557
|
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]))
|
|
1351
|
47337
|
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]))))))
}))))))))))))
|
|
1351
|
42341
|
53908
-
53914
|
Select
|
akka.http.scaladsl.server.directives.MethodDirectives.delete
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this.delete
|
|
1352
|
33961
|
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]))))))
})))))))))))
|
|
1352
|
44727
|
53941
-
53941
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1352
|
47528
|
53943
-
53954
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("proposals")
|
|
1352
|
35837
|
53957
-
53962
|
ApplyImplicitView
|
akka.http.scaladsl.server.ImplicitPathMatcherConstruction._segmentStringToPathMatcher
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApi.this._segmentStringToPathMatcher("tag")
|
|
1352
|
35505
|
53928
-
53940
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"moderation"
|
|
1352
|
42054
|
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
|
49638
|
53955
-
53955
|
TypeApply
|
akka.http.scaladsl.server.util.TupleOps.Join.join0P
|
org.make.api.proposal.moderationproposalapitest
|
TupleOps.this.Join.join0P[Unit]
|
|
1352
|
37616
|
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]))
|
|
1353
|
48596
|
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
|
41833
|
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
|
35257
|
53974
-
53974
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$3
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$3
|
|
1353
|
42374
|
53974
-
53974
|
Select
|
org.make.api.technical.MakeDirectives.makeOperation$default$2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOperation$default$2
|
|
1353
|
51286
|
53988
-
54011
|
Literal
|
<nosymbol>
|
org.make.api.proposal.moderationproposalapitest
|
"BulkDeleteTagProposal"
|
|
1353
|
44168
|
53987
-
53987
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
org.make.api.proposal.moderationproposalapitest
|
util.this.ApplyConverter.hac1[org.make.core.RequestContext]
|
|
1354
|
49675
|
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
|
49977
|
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]))))))
}))))))))
|
|
1354
|
36904
|
54043
-
54053
|
Select
|
org.make.api.technical.auth.MakeAuthentication.makeOAuth2
|
org.make.api.proposal.moderationproposalapitest
|
DefaultModerationProposalApiComponent.this.makeOAuth2
|
|
1355
|
33665
|
54080
-
54116
|
Apply
|
org.make.api.technical.MakeAuthenticationDirectives.requireModerationRole
|
|
DefaultModerationProposalApiComponent.this.requireModerationRole(userAuth.user)
|
|
1355
|
42091
|
54102
-
54115
|
Select
|
scalaoauth2.provider.AuthInfo.user
|
|
userAuth.user
|
|
1355
|
36928
|
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]))))))
}))))))
|
|
1356
|
50720
|
54133
-
54146
|
Select
|
akka.http.scaladsl.server.directives.CodingDirectives.decodeRequest
|
|
DefaultModerationProposalApi.this.decodeRequest
|
|
1356
|
40038
|
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]))))))
})))))
|
|
1357
|
48345
|
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
|
48093
|
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
|
43927
|
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
|
36345
|
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
|
49713
|
54171
-
54171
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkDeleteTagProposal]
|
|
1357
|
42891
|
54174
-
54174
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.codec
|
|
proposal.this.BulkDeleteTagProposal.codec
|
|
1357
|
35295
|
54174
-
54174
|
ApplyToImplicitArgs
|
de.heikoseeberger.akkahttpcirce.ErrorAccumulatingUnmarshaller.unmarshaller
|
|
DefaultModerationProposalApiComponent.this.unmarshaller[org.make.api.proposal.BulkDeleteTagProposal](proposal.this.BulkDeleteTagProposal.codec)
|
|
1358
|
50471
|
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
|
34519
|
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
|
33705
|
54230
-
54262
|
Apply
|
org.make.api.tag.TagService.getTag
|
|
DefaultModerationProposalApiComponent.this.tagService.getTag(request.tagId)
|
|
1358
|
42330
|
54263
-
54263
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[Option[org.make.core.tag.Tag]]
|
|
1358
|
41842
|
54248
-
54261
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.tagId
|
|
request.tagId
|
|
1359
|
48872
|
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
|
36862
|
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
|
35332
|
54410
-
54417
|
Literal
|
<nosymbol>
|
|
"tagId"
|
|
1362
|
47848
|
54449
-
54464
|
Literal
|
<nosymbol>
|
|
"invalid_value"
|
|
1363
|
40242
|
54502
-
54520
|
Select
|
scala.Option.isDefined
|
|
maybeTag.isDefined
|
|
1368
|
50513
|
54754
-
54774
|
Select
|
org.make.core.auth.UserRights.userId
|
|
userAuth.user.userId
|
|
1368
|
41340
|
54718
-
54737
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.proposalIds
|
|
request.proposalIds
|
|
1368
|
42366
|
54662
-
54791
|
Apply
|
org.make.api.proposal.ProposalService.deleteTagFromAll
|
|
DefaultModerationProposalApiComponent.this.proposalService.deleteTagFromAll(request.proposalIds, request.tagId, userAuth.user.userId, requestContext)
|
|
1368
|
33456
|
54739
-
54752
|
Select
|
org.make.api.proposal.BulkDeleteTagProposal.tagId
|
|
request.tagId
|
|
1369
|
47888
|
54815
-
54815
|
TypeApply
|
akka.http.scaladsl.server.util.ApplyConverterInstances.hac1
|
|
util.this.ApplyConverter.hac1[org.make.api.proposal.BulkActionResponse]
|
|
1369
|
34487
|
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
|
51312
|
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
|
36894
|
54865
-
54865
|
TypeApply
|
de.heikoseeberger.akkahttpcirce.BaseCirceSupport.marshaller$default$2
|
|
DefaultModerationProposalApiComponent.this.marshaller$default$2[org.make.api.proposal.BulkActionResponse]
|
|
1370
|
48904
|
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
|
43425
|
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]))))))
|
|
1370
|
41798
|
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
|
39997
|
54865
-
54865
|
Select
|
org.make.api.proposal.BulkActionResponse.codec
|
|
proposal.this.BulkActionResponse.codec
|
|
1370
|
33492
|
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])))
|
|
1408
|
33479
|
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
|
43465
|
55875
-
55886
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.id
|
|
proposal.id
|
|
1410
|
35041
|
55903
-
55919
|
Apply
|
org.make.api.proposal.ProposalListResponse.Author.apply
|
|
ProposalListResponse.this.Author.apply(proposal)
|
|
1411
|
48381
|
55937
-
55960
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.contentGeneral
|
|
proposal.contentGeneral
|
|
1412
|
40229
|
55990
-
56006
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.content
|
|
proposal.content
|
|
1413
|
36690
|
56036
-
56064
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.submittedAsLanguage
|
|
proposal.submittedAsLanguage
|
|
1414
|
50011
|
56081
-
56096
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.status
|
|
proposal.status
|
|
1415
|
41590
|
56119
-
56140
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.proposalType
|
|
proposal.proposalType
|
|
1416
|
33997
|
56164
-
56186
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.refusalReason
|
|
proposal.refusalReason
|
|
1417
|
46765
|
56201
-
56214
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.tags
|
|
proposal.tags
|
|
1418
|
43216
|
56234
-
56252
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.createdAt
|
|
proposal.createdAt
|
|
1419
|
35076
|
56276
-
56298
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.agreementRate
|
|
proposal.agreementRate
|
|
1420
|
39990
|
56316
-
56341
|
Apply
|
org.make.api.proposal.ProposalListResponse.Context.apply
|
|
ProposalListResponse.this.Context.apply(proposal.context)
|
|
1420
|
48136
|
56324
-
56340
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.context
|
|
proposal.context
|
|
1421
|
36119
|
56395
-
56405
|
Apply
|
org.make.api.proposal.ProposalListResponse.Vote.apply
|
|
ProposalListResponse.this.Vote.apply(vote)
|
|
1421
|
49214
|
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
|
41626
|
56427
-
56446
|
Select
|
org.make.core.proposal.indexed.IndexedProposal.votesCount
|
|
proposal.votesCount
|
|
1436
|
40026
|
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
|
46533
|
56976
-
56998
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.userId
|
|
proposal.author.userId
|
|
1438
|
42649
|
57019
-
57043
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.userType
|
|
proposal.author.userType
|
|
1439
|
34831
|
57067
-
57094
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.displayName
|
|
proposal.author.displayName
|
|
1440
|
48175
|
57110
-
57129
|
Select
|
org.make.core.proposal.indexed.IndexedAuthor.age
|
|
proposal.author.age
|
|
1442
|
32135
|
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
|
46326
|
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
|
49966
|
57818
-
57826
|
Select
|
org.make.core.proposal.indexed.IndexedContext.source
|
|
x$31.source
|
|
1457
|
41664
|
57802
-
57827
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[String](((x$31: org.make.core.proposal.indexed.IndexedContext) => x$31.source))
|
|
1458
|
46566
|
57852
-
57883
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[String](((x$32: org.make.core.proposal.indexed.IndexedContext) => x$32.questionSlug))
|
|
1458
|
33233
|
57868
-
57882
|
Select
|
org.make.core.proposal.indexed.IndexedContext.questionSlug
|
|
x$32.questionSlug
|
|
1459
|
43176
|
57919
-
57928
|
Select
|
org.make.core.proposal.indexed.IndexedContext.country
|
|
x$33.country
|
|
1459
|
35580
|
57903
-
57929
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[org.make.core.reference.Country](((x$33: org.make.core.proposal.indexed.IndexedContext) => x$33.country))
|
|
1460
|
47666
|
57974
-
57992
|
Select
|
org.make.core.proposal.indexed.IndexedContext.questionLanguage
|
|
x$34.questionLanguage
|
|
1460
|
39784
|
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
|
32171
|
58038
-
58056
|
Select
|
org.make.core.proposal.indexed.IndexedContext.proposalLanguage
|
|
x$35.proposalLanguage
|
|
1461
|
49714
|
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
|
42125
|
58100
-
58116
|
Select
|
org.make.core.proposal.indexed.IndexedContext.clientLanguage
|
|
x$36.clientLanguage
|
|
1462
|
33271
|
58084
-
58117
|
Apply
|
scala.Option.flatMap
|
|
context.flatMap[org.make.core.reference.Language](((x$36: org.make.core.proposal.indexed.IndexedContext) => x$36.clientLanguage))
|
|
1464
|
39492
|
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
|
32681
|
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
|
35619
|
58481
-
58489
|
Select
|
org.make.core.proposal.Vote.key
|
|
vote.key
|
|
1476
|
49749
|
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))))
|
|
1476
|
39826
|
58552
-
58571
|
Apply
|
org.make.api.proposal.ProposalListResponse.Qualification.apply
|
|
ProposalListResponse.this.Qualification.apply(qualification)
|
|
1476
|
48128
|
58499
-
58509
|
Select
|
org.make.core.proposal.Vote.count
|
|
vote.count
|
|
1478
|
42158
|
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
|
39247
|
58963
-
59030
|
Apply
|
org.make.api.proposal.ProposalListResponse.Qualification.apply
|
|
ProposalListResponse.this.Qualification.apply(qualification.key, qualification.count)
|
|
1493
|
46366
|
59010
-
59029
|
Select
|
org.make.core.proposal.Qualification.count
|
|
qualification.count
|
|
1493
|
33743
|
58983
-
59000
|
Select
|
org.make.core.proposal.Qualification.key
|
|
qualification.key
|
|
1494
|
35369
|
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
|
48164
|
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)
})
|